Question
Question: Evaluate the following integral: \[\int{\dfrac{\cos 2x-\cos 2a}{\cos x-\cos a}dx}\] ....
Evaluate the following integral: ∫cosx−cosacos2x−cos2adx .
Solution
We will first apply trigonometric properties of cosθ given by cos2θ=2cos2θ−1 on the given integral which will help us to simplify the given integral and after that we will apply basic mathematics property like a2−b2=(a+b).(a−b) , this will help to further simplify and then we can cut out the common terms from numerator and denominator which will leave us with basic integral of cosθ.
Complete step-by-step solution:
We will first apply the property of cosθ , Now we know that:
cos2θ=2cos2θ−1
We will apply the above property on the numerator part of the given integral.
Now,
cos2x=2cos2x−1 and cos2a=2cos2a−1
Substituting these values in the given integral: ∫cosx−cosacos2x−cos2adx
∫cosx−cosa(2cos2x−1)−(2cos2a−1)dx=∫cosx−cosa2cos2x−1−2cos2a+1dx=∫cosx−cosa2cos2x−2cos2adx
Taking out the constant: ∫a⋅f(x)dx=a⋅∫f(x)dx
We will then have: ∫cosx−cosa2cos2x−2cos2adx=2∫cosx−cosacos2x−cos2adx .............. Equation 1.
Now we know that: a2−b2=(a+b).(a−b)
Applying it in the equation 1: 2∫cosx−cosacos2x−cos2adx=2∫cosx−cosa(cosx−cosa).(cosx+cosa)dx
After cancelling out the terms, we will be left with: 2∫(cosx+cosa)dx
Now we know the basic property of integration when it is given in the following form: ∫(f(x)+g(x))dx=∫f(x)dx+∫g(x)dx
We get:2∫(cosx+cosa)dx=2[∫cosxdx+∫cosadx]
We will now apply the following two formulas for integration:
⇒∫cosθdθ=sinθ⇒∫dx=x
After applying the above two formulas in our question:
2[∫cosxdx+∫cosadx]=2[sinx+xcosa]+C
Therefore the result will be: ∫cosx−cosacos2x−cos2adx=2[sinx+xcosa]+C
Note: Please note that cosa will not be integrated as we are finding out the integral with respect to the variable x, hence cos a will remain constant and the integral will give x as an output in the latter part of the integral. Do not get confused between the following integrations ∫cosθdθ=sinθ and ∫sinθdθ=−cosθ ; students might make mistakes with the negative sign in the output.