Activity answers:
1. (a) IBP, $f = x^2$, $dg = \cos x\,dx \Rightarrow df = 2x\,dx$, $g = \sin x$. (b) Complete the square: $x^2 + 6x + 13 = (x+3)^2 + 4$; sub $u = x + 3$, giving $\int du/(u^2 + 4)$. (c) Trig sub $x = 4\sin\theta$, $dx = 4\cos\theta\,d\theta$.
2. Partial fractions: $\dfrac{1}{(x+1)(x+2)} = \dfrac{1}{x+1} - \dfrac{1}{x+2}$. $\int_0^1\left[\dfrac{1}{x+1} - \dfrac{1}{x+2}\right]dx = [\ln(x+1) - \ln(x+2)]_0^1 = (\ln 2 - \ln 3) - (0 - \ln 2) = 2\ln 2 - \ln 3 = \ln(4/3)$.
3. $f = x$, $dg = \cos x\,dx \Rightarrow df = dx$, $g = \sin x$. $\int_0^{\pi/2} x\cos x\,dx = [x\sin x]_0^{\pi/2} - \int_0^{\pi/2}\sin x\,dx = \tfrac{\pi}{2} - 1$.
4. $x = 2\sin\theta$, $dx = 2\cos\theta\,d\theta$, $\sqrt{4 - x^2} = 2\cos\theta$. Limits $0 \to \pi/2$. $\int_0^{\pi/2}(2\cos\theta)/(2\cos\theta)\,d\theta = \int_0^{\pi/2} d\theta = \pi/2$. (Or recognise as $[\arcsin(x/2)]_0^2 = \pi/2$.)
5. $I_6 = \tfrac{5}{6}I_4 = \tfrac{5}{6}\cdot\tfrac{3}{4}I_2 = \tfrac{5}{6}\cdot\tfrac{3}{4}\cdot\tfrac{1}{2}I_0 = \tfrac{5}{6}\cdot\tfrac{3}{4}\cdot\tfrac{1}{2}\cdot\tfrac{\pi}{2} = \dfrac{15\pi}{96} = \dfrac{5\pi}{32}$.
Q1 (3 marks): Split numerator: $x + 3 = \tfrac{1}{2}(2x + 4) + 1$ [1]. So $\int \dfrac{x+3}{x^2+4x+5}\,dx = \tfrac{1}{2}\int \dfrac{2x+4}{x^2+4x+5}\,dx + \int \dfrac{dx}{(x+2)^2 + 1} = \tfrac{1}{2}\ln(x^2 + 4x + 5) + \arctan(x + 2) + C$ [2, one for $\ln$ piece, one for $\arctan$ piece].
Q2 (4 marks): IBP with $f = \arctan x$, $dg = x\,dx \Rightarrow df = dx/(1+x^2)$, $g = x^2/2$ [1]. $\int_0^1 x\arctan x\,dx = \left[\tfrac{x^2}{2}\arctan x\right]_0^1 - \tfrac{1}{2}\int_0^1 \dfrac{x^2}{1+x^2}\,dx = \tfrac{\pi}{8} - \tfrac{1}{2}\int_0^1\!\left[1 - \dfrac{1}{1+x^2}\right]dx$ [2]. $= \tfrac{\pi}{8} - \tfrac{1}{2}[x - \arctan x]_0^1 = \tfrac{\pi}{8} - \tfrac{1}{2}\!\left(1 - \tfrac{\pi}{4}\right) = \tfrac{\pi}{4} - \tfrac{1}{2}$ [1].
Q3 (4 marks): IBP with $f = x^n$, $dg = e^{-x}\,dx \Rightarrow df = nx^{n-1}\,dx$, $g = -e^{-x}$. $I_n = [-x^n e^{-x}]_0^1 + n\int_0^1 x^{n-1}e^{-x}\,dx = -e^{-1} + n I_{n-1}$ [1]. $I_0 = \int_0^1 e^{-x}\,dx = 1 - e^{-1}$ [1]. $I_1 = -e^{-1} + 1 \cdot (1 - e^{-1}) = 1 - 2e^{-1}$; $I_2 = -e^{-1} + 2(1 - 2e^{-1}) = 2 - 5e^{-1}$ [1]; $I_3 = -e^{-1} + 3(2 - 5e^{-1}) = 6 - 16e^{-1} = 6 - \tfrac{16}{e}$ [1].