When I integrate $\sin(2x)$ first using the trig substitution of $\sin(2x) = 2 \sin x\cos x$ and then using u-substitution I get $\sin^2(x) +C$. Integrating the same expression using u-substitution directly, I get $-\cos(2x)/2+C$.
These answers do not seem to be equivilent. When I let $x=0$ in the first example's answer I get $=0$ but when I let $x=0$ in the seccond answer I get $-1/2$.
Clearly I must be doing something wrong. If I had made these integrations definite integrals over $0$ to $\pi/2$ seems like I would have gotten different answsers.
Can you assist?
$$
– Gary Feb 28 '21 at 19:01