Porisma

Worked solution

Integration by parts: logarithms, powers and a returning integral

Find the following integrals:

(a) ∫x2ln⁡x dx\displaystyle\int x^2\ln x\,dx

(b) ∫ln⁡(x2+1) dx\displaystyle\int \ln(x^2+1)\,dx

(c) ∫xtan⁡−1(x2) dx\displaystyle\int x\tan^{-1}(x^2)\,dx

(d) ∫x2ex dx\displaystyle\int x^2e^x\,dx

(e) ∫excos⁡x dx\displaystyle\int e^x\cos x\,dx

(f) ∫θsin⁡θcos⁡θ dθ\displaystyle\int \theta\sin\theta\cos\theta\,d\theta.

CJC · Discussion · Question 8

Answer

(a) x33ln⁡x−x39+C\dfrac{x^3}3\ln x-\dfrac{x^3}9+C.

(b) xln⁡(x2+1)−2x+2tan⁡−1x+Cx\ln(x^2+1)-2x+2\tan^{-1}x+C.

(c) x22tan⁡−1(x2)−14ln⁡(1+x4)+C\dfrac{x^2}2\tan^{-1}(x^2)-\dfrac14\ln(1+x^4)+C.

(d) x2ex−2xex+2ex+Cx^2e^x-2xe^x+2e^x+C.

(e) 12excos⁡x+12exsin⁡x+C\dfrac12e^x\cos x+\dfrac12e^x\sin x+C.

(f) −θcos⁡2θ4+18sin⁡2θ+C-\dfrac{\theta\cos2\theta}4+\dfrac18\sin2\theta+C.

(a)

Choose u=ln x, dv/dx=x², so du/dx=1/x and v=x³/3. Integration by parts gives (x3/3)ln⁡x−(1/3)∫x2 dx(x^3/3)\ln x-(1/3)\int x^2\,dx; x>0.

The integral is x33ln⁡x−x39+C\dfrac{x^3}3\ln x-\dfrac{x^3}9+C.

How did this part go?

(b)

Choose u=ln(x²+1), dv/dx=1, so du/dx=2x/(x²+1), v=x. Parts gives xln⁡(x2+1)−2∫x2/(x2+1) dxx\ln(x^2+1)-2\int x^2/(x^2+1)\,dx. Rewrite x²/(x²+1)=1−1/(x²+1) to integrate the remainder.

The integral is xln⁡(x2+1)−2x+2tan⁡−1x+Cx\ln(x^2+1)-2x+2\tan^{-1}x+C.

How did this part go?

(c)

Choose u=arctan(x²), dv/dx=x, so du/dx=2x/(1+x⁴), v=x²/2. Parts gives (x2/2)tan⁡−1(x2)−∫x3/(1+x4) dx(x^2/2)\tan^{-1}(x^2)-\int x^3/(1+x^4)\,dx. Insert the factor 4 to obtain the logarithm. The source removes absolute values because 1+x⁴>0.

The integral is x22tan⁡−1(x2)−14ln⁡(1+x4)+C\dfrac{x^2}2\tan^{-1}(x^2)-\dfrac14\ln(1+x^4)+C.

How did this part go?

(d)

First choose u=x², dv/dx=eˣ, giving du/dx=2x, v=eˣ. Parts yields x2ex−2∫xex dxx^2e^x-2\int xe^x\,dx. Apply parts again with u′=x, dv′/dx=eˣ, du′/dx=1, v′=eˣ. Then ∫xex dx=xex−∫ex dx\int xe^x\,dx=xe^x-\int e^x\,dx. Substitution gives the stated result.

The integral is x2ex−2xex+2ex+Cx^2e^x-2xe^x+2e^x+C.

How did this part go?

(e)

Let I be the required integral. Choose u=cos x and dv/dx=eˣ, so du/dx=−sin x, v=eˣ. Then I=excos⁡x+∫exsin⁡x dxI=e^x\cos x+\int e^x\sin x\,dx. Apply parts to the remaining integral with u′=sin x, dv′/dx=eˣ, du′/dx=cos x, v′=eˣ. Thus I=excos⁡x+exsin⁡x−II=e^x\cos x+e^x\sin x-I. Bring I to the left: 2I=excos⁡x+exsin⁡x+C′2I=e^x\cos x+e^x\sin x+C^\prime.

The integral is 12excos⁡x+12exsin⁡x+C\dfrac12e^x\cos x+\dfrac12e^x\sin x+C.

How did this part go?

(f)

Use 2sin⁡θcos⁡θ=sin⁡2θ2\sin\theta\cos\theta=\sin2\theta to make the integral (1/2)∫θsin⁡2θ dθ(1/2)\int\theta\sin2\theta\,d\theta. Choose u=θ and dv/dθ=sin2θ, with du/dθ=1 and v=−cos2θ/2. Parts gives −θcos⁡2θ/4+(1/4)∫cos⁡2θ dθ-\theta\cos2\theta/4+(1/4)\int\cos2\theta\,d\theta, leading to the sine term.

The integral is −θcos⁡2θ4+18sin⁡2θ+C-\dfrac{\theta\cos2\theta}4+\dfrac18\sin2\theta+C.

How did this part go?

Common mistakes

For eˣ cos x the original integral returns with a minus sign. Move it to the other side before dividing by two.

Read the hint