Answers
2(p+q)sin(p+q)x+2(p−q)sin(p−q)x+C.
nxsinnx+n2cosnx+c.
k=−2
or
k=0.
Full solutions
(a)
∫cospxcosqxdx=∫21(cos(p+q)x+cos(p−q)x)dx=2(p+q)sin(p+q)x+2(p−q)sin(p−q)x+C■
(b)
∫xcosnxdx=xnsinnx−∫(1)nsinnxdx=nxsinnx+n2cosnx+c■
(c)
∫0πxcosnxdx=[nxsinnx+n2cosnx]0π=nπsinnπ+n2cosnπ−0−n2cos0=n2cosnπ−n21={−n220if n is oddif n is even
k=−2■ork=0■ (d)
∫02π∣xcos2x∣dx=∫04πxcos2xdx−∫4π2πxcos2xdx=[2xsin2x+4cos2x]04π−[2xsin2x+4cos2x]4π2π=24πsin2π+4cos2π−0−41−(22πsinπ+4cosπ−24πsin2π−4cos2π)=8π−41+41+8π=4π■
Question Commentary
This question is a mishmash of integration techniques involving trigonometric functions.
Part (a) uses the reverse of the factor formula, last seen just last year in
2022 P2 Q1, while (b) involves integration by parts, last seen in
2020 P1 Q7.
The last step of part (c) involves odd and even considerations last seen in
2016 P2 Q2, while (d) is about using the splitting of limits to tackle
integration involving the modulus function.