$$\int \frac{1-3\sin(2x)}{1+\cos(2x)}dx $$
I have a homework question solving this problem with universal substitution.
Question is - can I automatically put the substitutions even if in the $\sin$ and $\cos$ there is $2x$ inside instead of "classic" $x$?
for example if it was $3\sin(x)$ then $\sin x = 2u/(1+u^2)$?
Yes, you can just replace $\sin2x=\frac{2u}{1+u^2}$. To convince yourself, just do $z=2x$ first.