(a)
Integrate by parts with u=x and dv=sinxdx so that
du=dx and v=−cosx.
∫xsinxdxSo, ∫0π/2xsinxdx=−xcosx−∫(−cosx)dx=−xcosx+sinx+C=[−xcosx+sinx]0π/2=1
(b)
The power of cosine is odd, so we can reserve one cosine for du and change the rest into sines. Make the substitution u=sinx, du=cosxdx.
∫0π/2cos5xdx=∫0π/2(1−sin2x)2cosxdx=∫01(1−u2)2du=∫01(1−2u2+u4)du=[u−32u3+51u5]01=1−32+51=158