Solution:
Key idea: Put t=cosθ to turn the integrand into a rational function of t, then use partial fractions. Remember that dθdcosθ=−sinθ.
Step 1 — Substitute t=cosθ.
We put cosθ=t, so −sinθdθ=dt, which means sinθdθ=−dt.
I=∫cos2θ−cosθ−2cosθ(sinθdθ)=−∫t2−t−2tdt
Step 2 — Factorise and set up the partial fractions.
We factorise t2−t−2=(t−2)(t+1) and write the identity for A and B.
(t−2)(t+1)t=t−2A+t+1B
t=A(t+1)+B(t−2)
Step 3 — Find A and B.
Putting t=2 removes B, and putting t=−1 removes A.
t=2:2At=−1:−1B=3A=32=−3B=31
Step 4 — Integrate, keeping the minus sign on both terms.
The minus sign from Step 1 multiplies the whole integral.
I=−32log∣t−2∣−31log∣t+1∣+C
Step 5 — Put back t=cosθ.
We replace t by cosθ. Since cosθ≤1, the quantity cosθ−2 is always negative, so ∣cosθ−2∣=2−cosθ.
I=−32log(2−cosθ)−31log∣1+cosθ∣+C
Note: The answer printed in the textbook has +32log∣cosθ−2∣, a sign misprint. The minus sign from sinθdθ=−dt applies to both terms, and differentiating the answer above gives the integrand back.
Therefore, ∫cos2θ−cosθ−2sinθcosθdθ=−32log(2−cosθ)−31log∣1+cosθ∣+C, for cosθ=−1.