Hersi Maths WhatsApp me

Year 2 Pure

Integration by parts

Integration by parts looks like a formula that appeared from nowhere. It is the product rule rearranged, and seeing that rearrangement tells you which part to call u.

Read the notes at your own pace. Play an animation when it helps, or jump straight to a question. Back and Next never wait for a clip to finish.

Before you start: the product rule, basic integration and natural logarithms. Trigonometric arguments use radians; expressions containing ln x assume x > 0.

The lesson controls need JavaScript. You can still read every explanation and worked answer below, and use each video's own controls. Interactive exercises are hidden in this view.

The product rule run backwards

  1. When uu and vv change by small amounts, uvuv gains two strips and a corner. After dividing by the change in xx, the corner contribution tends to zero in the derivative limit.
  2. That is the product rule: the blue strip is v dudxv\,\frac{du}{dx}, the orange strip is u dvdxu\,\frac{dv}{dx}.
  3. Integrate both sides: the whole rectangle is the two strip integrals added up.
  4. Move the blue integral across. This rearrangement is integration by parts.
  1. Differentiate xexxe^{x} with the product rule: two strips, exe^{x} and xexxe^{x}.
  2. Integrate both sides. The strip we cannot do directly, ∫xex dx\int xe^{x}\,dx, is on the right.
  3. Move the easy strip across: ∫xex dx=xex−ex+c\int xe^{x}\,dx = xe^{x}-e^{x}+c.
  4. Check it: differentiate the answer and the two exe^{x} terms cancel.

∫u dvdx dx  =  uv−∫v dudx dx\int u\,\frac{dv}{dx}\,dx \;=\; uv-\int v\,\frac{du}{dx}\,dx

Integrate the product rule, then move one strip across: this is the formula we use from here on.

(a) Differentiate xsin⁡xx\sin x.

(b) Hence find ∫xcos⁡x dx\displaystyle\int x\cos x\,dx.

  1. ddx(xsin⁡x)=sin⁡x+xcos⁡x\frac{d}{dx}(x\sin x)=\sin x+x\cos x
  2. xsin⁡x=∫sin⁡x dx+∫xcos⁡x dxx\sin x=\int \sin x\,dx+\int x\cos x\,dx
  3. ∫xcos⁡x dx=xsin⁡x−∫sin⁡x dx\int x\cos x\,dx=x\sin x-\int \sin x\,dx
  4. ∫xcos⁡x dx=xsin⁡x+cos⁡x+c\int x\cos x\,dx=x\sin x+\cos x+c

(a) Differentiate xe2xxe^{2x}. [2]

(b) Hence find ∫xe2x dx\displaystyle\int xe^{2x}\,dx. [2]

  1. ddx(xe2x)=e2x+2xe2x\frac{d}{dx}(xe^{2x})=e^{2x}+2xe^{2x}
  2. xe2x=∫e2x dx+2∫xe2x dxxe^{2x}=\int e^{2x}\,dx+2\int xe^{2x}\,dx
  3. 2∫xe2x dx=xe2x−12e2x2\int xe^{2x}\,dx=xe^{2x}-\tfrac12 e^{2x}
  4. ∫xe2x dx=12xe2x−14e2x+c\int xe^{2x}\,dx=\tfrac12 xe^{2x}-\tfrac14 e^{2x}+c

The formula and choosing u

  1. Put one factor in as uu, the other as dvdx\frac{dv}{dx}. Differentiate down the left, integrate down the right.
  2. Read the formula off the frame: the diagonal is uvuv; the bottom row is the new integral.
  3. Choose the other way round and the new integral has x2x^{2} in it: worse than where you started.
  4. So uu is the factor that gets simpler when you differentiate it.
  1. u=xu=x, because it differentiates to 11. dvdx=sin⁡x\frac{dv}{dx}=\sin x integrates to −cos⁡x-\cos x.
  2. Fill the formula: uvuv first, then minus the integral of vv times dudx\frac{du}{dx}.
  3. Two minuses make a plus: the last integral is ∫cos⁡x dx\int \cos x\,dx.
  4. ∫xsin⁡x dx=−xcos⁡x+sin⁡x+c\int x\sin x\,dx=-x\cos x+\sin x+c.

