Porisma

Worked solution

Choose parts, repeat it, or solve the returning integral

Integrate with respect to xx: (a) (2x+3)ln⁡x(2x+3)\ln x; (b) xsin⁡xx\sin x; (c) ln⁡x\ln x; (d) x2cos⁡xx^2\cos x; (e) e2xsin⁡xe^{2x}\sin x.

CJC · Lecture · Example 17

(a)

Choose u=ln⁡xu=\ln x, dv/dx=2x+3dv/dx=2x+3, du/dx=1/xdu/dx=1/x, v=x2+3xv=x^2+3x. Then ∫(2x+3)ln⁡x dx=(x2+3x)ln⁡x−∫(x+3) dx=(x2+3x)ln⁡x−x2/2−3x+C\int(2x+3)\ln x\,dx=(x^2+3x)\ln x-\int(x+3)\,dx=(x^2+3x)\ln x-x^2/2-3x+C, for x>0x>0.

How did this part go?

(b)

Choose u=xu=x, dv/dx=sin⁡xdv/dx=\sin x, du/dx=1du/dx=1, v=−cos⁡xv=-\cos x. The result is −xcos⁡x−∫(−cos⁡x) dx=−xcos⁡x+sin⁡x+C-x\cos x-\int(-\cos x)\,dx=-x\cos x+\sin x+C.

How did this part go?

(c) Create a product with 1

Write ln⁡x=(ln⁡x)(1)\ln x=(\ln x)(1), then choose u=ln⁡xu=\ln x, dv/dx=1dv/dx=1, du/dx=1/xdu/dx=1/x, v=xv=x. Hence ∫ln⁡x dx=xln⁡x−∫x(1/x) dx=xln⁡x−x+C\int\ln x\,dx=x\ln x-\int x(1/x)\,dx=x\ln x-x+C, for x>0x>0. This is the source important remark about introducing a factor 1.

How did this part go?

(d) Apply parts twice

First u=x2u=x^2, dv/dx=cos⁡xdv/dx=\cos x, du/dx=2xdu/dx=2x, v=sin⁡xv=\sin x, giving x2sin⁡x−2∫xsin⁡x dxx^2\sin x-2\int x\sin x\,dx. For the latter integral use u1=xu_1=x, dv1/dx=sin⁡xdv_1/dx=\sin x, du1/dx=1du_1/dx=1, v1=−cos⁡xv_1=-\cos x. Therefore the answer is x2sin⁡x+2xcos⁡x−2∫cos⁡x dx=x2sin⁡x+2xcos⁡x−2sin⁡x+Cx^2\sin x+2x\cos x-2\int\cos x\,dx=x^2\sin x+2x\cos x-2\sin x+C.

How did this part go?

(e) Let the integral return

Let I=∫e2xsin⁡x dxI=\int e^{2x}\sin x\,dx. Choose u=sin⁡xu=\sin x, dv/dx=e2xdv/dx=e^{2x}, so du/dx=cos⁡xdu/dx=\cos x, v=e2x/2v=e^{2x}/2. Then I=e2xsin⁡x/2−12∫e2xcos⁡x dxI=e^{2x}\sin x/2-\frac12\int e^{2x}\cos x\,dx. Apply parts again with u1=cos⁡xu_1=\cos x, du1/dx=−sin⁡xdu_1/dx=-\sin x, dv1/dx=e2xdv_1/dx=e^{2x}, v1=e2x/2v_1=e^{2x}/2. Thus I=e2xsin⁡x/2−e2xcos⁡x/4−I/4I=e^{2x}\sin x/2-e^{2x}\cos x/4-I/4. Collect it on the left: 5I/4=e2xsin⁡x/2−e2xcos⁡x/4+C15I/4=e^{2x}\sin x/2-e^{2x}\cos x/4+C_1, giving I=25e2xsin⁡x−15e2xcos⁡x+CI=\frac25e^{2x}\sin x-\frac15e^{2x}\cos x+C.

How did this part go?

Common mistakes

Differentiate u and integrate dv/dx. For a standalone logarithm, the second factor is 1; an integral is not obtained by simply writing down the derivative.

Read the hint