· H2 Mathematics — Ten-Year Series, worked ← All 11 questions

2023 A-Level · Paper 1 · Question 4

2023 H2 Maths Paper 1, Question 4

Integration 10 marks Techniques of Integration
Download Paper 1 solutions (PDF)

Part (a)

2 marks

Using the product-to-sum identity cos⁡Acos⁡B=12[cos⁡(A−B)+cos⁡(A+B)]\cos A\cos B = \frac{1}{2}\left\lbrack \cos(A - B) + \cos(A + B) \right\rbrack with A=pxA = px, B=qxB = qx:

cos⁡(px)cos⁡(qx)=12[cos⁡((p−q)x)+cos⁡((p+q)x)]\cos(px)\cos(qx) = \frac{1}{2}\left\lbrack \cos\left( (p - q)x \right) + \cos\left( (p + q)x \right) \right\rbrack

Since p≠qp \neq q and p≠−qp \neq - q, both p−qp - q and p+qp + q are non-zero, so integrating term by term gives sine terms throughout:

∫cos⁡(px)cos⁡(qx) dx\int\cos(px)\cos(qx)\, dx
=12∫[cos⁡((p−q)x)+cos⁡((p+q)x)]dx= \frac{1}{2}\int\left\lbrack \cos\left( (p - q)x \right) + \cos\left( (p + q)x \right) \right\rbrack dx
=12[sin⁡((p−q)x)p−q+sin⁡((p+q)x)p+q]+c= \frac{1}{2}\left\lbrack \frac{\sin\left( (p - q)x \right)}{p - q} + \frac{\sin\left( (p + q)x \right)}{p + q} \right\rbrack + c
To check your answer: differentiating, 12[cos⁡((p−q)x)+cos⁡((p+q)x)]=cos⁡(px)cos⁡(qx)\frac{1}{2}\left\lbrack \cos\left( (p - q)x \right) + \cos\left( (p + q)x \right) \right\rbrack = \cos(px)\cos(qx) by the identity used ✓

∴\therefore ∫cos⁡(px)cos⁡(qx) dx=sin⁡((p−q)x)2(p−q)+sin⁡((p+q)x)2(p+q)+c\int\cos(px)\cos(qx)\, dx = \frac{\sin\left( (p - q)x \right)}{2(p - q)} + \frac{\sin\left( (p + q)x \right)}{2(p + q)} + c.

Part (b)

8 marks

Integrating by parts with u=xu = x and dv=cos⁡(nx) dxdv = \cos(nx)\, dx, so du=dxdu = dx and v=sin⁡(nx)nv = \frac{\sin(nx)}{n}:

∫xcos⁡(nx) dx=x⋅sin⁡(nx)n−∫sin⁡(nx)n dx\int x\cos(nx)\, dx = x \cdot \frac{\sin(nx)}{n} - \int\frac{\sin(nx)}{n}\, dx
=xsin⁡(nx)n−1n(−cos⁡(nx)n)+c= \frac{x\sin(nx)}{n} - \frac{1}{n}\left( - \frac{\cos(nx)}{n} \right) + c
=xsin⁡(nx)n+cos⁡(nx)n2+c= \frac{x\sin(nx)}{n} + \frac{\cos(nx)}{n^{2}} + c

∴\therefore ∫xcos⁡(nx) dx=xsin⁡(nx)n+cos⁡(nx)n2+c\int x\cos(nx)\, dx = \frac{x\sin(nx)}{n} + \frac{\cos(nx)}{n^{2}} + c (shown).

Part (c)

Using the result of (b), we evaluate at the limits x=0x = 0 and x=πx = \pi:

∫0πxcos⁡(nx) dx=[xsin⁡(nx)n+cos⁡(nx)n2]0π\int_{0}^{\pi}x\cos(nx)\, dx = \left\lbrack \frac{x\sin(nx)}{n} + \frac{\cos(nx)}{n^{2}} \right\rbrack_{0}^{\pi}

Since nn is a positive integer, sin⁡(nπ)=0\sin(n\pi) = 0 and cos⁡(nπ)=(−1)n\cos(n\pi) = ( - 1)^{n}, while at x=0x = 0 the bracket equals 1n2\frac{1}{n^{2}}:

