Key idea: A proper rational function whose denominator factorises can be split into partial fractions: a linear factor (x−p) gets x−pA, a repeated factor (x−p)2 gets x−pA+(x−p)2B, and an irreducible quadratic gets quadraticBx+C. Each piece then integrates using ∫x−pdx=log∣x−p∣+C.
Step 1 — Part (i): set up the partial fractions.
The factor x2 is a repeated linear factor, so it needs both xA and x2B.
x2(x+1)x2+x+1=xA+x2B+x+1C
x2+x+1=Ax(x+1)+B(x+1)+Cx2
Step 2 — Part (i): find A, B and C.
Putting x=0 gives B, putting x=−1 gives C, and comparing the coefficients of x2 gives A.
x=0:Bx=−1:Cx2 terms:A+CA=1=1=1=0
Step 3 — Part (i): integrate.
Only two fractions remain, and ∫x2dx=−x1.
∫(x21+x+11)dx=−x1+log∣x+1∣+C
Step 4 — Part (ii): set up the partial fractions.
The factor 1+x2 cannot be factorised over the reals, so it gets a linear numerator Bx+C.
(1−x)(1+x2)2=1−xA+1+x2Bx+C
2=A(1+x2)+(Bx+C)(1−x)
Step 5 — Part (ii): find A, B and C.
Putting x=1 gives A; then comparing the constant terms gives C and comparing the x2 terms gives B.
x=1:2Aconstants:A+CCx2 terms:A−BB=2A=1=2=1=0=1
Step 6 — Part (ii): integrate.
We use ∫1−xdx=−log∣1−x∣, ∫1+x2xdx=21log(1+x2) and ∫1+x2dx=tan−1x.
∫(1−x)(1+x2)2dx=−log∣1−x∣+21log(1+x2)+tan−1x+C
Step 7 — Part (iii): substitute t=logx.
The integrand needs x>0. We put logx=t, so xdx=dt, and factorise t2+5t+6=(t+2)(t+3).
∫x[(logx)2+5logx+6]dx=∫(t+2)(t+3)dt
Step 8 — Part (iii): split and integrate.
Since (t+3)−(t+2)=1, the fraction splits as t+21−t+31.
Note: For part (iii) the answer printed in the textbook, 41loglogx−1logx−5, belongs to the denominator x[(logx)2−6logx+5]. For the integrand as printed, the answer is the one above, and differentiating it gives the integrand back.
Therefore, (i) −x1+log∣x+1∣+C; (ii) −log∣1−x∣+21log(1+x2)+tan−1x+C; (iii) loglogx+3logx+2+C for x>0.