∫xnex dx: u=xn\int x^{n}e^{x}\,dx:\ {u=x^{n}} ∫xnsin⁡x dx: u=xn\int x^{n}\sin x\,dx:\ {u=x^{n}}

For a non-negative integer nn, choose u=xnu=x^n. Repeated differentiation eventually removes the polynomial factor.

Tap the factor of ∫xcos⁡2x dx\displaystyle\int x\cos 2x\,dx that should be uu.

Find ∫xe3x dx\displaystyle\int xe^{3x}\,dx.

  1. u=x, dvdx=e3x ⇒ dudx=1, v=13e3x{u=x},\ {\frac{dv}{dx}=e^{3x}}\ \Rightarrow\ {\frac{du}{dx}=1},\ {v=\tfrac13 e^{3x}}
  2. ∫xe3x dx=13xe3x−∫13e3x dx\int xe^{3x}\,dx=\tfrac13 xe^{3x}-\int \tfrac13 e^{3x}\,dx
  3. =13xe3x−19e3x+c=\tfrac13 xe^{3x}-\tfrac19 e^{3x}+c

Find ∫xsin⁡3x dx\displaystyle\int x\sin 3x\,dx.

  1. u=x, dvdx=sin⁡3x ⇒ dudx=1, v=−13cos⁡3x{u=x},\ {\frac{dv}{dx}=\sin 3x}\ \Rightarrow\ {\frac{du}{dx}=1},\ {v=-\tfrac13\cos 3x}
  2. ∫xsin⁡3x dx=−13xcos⁡3x+∫13cos⁡3x dx\int x\sin 3x\,dx=-\tfrac13 x\cos 3x+\int \tfrac13\cos 3x\,dx
  3. =−13xcos⁡3x+19sin⁡3x+c=-\tfrac13 x\cos 3x+\tfrac19\sin 3x+c

Find ∫(3x+2)e−x dx\displaystyle\int (3x+2)e^{-x}\,dx, giving your answer in the form f(x)e−x+cf(x)e^{-x}+c. [4]

  1. u=3x+2, dvdx=e−x ⇒ dudx=3, v=−e−x{u=3x+2},\ {\frac{dv}{dx}=e^{-x}}\ \Rightarrow\ {\frac{du}{dx}=3},\ {v=-e^{-x}}
  2. ∫(3x+2)e−x dx=−(3x+2)e−x+∫3e−x dx\int {(3x+2)}e^{-x}\,dx=-{(3x+2)}e^{-x}+\int 3e^{-x}\,dx
  3. =−(3x+2)e−x−3e−x+c=-{(3x+2)}e^{-x}-3e^{-x}+c
  4. =−(3x+5)e−x+c=-(3x+5)e^{-x}+c

Repeated parts

  1. u=x2u=x^{2}. One round of parts leaves ∫xex dx\int xe^{x}\,dx: still a product, but the power has dropped.
  2. Go again on the new integral. Down the ladder: x2x^{2}, 2x2x, 22; the exe^{x} never changes.
  3. Two rounds for x2x^{2}: one round for each power of xx.
  4. ∫x2ex dx=(x2−2x+2)ex+c\int x^{2}e^{x}\,dx=(x^{2}-2x+2)e^{x}+c.
  1. u=x2u=x^{2}, dvdx=cos⁡x\frac{dv}{dx}=\cos x. First round: x2sin⁡xx^{2}\sin x minus ∫2xsin⁡x dx\int 2x\sin x\,dx.
  2. Second round on ∫2xsin⁡x dx\int 2x\sin x\,dx: u=2xu=2x, and sin⁡x\sin x integrates to −cos⁡x-\cos x.
  3. Bracket the second round: the minus in front flips both its signs.
  4. ∫x2cos⁡x dx=x2sin⁡x+2xcos⁡x−2sin⁡x+c\int x^{2}\cos x\,dx=x^{2}\sin x+2x\cos x-2\sin x+c.

∫x2ex dx=(x2−2x+2)ex+c\int x^{2}e^{x}\,dx=\left(x^{2}-2x+2\right)e^{x}+c

One round of parts for each power of x, and each new round sits inside a bracket with a minus in front.

Tap the factor of ∫x2sin⁡x dx\displaystyle\int x^{2}\sin x\,dx that should be uu.

