To solve the given integral, first we simplify the expression in the integral as follows :
∫tanx−tanαtanx+tanαdx=∫cosxsinx−cosαsinαcosxsinx+cosαsinαdx
Simplifying further, this becomes :
∫sinxcosα−sinαcosxsinxcosα+sinαcosxdx
By using the formula for sin(a + b) = sin a cos b + cos a sin b and sin(a - b) = sin a cos b - cos a sin b, we get :
∫sin(x−α)sin(x+α)dx
Now, let's use the substitution method. Let t = x - α, therefore x = y + α and dx = dt. Substituting these values into the integral, we get :
= ∫sinysin(t+2α)dy
=∫sintsintcos2α+sin2αcostdt=∫(cos2α+sin2αsintcost)dt
=t(cos2α)+(sin2α)loge∣sint∣+C=(x−α)cos2α+(sin2α)loge∣sin(x−α)∣+C=A(x)cos2α+B(x)sin2α+C (given)
Now on comparing, we get
A(x)=x−α and B(x)=loge∣sin(x−α)∣