I have to solve this integral $$ \int \frac{1+\sin 4x}{(\sin x -\cos x) \cdot \cos x}\, dx$$ It seems that the most convenient way to operate is doing the substitution $ \tan x = t$. Then after some passages the integral becomes: $$ \int \frac{t^4-4t^3+2t^2+4t+1}{(t-1)(t^2+1)^2}\, dx $$
Now I'm trying the coefficient A,B,C,D,E and F such as:
$$\frac{t^4-4t^3+2t^2+4t+1}{(t-1)(t^2+1)^2} = \frac{A}{t-1}+\frac{2B(t-1)+C}{t^2+1}+ \frac {d}{dx} \frac{D(t-1)^2+E(t-1)+F}{(t-1)(t^2+1)}$$
Perhaps I made mistakes in this last passage because I find some coefficients that don't lead to the result suggested by the book.