Find ∫x2e2x dx\displaystyle\int x^{2}e^{2x}\,dx.

  1. u=x2, dvdx=e2x ⇒ dudx=2x, v=12e2x{u=x^{2}},\ {\frac{dv}{dx}=e^{2x}}\ \Rightarrow\ {\frac{du}{dx}=2x},\ {v=\tfrac12 e^{2x}}
  2. ∫x2e2x dx=12x2e2x−∫xe2x dx\int x^{2}e^{2x}\,dx=\tfrac12 x^{2}e^{2x}-\int xe^{2x}\,dx
  3. ∫xe2x dx=12xe2x−∫12e2x dx=12xe2x−14e2x\int xe^{2x}\,dx=\tfrac12 xe^{2x}-\int \tfrac12 e^{2x}\,dx=\tfrac12 xe^{2x}-\tfrac14 e^{2x}
  4. ∫x2e2x dx=12x2e2x−12xe2x+14e2x+c\int x^{2}e^{2x}\,dx=\tfrac12 x^{2}e^{2x}-\tfrac12 xe^{2x}+\tfrac14 e^{2x}+c
  5. =14(2x2−2x+1)e2x+c=\tfrac14\left(2x^{2}-2x+1\right)e^{2x}+c

Find ∫x2cos⁡2x dx\displaystyle\int x^{2}\cos 2x\,dx.

  1. u=x2, dvdx=cos⁡2x ⇒ dudx=2x, v=12sin⁡2x{u=x^{2}},\ {\frac{dv}{dx}=\cos 2x}\ \Rightarrow\ {\frac{du}{dx}=2x},\ {v=\tfrac12\sin 2x}
  2. ∫x2cos⁡2x dx=12x2sin⁡2x−∫xsin⁡2x dx\int x^{2}\cos 2x\,dx=\tfrac12 x^{2}\sin 2x-\int x\sin 2x\,dx
  3. ∫xsin⁡2x dx=−12xcos⁡2x+∫12cos⁡2x dx=−12xcos⁡2x+14sin⁡2x\int x\sin 2x\,dx=-\tfrac12 x\cos 2x+\int \tfrac12\cos 2x\,dx=-\tfrac12 x\cos 2x+\tfrac14\sin 2x
  4. ∫x2cos⁡2x dx=12x2sin⁡2x+12xcos⁡2x−14sin⁡2x+c\int x^{2}\cos 2x\,dx=\tfrac12 x^{2}\sin 2x+\tfrac12 x\cos 2x-\tfrac14\sin 2x+c

Show that ∫(x2−3)e−x dx=−(x2+2x−1)e−x+c\displaystyle\int (x^{2}-3)e^{-x}\,dx=-\left(x^{2}+2x-1\right)e^{-x}+c. [5]

  1. u=x2−3, dvdx=e−x ⇒ dudx=2x, v=−e−x{u=x^{2}-3},\ {\frac{dv}{dx}=e^{-x}}\ \Rightarrow\ {\frac{du}{dx}=2x},\ {v=-e^{-x}}
  2. ∫(x2−3)e−x dx=−(x2−3)e−x+∫2xe−x dx\int {(x^{2}-3)}e^{-x}\,dx=-{(x^{2}-3)}e^{-x}+\int 2xe^{-x}\,dx
  3. ∫2xe−x dx=−2xe−x+∫2e−x dx=−2xe−x−2e−x\int 2xe^{-x}\,dx=-2xe^{-x}+\int 2e^{-x}\,dx=-2xe^{-x}-2e^{-x}
  4. ∫(x2−3)e−x dx=−(x2−3)e−x−2xe−x−2e−x+c\int {(x^{2}-3)}e^{-x}\,dx=-{(x^{2}-3)}e^{-x}-2xe^{-x}-2e^{-x}+c
  5. =−(x2+2x−1)e−x+c=-\left(x^{2}+2x-1\right)e^{-x}+c

