Solution:
Key idea: Dividing the numerator and the denominator by cos4x turns everything into tanx and sec2x. Then the substitution t=tan2x leads to the standard form ∫1+t2dt, whose value is tan−1t+C.
Step 1 — Divide numerator and denominator by cos4x.
We divide both by cos4x, which is allowed wherever cosx=0. In the numerator, cos4xsinxcosx is tanxsec2x.
cos4xsinxcosx=tanxsec2x
In the denominator, each term becomes a power of tanx.
cos4xsin4x+cos4x=tan4x+1
So the integrand is:
sin4x+cos4xsinxcosx=tan4x+1tanxsec2x
Step 2 — Substitute.
We put tan2x equal to t, so that tan4x becomes t2.
t=tan2x
Differentiating both sides with the chain rule gives the new differential.
dt=2tanxsec2xdx
We divide by 2 to get the numerator times dx.
tanxsec2xdx=2dt
Step 3 — Integrate in terms of t.
The integral becomes half the standard inverse-tangent form.
∫tan4x+1tanxsec2xdx=21∫1+t2dt
21∫1+t2dt=21tan−1t+C
Step 4 — Return to x.
We put back t=tan2x.
21tan−1t+C=21tan−1(tan2x)+C
Therefore, ∫sin4x+cos4xsinxcosxdx=21tan−1(tan2x)+C.