← Back to all lessons
Class 12Calculus14:56Published 25 Sept 2024

Integration by Parts: Sure Questions (Part 1)

Eight exam-favourite integration by parts problems for Class 12, worked step by step using the ILATE rule to choose the first and second functions.

This lesson introduces the integration by parts formula and the ILATE rule for deciding which factor to differentiate. It then works through eight frequently asked Class 12 questions, including integrals that need parts applied twice, examples with logarithms, two surd integrals solved by substituting a new variable first, and a final problem that recovers a constant by transposing the integral back to the other side. Every example shows the full working so you can follow how each answer is built up.

What you'll learn

  • How to use the ILATE rule to choose the first and second functions
  • How to apply integration by parts more than once for higher powers
  • How to substitute a new variable before integrating a surd by parts
  • How to recover an integral by moving it back to the other side of the equation

Lesson chapters

0:00The integration by parts formula and ILATE rule
0:40Question 1: x squared times e to the x
3:03Question 2: x times log x
4:27Question 3: x times log of 2x
5:28Question 4: x times log x all squared
7:51Question 5: log of the modulus of x
9:01Questions 6 and 7: surds with e to the root x
12:30Question 8: finding k for the integral of mod x

Lesson notes

This lesson sets up the integration by parts formula and the ILATE rule for choosing functions, then works through eight common Class 12 questions in order.

The formula and the ILATE rule

Integration by parts states

uvdx=uvdx(dudxvdx)dx,\int u \, v \, dx = u \int v \, dx - \int \left( \frac{du}{dx} \int v \, dx \right) dx,

where uu is the first function and vv is the second. To decide which factor is the first function, use the ILATE order of preference: Inverse trigonometric, Logarithmic, Algebraic, Trigonometric, Exponential. Whichever type comes earlier in this list is taken as the first function.

Question 1: x2exdx\int x^2 e^{x} \, dx

Here the algebraic factor x2x^2 comes before the exponential exe^{x} in ILATE, so u=x2u = x^2 and v=exv = e^{x}:

x2exdx=x2ex2xexdx=x2ex2xexdx.\int x^2 e^{x} \, dx = x^2 e^{x} - \int 2x \, e^{x} \, dx = x^2 e^{x} - 2 \int x \, e^{x} \, dx.

Apply parts again to xexdx\int x \, e^{x} \, dx with u=xu = x, v=exv = e^{x}:

xexdx=xexexdx=xexex.\int x \, e^{x} \, dx = x e^{x} - \int e^{x} \, dx = x e^{x} - e^{x}.

Substituting back,

x2exdx=x2ex2(xexex)+C=ex(x22x+2)+C.\int x^2 e^{x} \, dx = x^2 e^{x} - 2(x e^{x} - e^{x}) + C = e^{x}(x^2 - 2x + 2) + C.

Question 2: xlogxdx\int x \log x \, dx

Logarithmic beats algebraic in ILATE, so u=logxu = \log x and v=xv = x:

xlogxdx=logxx221xx22dx=x22logx12xdx.\int x \log x \, dx = \log x \cdot \frac{x^2}{2} - \int \frac{1}{x} \cdot \frac{x^2}{2} \, dx = \frac{x^2}{2} \log x - \frac{1}{2} \int x \, dx.

Therefore

xlogxdx=x22logxx24+C.\int x \log x \, dx = \frac{x^2}{2} \log x - \frac{x^2}{4} + C.

Question 3: xlog2xdx\int x \log 2x \, dx

Again take u=log2xu = \log 2x and v=xv = x. Since ddxlog2x=12x2=1x\dfrac{d}{dx}\log 2x = \dfrac{1}{2x} \cdot 2 = \dfrac{1}{x},

xlog2xdx=log2xx221xx22dx=x22log2x12xdx.\int x \log 2x \, dx = \log 2x \cdot \frac{x^2}{2} - \int \frac{1}{x} \cdot \frac{x^2}{2} \, dx = \frac{x^2}{2} \log 2x - \frac{1}{2} \int x \, dx.

So

xlog2xdx=x22log2xx24+C.\int x \log 2x \, dx = \frac{x^2}{2} \log 2x - \frac{x^2}{4} + C.

Question 4: x(logx)2dx\int x (\log x)^2 \, dx

Take u=(logx)2u = (\log x)^2 and v=xv = x. Using ddx(logx)2=2logxx\dfrac{d}{dx}(\log x)^2 = \dfrac{2 \log x}{x},

x(logx)2dx=x22(logx)22logxxx22dx=x22(logx)2xlogxdx.\int x (\log x)^2 \, dx = \frac{x^2}{2} (\log x)^2 - \int \frac{2 \log x}{x} \cdot \frac{x^2}{2} \, dx = \frac{x^2}{2} (\log x)^2 - \int x \log x \, dx.