Definite integrals by parts

  1. As xx runs from aa to bb, the point (u,v)(u,v) slides up the curve.
  2. Under the curve is ∫v dudx dx\int v\,\frac{du}{dx}\,dx; beside it, up to the vv-axis, is ∫u dvdx dx\int u\,\frac{dv}{dx}\,dx.
  3. Together they fill an L: the big rectangle minus the small one, which is [uv][uv] between the limits.
  4. Move the blue integral across. Every piece carries the limits aa and bb.
  1. Same parts, with limits: the uvuv term becomes a bracket, evaluated straight away.
  2. [xex]01=e[xe^{x}]_{0}^{1}=e. The last integral, ∫01ex dx\int_{0}^{1}e^{x}\,dx, is e−1e-1.
  3. The area is exactly 11: every ee cancelled.

∫abu dvdx dx=[uv]ab−∫abv dudx dx\int_{a}^{b}u\,\frac{dv}{dx}\,dx=\Big[uv\Big]_{a}^{b}-\int_{a}^{b}v\,\frac{du}{dx}\,dx

Evaluate the bracket at once; the integral that remains keeps the same limits.

Drag the upper limit bb so that the area under y=xexy=xe^{x} from 00 to bb is exactly 11.

Find the exact value of ∫0πxsin⁡x dx\displaystyle\int_{0}^{\pi}x\sin x\,dx.

x y 0 π y = x sin x π
  1. u=x, dvdx=sin⁡x ⇒ dudx=1, v=−cos⁡x{u=x},\ {\frac{dv}{dx}=\sin x}\ \Rightarrow\ {\frac{du}{dx}=1},\ {v=-\cos x}
  2. ∫0πxsin⁡x dx=[−xcos⁡x]0π+∫0πcos⁡x dx\int_{0}^{\pi}x\sin x\,dx=\big[{-x\cos x}\big]_{0}^{\pi}+\int_{0}^{\pi}\cos x\,dx
  3. [−xcos⁡x]0π=−πcos⁡π−0=π\big[{-x\cos x}\big]_{0}^{\pi}=-\pi\cos\pi-0=\pi
  4. ∫0πcos⁡x dx=[sin⁡x]0π=0\int_{0}^{\pi}\cos x\,dx=\big[{\sin x}\big]_{0}^{\pi}=0
  5. ∫0πxsin⁡x dx=π\int_{0}^{\pi}x\sin x\,dx=\pi

Show that ∫0ln⁡2xex dx=2ln⁡2−1\displaystyle\int_{0}^{\ln 2}xe^{x}\,dx=2\ln 2-1.

  1. u=x, dvdx=ex ⇒ dudx=1, v=ex{u=x},\ {\frac{dv}{dx}=e^{x}}\ \Rightarrow\ {\frac{du}{dx}=1},\ {v=e^{x}}
  2. ∫0ln⁡2xex dx=[xex]0ln⁡2−∫0ln⁡2ex dx\int_{0}^{\ln 2}xe^{x}\,dx=\big[{xe^{x}}\big]_{0}^{\ln 2}-\int_{0}^{\ln 2}e^{x}\,dx
  3. [xex]0ln⁡2=(ln⁡2) eln⁡2−0=2ln⁡2\big[{xe^{x}}\big]_{0}^{\ln 2}=(\ln 2)\,e^{\ln 2}-0=2\ln 2
  4. ∫0ln⁡2ex dx=[ex]0ln⁡2=2−1=1\int_{0}^{\ln 2}e^{x}\,dx=\big[{e^{x}}\big]_{0}^{\ln 2}=2-1=1
  5. ∫0ln⁡2xex dx=2ln⁡2−1\int_{0}^{\ln 2}xe^{x}\,dx=2\ln 2-1

Find the exact value of ∫0π/4xcos⁡2x dx\displaystyle\int_{0}^{\pi/4}x\cos 2x\,dx. [5]

  1. u=x, dvdx=cos⁡2x ⇒ dudx=1, v=12sin⁡2x{u=x},\ {\frac{dv}{dx}=\cos 2x}\ \Rightarrow\ {\frac{du}{dx}=1},\ {v=\tfrac12\sin 2x}
  2. ∫0π/4xcos⁡2x dx=[12xsin⁡2x]0π/4−∫0π/412sin⁡2x dx\int_{0}^{\pi/4}x\cos 2x\,dx=\big[{\tfrac12 x\sin 2x}\big]_{0}^{\pi/4}-\int_{0}^{\pi/4}\tfrac12\sin 2x\,dx
  3. [12xsin⁡2x]0π/4=12⋅π4⋅sin⁡π2−0=π8\big[{\tfrac12 x\sin 2x}\big]_{0}^{\pi/4}=\tfrac12\cdot\tfrac{\pi}{4}\cdot\sin\tfrac{\pi}{2}-0=\tfrac{\pi}{8}
  4. ∫0π/412sin⁡2x dx=[−14cos⁡2x]0π/4=0−(−14)=14\int_{0}^{\pi/4}\tfrac12\sin 2x\,dx=\big[{-\tfrac14\cos 2x}\big]_{0}^{\pi/4}=0-\left(-\tfrac14\right)=\tfrac14
  5. ∫0π/4xcos⁡2x dx=π8−14\int_{0}^{\pi/4}x\cos 2x\,dx=\frac{\pi}{8}-\frac14

