Solution:
Key idea: Dividing the numerator and the denominator by cos4θ turns everything into tanθ and sec2θ. Then the substitution t=tan2θ leads to the standard form ∫1+t2dt, whose value is tan−1t+C.
Step 1 — Divide numerator and denominator by cos4θ.
We divide both by cos4θ, which is allowed wherever cosθ=0. In the numerator, cos4θ2sinθcosθ is 2tanθsec2θ.
cos4θ2sinθcosθ=2tanθsec2θ
In the denominator, each term becomes a power of tanθ.
cos4θsin4θ+cos4θ=tan4θ+1
So the integrand is:
sin4θ+cos4θ2sinθcosθ=tan4θ+12tanθsec2θ
Step 2 — Substitute.
We put tan2θ equal to t, so that tan4θ becomes t2.
t=tan2θ
Differentiating both sides with the chain rule gives exactly the numerator times dθ.
dt=2tanθsec2θdθ
Step 3 — Integrate in terms of t.
The integral becomes the standard inverse-tangent form.
∫tan4θ+12tanθsec2θdθ=∫1+t2dt
∫1+t2dt=tan−1t+C
Step 4 — Return to θ.
We put back t=tan2θ.
tan−1t+C=tan−1(tan2θ)+C
Note: This is twice the integral in Q22 of this exercise, because the numerator here is 2sinθcosθ.
Therefore, ∫sin4θ+cos4θ2sinθcosθdθ=tan−1(tan2θ)+C.