Why isn't the antiderivative of $\sin(2x) = \sin^2(x)$?
I notice that derivative of $\sin^2(x) = 2\sin(x)\cos(x)$ which is also equal to $\sin(2x)$.
Now, according to the fundamental theorem of calculus, integration and differentiation are inverse processes, so the integration of $\sin(2x)$ should be $\sin^2(x) + C$ which I think is not true.
I thought that the reason for this may be because of the constant of integration. I noticed that, $$\int\sin(2x)\, dx = \frac{-\cos(2x)}{2} + C $$
Equating $\dfrac{-\cos(2x)}{2} + C = \sin^2(x)\implies \boxed{ C = \dfrac{\cos(2x)}{2} +\sin^2(x)}$.
Can anyone help me with this? I'm sorry if it's not clear.