(a)
We'll use the trig identity cos2θ=2cos2θ−1.
It implies that
cos2θ=2cos2θ+1⟹cos4θSo,∫0π/4cos4θ dθ=41[cos22θ+2cos2θ+1]=41[2cos4θ+1+2cos2θ+1]=8cos4θ+2cos2θ+83=∫0π/4(8cos4θ+2cos2θ+83) dθ=[32sin4θ+4sin2θ+83θ]0π/4=41+83⋅4π=328+3π
as required.
(b) We'll use the trig substitution x=tanθ,
dx=sec2θ dθ. Note that when θ=±4π, we have x=±1. Also note that dividing the trig identity sin2θ+cos2θ=1
by cos2θ gives the trig identity tan2θ+1=sec2θ. So
∫−11(x2+1)3dx=2∫01(x2+1)3dx=2∫0π/4(tan2θ+1)3sec2θ dθ=2∫0π/4(sec2θ)3sec2θ dθ=2∫0π/4cos4θ dθ=168+3π(even integrand)
by part (a).