=(0+(−1)nn2)−(0+1n2)= \left( 0 + \frac{( - 1)^{n}}{n^{2}} \right) - \left( 0 + \frac{1}{n^{2}} \right)
=(−1)n−1n2= \frac{( - 1)^{n} - 1}{n^{2}}
To check your answer: for n=1n = 1, ∫0πxcos⁡x dx=[xsin⁡x+cos⁡x]0π=(0−1)−(0+1)=−2\int_{0}^{\pi}x\cos x\, dx = \left\lbrack x\sin x + \cos x \right\rbrack_{0}^{\pi} = (0 - 1) - (0 + 1) = - 2, matching (−1)1−112=−2\frac{( - 1)^{1} - 1}{1^{2}} = - 2 ✓

If nn is even, (−1)n=1( - 1)^{n} = 1, so the integral equals 00. If nn is odd, (−1)n=−1( - 1)^{n} = - 1, so the integral equals −2n2- \frac{2}{n^{2}}.

∴\therefore ∫0πxcos⁡(nx) dx=kn2\int_{0}^{\pi}x\cos(nx)\, dx = \frac{k}{n^{2}}, with k=0k = 0 for even nn and k=−2k = - 2 for odd nn.

Part (d)

Approach

We first need to know where cos⁡(2x)\cos(2x) changes sign on [0,π2]\left\lbrack 0,\frac{\pi}{2} \right\rbrack in order to remove the modulus, then apply the antiderivative from (b) with n=2n = 2 separately on each piece.

On [0,π2]\left\lbrack 0,\frac{\pi}{2} \right\rbrack, cos⁡(2x)=0\cos(2x) = 0 at x=π4x = \frac{\pi}{4}, with cos⁡(2x)>0\cos(2x) > 0 for x<π4x < \frac{\pi}{4} and cos⁡(2x)<0\cos(2x) < 0 for x>π4x > \frac{\pi}{4}. So ∣xcos⁡(2x)∣=xcos⁡(2x)\left| x\cos(2x) \right| = x\cos(2x) on [0,π4]\left\lbrack 0,\frac{\pi}{4} \right\rbrack and ∣xcos⁡(2x)∣=−xcos⁡(2x)\left| x\cos(2x) \right| = - x\cos(2x) on [π4,π2]\left\lbrack \frac{\pi}{4},\frac{\pi}{2} \right\rbrack, giving

∫0π/2∣xcos⁡(2x)∣ dx=∫0π/4xcos⁡(2x) dx−∫π/4π/2xcos⁡(2x) dx\int_{0}^{\pi/2}\left| x\cos(2x) \right|\, dx = \int_{0}^{\pi/4}x\cos(2x)\, dx - \int_{\pi/4}^{\pi/2}x\cos(2x)\, dx

Using the result of (b) with n=2n = 2, let F(x)=xsin⁡(2x)2+cos⁡(2x)4F(x) = \frac{x\sin(2x)}{2} + \frac{\cos(2x)}{4}. Then

F(0)=14,F(π4)=π8,F(π2)=−14F(0) = \frac{1}{4},\quad F\left( \frac{\pi}{4} \right) = \frac{\pi}{8},\quad F\left( \frac{\pi}{2} \right) = - \frac{1}{4}

so

∫0π/4xcos⁡(2x) dx=F(π4)−F(0)=π8−14\int_{0}^{\pi/4}x\cos(2x)\, dx = F\left( \frac{\pi}{4} \right) - F(0) = \frac{\pi}{8} - \frac{1}{4}
∫π/4π/2xcos⁡(2x) dx=F(π2)−F(π4)=−14−π8\int_{\pi/4}^{\pi/2}x\cos(2x)\, dx = F\left( \frac{\pi}{2} \right) - F\left( \frac{\pi}{4} \right) = - \frac{1}{4} - \frac{\pi}{8}

Subtracting:

∫0π/2∣xcos⁡(2x)∣ dx=(π8−14)−(−14−π8)\int_{0}^{\pi/2}\left| x\cos(2x) \right|\, dx = \left( \frac{\pi}{8} - \frac{1}{4} \right) - \left( - \frac{1}{4} - \frac{\pi}{8} \right)
=π4= \frac{\pi}{4}
To check your answer: π4≈0.785\frac{\pi}{4} \approx 0.785, matching a numerical estimate of ∫0π/2∣xcos⁡(2x)∣ dx\int_{0}^{\pi/2}\left| x\cos(2x) \right|\, dx ✓

∴\therefore ∫0π/2∣xcos⁡(2x)∣ dx=π4\int_{0}^{\pi/2}\left| x\cos(2x) \right|\, dx = \frac{\pi}{4}.

This is how we mark, and how we teach.

Every Ten-Year Series question, worked in full, with the reasoning written out and the traps named.

Find out more