Is $\ln (\sin x-\cos x)$ equal to $\ln (\cos x-\sin x)$?
So I did a integral problem but the answer is not same the answer given.
I'm given this question $\int (\frac{2}{1-\tan x})dx$
So I got the answer which is $x-\ln (\tan x-1)+\frac{1}{2}\ln (\sec ^2x)+c$ Then I simplify it into $x-\ln (\sin x -\cos x)+c$
But the given answer is $x-\ln (\cos x-\sin x) + c$
No, but $\ln|\sin x-\cos x|=\ln|\cos x-\sin x|$. Both functions you're interested in have the same derivative, but are defined on different intervals. Using the absolute value encompasses both.