ln x and friends

  1. To derive an integral of ln⁡x\ln x, write it as 1×ln⁡x1\times\ln x and use parts, with x>0x>0.
  2. u=ln⁡xu=\ln x: it differentiates to 1x\frac{1}{x}. dvdx=1\frac{dv}{dx}=1 integrates to xx.
  3. xx times 1x\frac{1}{x} is 11. The integral that is left is just ∫1 dx\int 1\,dx.
  4. ∫ln⁡x dx=xln⁡x−x+c\int \ln x\,dx=x\ln x-x+c.
  1. For xln⁡xx\ln x, take u=ln⁡xu=\ln x: its derivative 1/x1/x simplifies the remaining integral. Here x>0x>0.
  2. v=x22v=\frac{x^{2}}{2}, and vv times 1x\frac{1}{x} collapses to x2\frac{x}{2}.
  3. ∫xln⁡x dx=x22ln⁡x−x24+c\int x\ln x\,dx=\frac{x^{2}}{2}\ln x-\frac{x^{2}}{4}+c.

∫ln⁡x dx=xln⁡x−x+c\int \ln x\,dx=x\ln x-x+c

For this integral, choose u=ln⁡xu=\ln x, with x>0x>0: its derivative is 1/x1/x, which cancels the xx from vv.

Tap the factor of ∫x2ln⁡x dx\displaystyle\int x^{2}\ln x\,dx that should be uu.

Find ∫x3ln⁡x dx\displaystyle\int x^{3}\ln x\,dx.

  1. u=ln⁡x, dvdx=x3 ⇒ dudx=1x, v=14x4{u=\ln x},\ {\frac{dv}{dx}=x^{3}}\ \Rightarrow\ {\frac{du}{dx}=\frac{1}{x}},\ {v=\tfrac14 x^{4}}
  2. ∫x3ln⁡x dx=14x4ln⁡x−∫14x4⋅1x dx=14x4ln⁡x−∫14x3 dx\int x^{3}\ln x\,dx=\tfrac14 x^{4}\ln x-\int \tfrac14 x^{4}\cdot\frac{1}{x}\,dx=\tfrac14 x^{4}\ln x-\int \tfrac14 x^{3}\,dx
  3. =14x4ln⁡x−116x4+c=\tfrac14 x^{4}\ln x-\tfrac{1}{16}x^{4}+c

Show that the area between the curve y=ln⁡xy=\ln x, the xx-axis and the line x=ex=e is exactly 11.

x y 1 e y = ln x 1
  1. Area=∫1eln⁡x dx\text{Area}=\int_{1}^{e}\ln x\,dx (the curve meets the axis at x=1x=1)
  2. u=ln⁡x, dvdx=1 ⇒ dudx=1x, v=x{u=\ln x},\ {\frac{dv}{dx}=1}\ \Rightarrow\ {\frac{du}{dx}=\frac{1}{x}},\ {v=x}
  3. ∫1eln⁡x dx=[xln⁡x]1e−∫1e1 dx\int_{1}^{e}\ln x\,dx=\big[{x\ln x}\big]_{1}^{e}-\int_{1}^{e}1\,dx
  4. [xln⁡x]1e=e⋅1−1⋅0=e,∫1e1 dx=e−1\big[{x\ln x}\big]_{1}^{e}=e\cdot 1-1\cdot 0=e,\qquad \int_{1}^{e}1\,dx=e-1
  5. Area=e−(e−1)=1\text{Area}=e-(e-1)=1

