We begin with the given integral
I=∫tanx−tanαtanx+tanαdx,0<α<2π(α constant).
First we rewrite the numerator and the denominator with the help of the standard formula
tanu±tanv=cosucosvsin(u±v).
Applying this to u=x,v=α, we obtain
tanx+tanα=cosxcosαsin(x+α),tanx−tanα=cosxcosαsin(x−α).
Hence the entire fraction simplifies beautifully to
tanx−tanαtanx+tanα=cosxcosαsin(x−α)cosxcosαsin(x+α)=sin(x−α)sin(x+α).
Now we notice that the numerator can be written as a sine of a sum:
sin(x+α)=sin[(x−α)+2α]=sin(x−α)cos2α+cos(x−α)sin2α.
This is the standard sine-addition identity
sin(A+B)=sinAcosB+cosAsinB.
Dividing the last expression by sin(x−α) gives
sin(x−α)sin(x+α)=cos2α+sin2αsin(x−α)cos(x−α)=cos2α+sin2αcot(x−α).
Thus the integrand is split into two far simpler pieces:
tanx−tanαtanx+tanα=cos2α+sin2αcot(x−α).
We can now integrate term by term. The first integral is trivial, while for the second we recall the basic antiderivative
∫cotudu=ln∣sinu∣.
Since u=x−α, we have du=dx, so
I=∫[cos2α+sin2αcot(x−α)]dx=cos2α∫dx+sin2α∫cot(x−α)dx=cos2αx+sin2αln∣sin(x−α)∣+C.
The constant C absorbs every term that is independent of x, so subtracting (or adding) the fixed quantity αcos2α merely changes C. Therefore we may rewrite
I=(x−α)cos2α+sin2αln∣sin(x−α)∣+C,
which is of the required form
I=A(x)cos2α+B(x)sin2α+C.
By direct comparison we read off
A(x)=x−α,B(x)=ln∣sin(x−α)∣.
Hence, the correct answer is Option A.