
Jim L. answered 01/19/22
Personable, effective English, Math and Science Tutor
I read the question a little differently from Minoo. I saw the denominator as :
Cos^2 x - cos x , not cos2x-cosx
In that case, the numerator factors to (cos x- 1)(cos x +1)
Ands the denominator factors to cos x (cos x- 1)
This simplifies to (cos x + 1)/cos x or 1 + sec x
I used x instead of theta for convenience