Find the exact value of ∫14x ln⁡x dx\displaystyle\int_{1}^{4}\sqrt{x}\,\ln x\,dx, giving your answer in the form pln⁡2+qp\ln 2+q where pp and qq are rational. [5]

  1. u=ln⁡x, dvdx=x1/2 ⇒ dudx=1x, v=23x3/2{u=\ln x},\ {\frac{dv}{dx}=x^{1/2}}\ \Rightarrow\ {\frac{du}{dx}=\frac{1}{x}},\ {v=\tfrac23 x^{3/2}}
  2. ∫14xln⁡x dx=[23x3/2ln⁡x]14−∫1423x1/2 dx\int_{1}^{4}\sqrt{x}\ln x\,dx=\big[{\tfrac23 x^{3/2}\ln x}\big]_{1}^{4}-\int_{1}^{4}\tfrac23 x^{1/2}\,dx
  3. [23x3/2ln⁡x]14=23⋅8ln⁡4−0=163ln⁡4\big[{\tfrac23 x^{3/2}\ln x}\big]_{1}^{4}=\tfrac23\cdot 8\ln 4-0=\tfrac{16}{3}\ln 4
  4. ∫1423x1/2 dx=[49x3/2]14=49(8−1)=289\int_{1}^{4}\tfrac23 x^{1/2}\,dx=\big[{\tfrac49 x^{3/2}}\big]_{1}^{4}=\tfrac49(8-1)=\tfrac{28}{9}
  5. 163ln⁡4−289=323ln⁡2−289\tfrac{16}{3}\ln 4-\tfrac{28}{9}=\frac{32}{3}\ln 2-\frac{28}{9}

Mixed

Find ∫xe−2x dx\displaystyle\int xe^{-2x}\,dx, giving your answer in the form k(ax+b)e−2x+ck(ax+b)e^{-2x}+c. [4]

  1. u=x, dvdx=e−2x ⇒ dudx=1, v=−12e−2x{u=x},\ {\frac{dv}{dx}=e^{-2x}}\ \Rightarrow\ {\frac{du}{dx}=1},\ {v=-\tfrac12 e^{-2x}}
  2. ∫xe−2x dx=−12xe−2x+∫12e−2x dx\int xe^{-2x}\,dx=-\tfrac12 xe^{-2x}+\int \tfrac12 e^{-2x}\,dx
  3. =−12xe−2x−14e−2x+c=-\tfrac12 xe^{-2x}-\tfrac14 e^{-2x}+c
  4. =−14(2x+1)e−2x+c=-\tfrac14\left(2x+1\right)e^{-2x}+c

Find ∫xsec⁡2x dx\displaystyle\int x\sec^{2}x\,dx. [4]

  1. u=x, dvdx=sec⁡2x ⇒ dudx=1, v=tan⁡x{u=x},\ {\frac{dv}{dx}=\sec^{2}x}\ \Rightarrow\ {\frac{du}{dx}=1},\ {v=\tan x}
  2. ∫xsec⁡2x dx=xtan⁡x−∫tan⁡x dx\int x\sec^{2}x\,dx=x\tan x-\int \tan x\,dx
  3. ∫tan⁡x dx=ln⁡∣sec⁡x∣+c\int \tan x\,dx=\ln\lvert\sec x\rvert+c
  4. ∫xsec⁡2x dx=xtan⁡x−ln⁡∣sec⁡x∣+c\int x\sec^{2}x\,dx=x\tan x-\ln\lvert\sec x\rvert+c

Show that ∫01/2xe2x dx=14\displaystyle\int_{0}^{1/2}xe^{2x}\,dx=\frac14. [5]

  1. u=x, dvdx=e2x ⇒ dudx=1, v=12e2x{u=x},\ {\frac{dv}{dx}=e^{2x}}\ \Rightarrow\ {\frac{du}{dx}=1},\ {v=\tfrac12 e^{2x}}
  2. ∫01/2xe2x dx=[12xe2x]01/2−∫01/212e2x dx\int_{0}^{1/2}xe^{2x}\,dx=\big[{\tfrac12 xe^{2x}}\big]_{0}^{1/2}-\int_{0}^{1/2}\tfrac12 e^{2x}\,dx
  3. [12xe2x]01/2=12⋅12⋅e−0=14e\big[{\tfrac12 xe^{2x}}\big]_{0}^{1/2}=\tfrac12\cdot\tfrac12\cdot e-0=\tfrac14 e
  4. ∫01/212e2x dx=[14e2x]01/2=14e−14\int_{0}^{1/2}\tfrac12 e^{2x}\,dx=\big[{\tfrac14 e^{2x}}\big]_{0}^{1/2}=\tfrac14 e-\tfrac14
  5. 14e−(14e−14)=14\tfrac14 e-\left(\tfrac14 e-\tfrac14\right)=\frac14

