\(\displaystyle\int (2x + 1)\log x\,dx,\ x \gt 0\), is equal to (where C is an arbitrary constant)
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → \(\displaystyle(x^2 + x)\log x - \frac{x^2}{2} - x + C\)
We use integration by parts, \(\int u\,dv = uv - \int v\,du\), with
\(u = \log x\), \(\displaystyle du = \frac{1}{x}\,dx\)
\(dv = (2x + 1)\,dx\), \(v = x^2 + x\)
Then
\( \displaystyle \int (2x + 1)\log x\,dx = (x^2 + x)\log x - \int \frac{x^2 + x}{x}\,dx \)
\( \displaystyle = (x^2 + x)\log x - \int (x + 1)\,dx \)
\( \displaystyle = (x^2 + x)\log x - \frac{x^2}{2} - x + C \)