The integral to evaluate is ∫cosx−cosαcos2x−cos2αdx, where α is a constant.
Using the double angle formula cos2θ=2cos2θ−1:
cos2x=2cos2x−1
cos2α=2cos2α−1
The numerator becomes:
cos2x−cos2α=(2cos2x−1)−(2cos2α−1)
=2cos2x−1−2cos2α+1
=2cos2x−2cos2α
=2(cos2x−cos2α)
Using the difference of squares formula a2−b2=(a−b)(a+b):
2(cos2x−cos2α)=2(cosx−cosα)(cosx+cosα)
The integral becomes:
∫cosx−cosα2(cosx−cosα)(cosx+cosα)dx
=∫2(cosx+cosα)dx
=∫2cosxdx+∫2cosαdx
Evaluating each term:
∫2cosxdx=2sinx
∫2cosαdx=2xcosα (since α is a constant)
Therefore:
∫cosx−cosαcos2x−cos2αdx=2sinx+2xcosα+C