(a) In ∫x4ln⁡x dx\int x^{4}\ln x\,dx, which factor should you take as uu? Give a reason. [1]

(b) Hence find the exact value of ∫12x4ln⁡x dx\displaystyle\int_{1}^{2}x^{4}\ln x\,dx. [5]

  1. (a) u=ln⁡xu=\ln x: it differentiates to 1x\frac{1}{x}, so the remaining integrand is the simpler power x4/5x^4/5.
  2. (b) dvdx=x4 ⇒ dudx=1x, v=15x5{\frac{dv}{dx}=x^{4}}\ \Rightarrow\ {\frac{du}{dx}=\frac{1}{x}},\ {v=\tfrac15 x^{5}}
  3. ∫12x4ln⁡x dx=[15x5ln⁡x]12−∫1215x4 dx\int_{1}^{2}x^{4}\ln x\,dx=\big[{\tfrac15 x^{5}\ln x}\big]_{1}^{2}-\int_{1}^{2}\tfrac15 x^{4}\,dx
  4. [15x5ln⁡x]12=325ln⁡2−0=325ln⁡2\big[{\tfrac15 x^{5}\ln x}\big]_{1}^{2}=\tfrac{32}{5}\ln 2-0=\tfrac{32}{5}\ln 2
  5. ∫1215x4 dx=[125x5]12=3225−125=3125\int_{1}^{2}\tfrac15 x^{4}\,dx=\big[{\tfrac{1}{25}x^{5}}\big]_{1}^{2}=\tfrac{32}{25}-\tfrac{1}{25}=\tfrac{31}{25}
  6. ∫12x4ln⁡x dx=325ln⁡2−3125\int_{1}^{2}x^{4}\ln x\,dx=\frac{32}{5}\ln 2-\frac{31}{25}

Find ∫(ln⁡x)2 dx\displaystyle\int (\ln x)^{2}\,dx. [5]

  1. u=(ln⁡x)2, dvdx=1 ⇒ dudx=2ln⁡xx, v=x{u=(\ln x)^{2}},\ {\frac{dv}{dx}=1}\ \Rightarrow\ {\frac{du}{dx}=\frac{2\ln x}{x}},\ {v=x}
  2. ∫(ln⁡x)2 dx=x(ln⁡x)2−∫2ln⁡x dx\int (\ln x)^{2}\,dx=x(\ln x)^{2}-\int 2\ln x\,dx
  3. ∫ln⁡x dx=xln⁡x−∫x⋅1x dx\int \ln x\,dx=x\ln x-\int x\cdot\frac{1}{x}\,dx
  4. ∫ln⁡x dx=xln⁡x−x\int \ln x\,dx=x\ln x-x
  5. ∫(ln⁡x)2 dx=x(ln⁡x)2−2xln⁡x+2x+c\int (\ln x)^{2}\,dx=x(\ln x)^{2}-2x\ln x+2x+c

The curve y=xe−xy=xe^{-x} is drawn for x≥0x\ge 0. The region RR is bounded by the curve, the xx-axis and the line x=2x=2. Find the exact area of RR. [6]