From Question 2, xlogxdx=x22logxx24\displaystyle\int x \log x \, dx = \frac{x^2}{2} \log x - \frac{x^2}{4}, so

x(logx)2dx=x22(logx)2x22logx+x24+C.\int x (\log x)^2 \, dx = \frac{x^2}{2} (\log x)^2 - \frac{x^2}{2} \log x + \frac{x^2}{4} + C.

Taking x24\dfrac{x^2}{4} as a common factor,

x(logx)2dx=x24(2(logx)22logx+1)+C.\int x (\log x)^2 \, dx = \frac{x^2}{4} \left( 2 (\log x)^2 - 2 \log x + 1 \right) + C.

Question 5: logxdx\int \log |x| \, dx

With a single logarithm, take the second function as 11, so u=logxu = \log |x| and v=1v = 1:

logxdx=logxx1xxdx=xlogx1dx.\int \log |x| \, dx = \log |x| \cdot x - \int \frac{1}{x} \cdot x \, dx = x \log |x| - \int 1 \, dx.

Hence

logxdx=xlogxx+C=x(logx1)+C.\int \log |x| \, dx = x \log |x| - x + C = x \left( \log |x| - 1 \right) + C.

Question 6: exdx\int e^{\sqrt{x}} \, dx

First substitute x=t\sqrt{x} = t, so x=t2x = t^2 and dx=2tdtdx = 2t \, dt:

exdx=et2tdt=2tetdt.\int e^{\sqrt{x}} \, dx = \int e^{t} \cdot 2t \, dt = 2 \int t \, e^{t} \, dt.

Now integrate by parts with u=tu = t, v=etv = e^{t}:

2tetdt=2(tetetdt)=2et(t1)+C.2 \int t \, e^{t} \, dt = 2 \left( t e^{t} - \int e^{t} \, dt \right) = 2 e^{t}(t - 1) + C.

Replacing t=xt = \sqrt{x},

exdx=2ex(x1)+C.\int e^{\sqrt{x}} \, dx = 2 e^{\sqrt{x}} \left( \sqrt{x} - 1 \right) + C.

Question 7: xexdx\int \sqrt{x} \, e^{\sqrt{x}} \, dx

Substitute x=t\sqrt{x} = t again, so x=t2x = t^2 and dx=2tdtdx = 2t \, dt:

xexdx=tet2tdt=2t2etdt.\int \sqrt{x} \, e^{\sqrt{x}} \, dx = \int t \, e^{t} \cdot 2t \, dt = 2 \int t^2 e^{t} \, dt.

Using the result from Question 1, t2etdt=et(t22t+2)\displaystyle\int t^2 e^{t} \, dt = e^{t}(t^2 - 2t + 2), so

2t2etdt=2et(t22t+2)+C.2 \int t^2 e^{t} \, dt = 2 e^{t}(t^2 - 2t + 2) + C.

Replacing t=xt = \sqrt{x} (so t2=xt^2 = x),

xexdx=2ex(x2x+2)+C.\int \sqrt{x} \, e^{\sqrt{x}} \, dx = 2 e^{\sqrt{x}} \left( x - 2\sqrt{x} + 2 \right) + C.

Question 8: if xdx=kxx+C\int |x| \, dx = k \, x |x| + C, find kk

Write xdx=x1dx\int |x| \, dx = \int |x| \cdot 1 \, dx and integrate by parts with u=xu = |x|, v=1v = 1. Using ddxx=xx\dfrac{d}{dx}|x| = \dfrac{x}{|x|},

xdx=xxxxxdx=xxx2xdx.\int |x| \, dx = |x| \cdot x - \int \frac{x}{|x|} \cdot x \, dx = x |x| - \int \frac{x^2}{|x|} \, dx.

Since x2=x2x^2 = |x|^2, the remaining integral is just xdx\int |x| \, dx:

xdx=xxxdx+C1.\int |x| \, dx = x |x| - \int |x| \, dx + C_1.

Transpose the integral to the left side:

2xdx=xx+C1xdx=12xx+C.2 \int |x| \, dx = x |x| + C_1 \quad \Longrightarrow \quad \int |x| \, dx = \tfrac{1}{2} x |x| + C.

Comparing with the given form kxx+Ck \, x |x| + C shows k=12k = \tfrac{1}{2}.

Key takeaways

  • Choose the first function by the ILATE order: Inverse trig, Logarithmic, Algebraic, Trigonometric, Exponential.
  • When one application of parts leaves another product, apply parts again, as with x2exdx=ex(x22x+2)+C\int x^2 e^{x} \, dx = e^{x}(x^2 - 2x + 2) + C.
  • For exe^{\sqrt{x}} and xex\sqrt{x}\,e^{\sqrt{x}}, substitute x=t\sqrt{x} = t first, then integrate by parts.
  • If parts reproduces the original integral, move it to the other side and solve, giving xdx=12xx+C\int |x| \, dx = \tfrac{1}{2} x |x| + C.