IB Practice / Maths AA HL / Calculus

Integration by substitution and by parts: practice worksheet

6 questions · 42 marks · about 50 minutes

This worksheet practises integration by parts (including repeated parts and the cyclic case), integration by a given substitution with changed limits, and the use of these integrals in area and continuous probability contexts.

Download the PDFFree, no sign-up. The markscheme is on the last pages.
  1. Question 1warm-up · no calculator

    (a)Find ∫xcos⁡2x dx\int x\cos 2x\,\mathrm{d}x.[3]

    Markscheme
    attempt at integration by parts with u=xu = x, dvdx=cos⁡2x\frac{\mathrm{d}v}{\mathrm{d}x} = \cos 2xM1
    x2sin⁡2x−∫12sin⁡2x dx\frac{x}{2}\sin 2x - \int \frac{1}{2}\sin 2x\,\mathrm{d}xA1
    x2sin⁡2x+14cos⁡2x+c\frac{x}{2}\sin 2x + \frac{1}{4}\cos 2x + cA1

    Award M1 for a correct structure uv−∫v u′uv - \int v\,u' even with a sign or coefficient error in vv. Condone absence of +c+c until the final A1.

    Answer: x2sin⁡2x+14cos⁡2x+c\frac{x}{2}\sin 2x + \frac{1}{4}\cos 2x + c

  2. Question 2warm-up · no calculator

    (a)Using the substitution u=1+x2u = 1 + x^2, find the exact value of ∫03x1+x2 dx\int_0^{\sqrt{3}} \frac{x}{\sqrt{1+x^2}}\,\mathrm{d}x.[4]

    Markscheme
    dudx=2x\frac{\mathrm{d}u}{\mathrm{d}x} = 2x (or du=2x dx\mathrm{d}u = 2x\,\mathrm{d}x)A1
    12∫u−12 du\frac{1}{2}\int u^{-\frac{1}{2}}\,\mathrm{d}uM1
    new limits u=1u = 1 and u=4u = 4 (or returning to xx and using original limits)A1
    [u]14=2−1=1\left[\sqrt{u}\right]_1^4 = 2 - 1 = 1A1

    Condone absence of or incorrect limits up to the M1. The third A1 may be earned by writing 1+x2\sqrt{1+x^2} and substituting x=0x = 0, x=3x = \sqrt{3}.

    Answer: 11

  3. Question 3exam-style · no calculator

    (a)Find ∫x2sin⁡x dx\int x^2\sin x\,\mathrm{d}x.[5]

    Markscheme
    attempt at integration by parts with u=x2u = x^2, dvdx=sin⁡x\frac{\mathrm{d}v}{\mathrm{d}x} = \sin xM1
    −x2cos⁡x+∫2xcos⁡x dx-x^2\cos x + \int 2x\cos x\,\mathrm{d}xA1
    second application of parts with u=2xu = 2x (or xx), dvdx=cos⁡x\frac{\mathrm{d}v}{\mathrm{d}x} = \cos xM1
    2xsin⁡x−∫2sin⁡x dx2x\sin x - \int 2\sin x\,\mathrm{d}xA1
    −x2cos⁡x+2xsin⁡x+2cos⁡x+c-x^2\cos x + 2x\sin x + 2\cos x + cA1

    Award the first A1 for both the correct uvuv term and the correct remaining integral; if only one is correct award M1A0. Second M1 requires the correct direction of differentiation (polynomial degree reduced).

    Answer: −x2cos⁡x+2xsin⁡x+2cos⁡x+c-x^2\cos x + 2x\sin x + 2\cos x + c

    (b)Hence show that ∫0πx2sin⁡x dx=π2−4\int_0^{\pi} x^2\sin x\,\mathrm{d}x = \pi^2 - 4.[2]

    Markscheme
    substituting limits into their answer to (a): (−π2(−1)+0+2(−1))−(0+0+2)\left(-\pi^2(-1) + 0 + 2(-1)\right) - \left(0 + 0 + 2\right)M1
    =(π2−2)−2=π2−4= (\pi^2 - 2) - 2 = \pi^2 - 4A1
    π2−4\pi^2 - 4AG

    The A1 requires the values cos⁡π=−1\cos\pi = -1, sin⁡π=0\sin\pi = 0, cos⁡0=1\cos 0 = 1 seen or clearly used. Do not award A1 if the answer to (a) is incorrect and the given result is reached by manipulation.

    Answer: π2−4\pi^2 - 4

  4. Question 4exam-style · no calculator

    (a)Express 1u(u+1)\frac{1}{u(u+1)} in partial fractions.[2]

    Markscheme
    1u(u+1)≡Au+Bu+1\frac{1}{u(u+1)} \equiv \frac{A}{u} + \frac{B}{u+1} and attempt to find AA, BB (e.g. 1=A(u+1)+Bu1 = A(u+1) + Bu)M1
    1u−1u+1\frac{1}{u} - \frac{1}{u+1}A1

    Accept the cover-up method with A=1A = 1, B=−1B = -1 stated.

    Answer: 1u−1u+1\frac{1}{u} - \frac{1}{u+1}

    (b)Hence, using the substitution u=cos⁡xu = \cos x, find the exact value of ∫0π3sin⁡xcos⁡2x+cos⁡x dx\int_0^{\frac{\pi}{3}} \frac{\sin x}{\cos^2 x + \cos x}\,\mathrm{d}x.[5]

    Markscheme
    dudx=−sin⁡x\frac{\mathrm{d}u}{\mathrm{d}x} = -\sin x (or du=−sin⁡x dx\mathrm{d}u = -\sin x\,\mathrm{d}x)A1
    −∫1u(u+1) du=−∫(1u−1u+1)du-\int \frac{1}{u(u+1)}\,\mathrm{d}u = -\int \left(\frac{1}{u} - \frac{1}{u+1}\right)\mathrm{d}uM1
    limits u=1u = 1 and u=12u = \frac{1}{2} (or equivalent, e.g. ∫121\int_{\frac{1}{2}}^{1} with sign reversed)A1
    [−ln⁡u+ln⁡(u+1)]112\left[-\ln u + \ln(u+1)\right]_1^{\frac{1}{2}} or [ln⁡u+1u]112\left[\ln\frac{u+1}{u}\right]_1^{\frac{1}{2}}A1
    ln⁡3−ln⁡2=ln⁡32\ln 3 - \ln 2 = \ln\frac{3}{2}A1

    Condone absence of or incorrect limits up to the second A1. Condone missing modulus signs. Accept ln⁡3−ln⁡2\ln 3 - \ln 2 or −ln⁡23-\ln\frac{2}{3} for the final A1.

    Answer: ln⁡32\ln\frac{3}{2}

  5. Question 5exam-style · no calculator

    Let I=∫e2xcos⁡x dxI = \int e^{2x}\cos x\,\mathrm{d}x.

    (a)Using integration by parts twice, show that I=15e2x(sin⁡x+2cos⁡x)+cI = \frac{1}{5}e^{2x}\left(\sin x + 2\cos x\right) + c.[6]

    Markscheme
    attempt at integration by parts with u=e2xu = e^{2x}, dvdx=cos⁡x\frac{\mathrm{d}v}{\mathrm{d}x} = \cos xM1
    I=e2xsin⁡x−2∫e2xsin⁡x dxI = e^{2x}\sin x - 2\int e^{2x}\sin x\,\mathrm{d}xA1
    second application of parts on ∫e2xsin⁡x dx\int e^{2x}\sin x\,\mathrm{d}x with u=e2xu = e^{2x}, dvdx=sin⁡x\frac{\mathrm{d}v}{\mathrm{d}x} = \sin xM1
    ∫e2xsin⁡x dx=−e2xcos⁡x+2∫e2xcos⁡x dx\int e^{2x}\sin x\,\mathrm{d}x = -e^{2x}\cos x + 2\int e^{2x}\cos x\,\mathrm{d}xA1
    I=e2xsin⁡x+2e2xcos⁡x−4II = e^{2x}\sin x + 2e^{2x}\cos x - 4I (recognising the original integral)M1
    5I=e2x(sin⁡x+2cos⁡x)+k5I = e^{2x}(\sin x + 2\cos x) + k so I=15e2x(sin⁡x+2cos⁡x)+cI = \frac{1}{5}e^{2x}(\sin x + 2\cos x) + cA1
    I=15e2x(sin⁡x+2cos⁡x)+cI = \frac{1}{5}e^{2x}(\sin x + 2\cos x) + cAG

    METHOD 2: taking u=cos⁡xu = \cos x, dvdx=e2x\frac{\mathrm{d}v}{\mathrm{d}x} = e^{2x} both times gives I=12e2xcos⁡x+14e2xsin⁡x−14II = \frac{1}{2}e^{2x}\cos x + \frac{1}{4}e^{2x}\sin x - \frac{1}{4}I; award marks equivalently. Candidates must use the same pairing in both applications, otherwise the identity I=II = I results and at most M1A1M1A0 is available.

    Answer: I=15e2x(sin⁡x+2cos⁡x)+cI = \frac{1}{5}e^{2x}(\sin x + 2\cos x) + c

    (b)The region RR is bounded by the curve y=e2xcos⁡xy = e^{2x}\cos x, the xx-axis and the yy-axis, for 0≤x≤π20 \le x \le \frac{\pi}{2}. Find the exact area of RR.[2]

    Markscheme
    area =[15e2x(sin⁡x+2cos⁡x)]0π2= \left[\frac{1}{5}e^{2x}(\sin x + 2\cos x)\right]_0^{\frac{\pi}{2}}M1
    =15(eπ(1+0)−(0+2))=eπ−25= \frac{1}{5}\left(e^{\pi}(1 + 0) - (0 + 2)\right) = \frac{e^{\pi} - 2}{5}A1

    Accept 15eπ−25\frac{1}{5}e^{\pi} - \frac{2}{5}. Since the curve is non-negative on the interval no modulus is needed.

    Answer: eπ−25\frac{e^{\pi} - 2}{5}

  6. Question 6challenge · no calculator

    A continuous random variable XX has probability density function ff given by f(x)={kxex,0≤x≤10,otherwisef(x) = \begin{cases} kxe^{x}, & 0 \le x \le 1 \\ 0, & \text{otherwise} \end{cases} where kk is a positive constant.

    (a)Using integration by parts, show that k=1k = 1.[4]

    Markscheme
    attempt at integration by parts on ∫xex dx\int xe^{x}\,\mathrm{d}x with u=xu = x, dvdx=ex\frac{\mathrm{d}v}{\mathrm{d}x} = e^{x}M1
    ∫xex dx=xex−ex  (=(x−1)ex)\int xe^{x}\,\mathrm{d}x = xe^{x} - e^{x}\;(= (x-1)e^{x})A1
    k∫01xex dx=1k\int_0^1 xe^{x}\,\mathrm{d}x = 1, i.e. k[(x−1)ex]01=1k\left[(x-1)e^{x}\right]_0^1 = 1M1
    k(0−(−1))=1⇒k=1k\left(0 - (-1)\right) = 1 \Rightarrow k = 1A1
    k=1k = 1AG

    The second M1 requires the total probability condition with limits 0 and 1 to be explicitly stated. The final A1 requires the values at both limits to be shown.

    Answer: k=1k = 1

    (b)Find P(X>ln⁡2)\mathrm{P}(X > \ln 2), giving your answer in the form a+bln⁡2a + b\ln 2 where a,b∈Za, b \in \mathbb{Z}.[3]

    Markscheme
    P(X>ln⁡2)=∫ln⁡21xex dx\mathrm{P}(X > \ln 2) = \int_{\ln 2}^{1} xe^{x}\,\mathrm{d}x or 1−∫0ln⁡2xex dx1 - \int_0^{\ln 2} xe^{x}\,\mathrm{d}xM1
    use of eln⁡2=2e^{\ln 2} = 2: [(x−1)ex]ln⁡21=0−2(ln⁡2−1)\left[(x-1)e^{x}\right]_{\ln 2}^{1} = 0 - 2(\ln 2 - 1)A1
    =2−2ln⁡2= 2 - 2\ln 2A1

    Award the first A1 for (ln⁡2−1)⋅2+1=2ln⁡2−1(\ln 2 - 1)\cdot 2 + 1 = 2\ln 2 - 1 if the complement route is used. Accept 2(1−ln⁡2)2(1 - \ln 2).

    Answer: 2−2ln⁡22 - 2\ln 2

    (c)Show that E(X)=e−2\mathrm{E}(X) = e - 2.[4]

    Markscheme
    E(X)=∫01x2ex dx\mathrm{E}(X) = \int_0^1 x^2e^{x}\,\mathrm{d}xM1
    attempt at integration by parts with u=x2u = x^2, dvdx=ex\frac{\mathrm{d}v}{\mathrm{d}x} = e^{x}M1
    x2ex−2∫xex dx=x2ex−2(x−1)exx^2e^{x} - 2\int xe^{x}\,\mathrm{d}x = x^2e^{x} - 2(x-1)e^{x} (using part (a))A1
    [x2ex−2(x−1)ex]01=(e−0)−(0+2)=e−2\left[x^2e^{x} - 2(x-1)e^{x}\right]_0^1 = (e - 0) - (0 + 2) = e - 2A1
    E(X)=e−2\mathrm{E}(X) = e - 2AG

    Accept a full second application of parts on ∫xex dx\int xe^{x}\,\mathrm{d}x in place of quoting part (a). Accept the antiderivative written as ex(x2−2x+2)e^{x}(x^2 - 2x + 2).

    Answer: E(X)=e−2\mathrm{E}(X) = e - 2

    (d)The median of XX is mm. Show that mm satisfies the equation (1−m)em=12(1 - m)e^{m} = \frac{1}{2}.[2]

    Markscheme
    ∫0mxex dx=12\int_0^m xe^{x}\,\mathrm{d}x = \frac{1}{2}, i.e. [(x−1)ex]0m=12\left[(x-1)e^{x}\right]_0^m = \frac{1}{2}M1
    (m−1)em+1=12⇒(1−m)em=12(m-1)e^{m} + 1 = \frac{1}{2} \Rightarrow (1-m)e^{m} = \frac{1}{2}A1
    (1−m)em=12(1 - m)e^{m} = \frac{1}{2}AG

    Accept the equivalent condition ∫m1xex dx=12\int_m^1 xe^{x}\,\mathrm{d}x = \frac{1}{2} giving −(m−1)em=12-(m-1)e^{m} = \frac{1}{2} directly.

    Answer: (1−m)em=12(1 - m)e^{m} = \frac{1}{2}

Common errors

  • Choosing uu and dvdx\frac{\mathrm{d}v}{\mathrm{d}x} the wrong way round so that the remaining integral is harder than the original, for example differentiating exe^{x} and integrating x2x^2.
  • Making a sign error on the −∫v dudx dx-\int v\,\frac{\mathrm{d}u}{\mathrm{d}x}\,\mathrm{d}x term, particularly in the second application of parts where two negatives combine.
  • Forgetting to change the limits (or to convert back to the original variable) when a definite integral is transformed by a substitution.
  • Omitting the constant factor from du=g′(x) dx\mathrm{d}u = g'(x)\,\mathrm{d}x, for example writing ∫x1+x2 dx=∫u−12 du\int \frac{x}{\sqrt{1+x^2}}\,\mathrm{d}x = \int u^{-\frac{1}{2}}\,\mathrm{d}u without the factor 12\frac{1}{2}.
  • In the cyclic case ∫eaxcos⁡bx dx\int e^{ax}\cos bx\,\mathrm{d}x, swapping the choice of uu between the two applications, which returns the trivial identity I=II = I instead of an equation that can be solved for II.

Original questions and notes written by Pietro Meloni, PhD, from the IB syllabus. Not endorsed by or affiliated with the International Baccalaureate Organization. Found a mistake? Please tell me privately at pietro@pietromeloni.com. More questions on this topic: Calculus practice.

Find out what is costing the marks.

Twenty minutes, one to one, online. No charge, no commitment.

Request an initial assessment