x y O 2 y = xe−x R 1 − 3e−2
  1. Area=∫02xe−x dx\text{Area}=\int_{0}^{2}xe^{-x}\,dx
  2. u=x, dvdx=e−x ⇒ dudx=1, v=−e−x{u=x},\ {\frac{dv}{dx}=e^{-x}}\ \Rightarrow\ {\frac{du}{dx}=1},\ {v=-e^{-x}}
  3. ∫02xe−x dx=[−xe−x]02+∫02e−x dx\int_{0}^{2}xe^{-x}\,dx=\big[{-xe^{-x}}\big]_{0}^{2}+\int_{0}^{2}e^{-x}\,dx
  4. [−xe−x]02=−2e−2−0=−2e−2\big[{-xe^{-x}}\big]_{0}^{2}=-2e^{-2}-0=-2e^{-2}
  5. ∫02e−x dx=[−e−x]02=−e−2+1\int_{0}^{2}e^{-x}\,dx=\big[{-e^{-x}}\big]_{0}^{2}=-e^{-2}+1
  6. Area=1−3e−2\text{Area}=1-3e^{-2}

Show that ∫0π/2x2sin⁡x dx=π−2\displaystyle\int_{0}^{\pi/2}x^{2}\sin x\,dx=\pi-2. [7]

  1. u=x2, dvdx=sin⁡x ⇒ dudx=2x, v=−cos⁡x{u=x^{2}},\ {\frac{dv}{dx}=\sin x}\ \Rightarrow\ {\frac{du}{dx}=2x},\ {v=-\cos x}
  2. ∫0π/2x2sin⁡x dx=[−x2cos⁡x]0π/2+∫0π/22xcos⁡x dx\int_{0}^{\pi/2}x^{2}\sin x\,dx=\big[{-x^{2}\cos x}\big]_{0}^{\pi/2}+\int_{0}^{\pi/2}2x\cos x\,dx
  3. [−x2cos⁡x]0π/2=−π24cos⁡π2−0=0\big[{-x^{2}\cos x}\big]_{0}^{\pi/2}=-\tfrac{\pi^{2}}{4}\cos\tfrac{\pi}{2}-0=0
  4. u=2x, dvdx=cos⁡x ⇒ dudx=2, v=sin⁡x{u=2x},\ {\frac{dv}{dx}=\cos x}\ \Rightarrow\ {\frac{du}{dx}=2},\ {v=\sin x}
  5. ∫0π/22xcos⁡x dx=[2xsin⁡x]0π/2−∫0π/22sin⁡x dx\int_{0}^{\pi/2}2x\cos x\,dx=\big[{2x\sin x}\big]_{0}^{\pi/2}-\int_{0}^{\pi/2}2\sin x\,dx
  6. =π−[−2cos⁡x]0π/2=π−(0+2)=π−2=\pi-\big[{-2\cos x}\big]_{0}^{\pi/2}=\pi-(0+2)=\pi-2
  7. ∫0π/2x2sin⁡x dx=0+(π−2)=π−2\int_{0}^{\pi/2}x^{2}\sin x\,dx=0+{(\pi-2)}=\pi-2

Summary

∫u dvdx dx=uv−∫v dudx dx\int u\,\frac{dv}{dx}\,dx=uv-\int v\,\frac{du}{dx}\,dx

The product rule run backwards: differentiate u, integrate dv/dx, and the roles swap in the new integral.

∫xnex dx: u=xn\int x^{n}e^{x}\,dx:\ {u=x^{n}} ∫xnln⁡x dx: u=ln⁡x\int x^{n}\ln x\,dx:\ {u=\ln x}

For these examples take nn as a non-negative integer, and x>0x>0 when using ln⁡x\ln x. Choose uu to simplify the integral left over.

∫x2ex dx=(x2−2x+2)ex+c\int x^{2}e^{x}\,dx=\left(x^{2}-2x+2\right)e^{x}+c

One round for each power of x; bracket every new round, because it sits behind a minus.

∫abu dvdx dx=[uv]ab−∫abv dudx dx\int_{a}^{b}u\,\frac{dv}{dx}\,dx=\Big[uv\Big]_{a}^{b}-\int_{a}^{b}v\,\frac{du}{dx}\,dx

Evaluate the bracket straight away; the integral that remains keeps the same limits.

∫ln⁡x dx=xln⁡x−x+c\int \ln x\,dx=x\ln x-x+c

Write ln x as 1 × ln x; u = ln x differentiates to 1/x and the x from v cancels it.

Still stuck on this?

I tutor Edexcel A-level maths one to one, online or in person around north and central London.

£60 an hour online, £75 in person. Before booking anything we have a short call, no charge, so I understand what's needed and you can decide whether I'm the right person for it.