I want to solve the following integral. $$\int 4\sin(x)\cos(x)dx$$ Hence I continued this way: $$\int 4\sin(x)\cos(x)dx = -\int -2\sin(2x)dx =-\cos(2x)+c$$
However if I use Mathematica to solve it I obtain $$\int 4\sin(x)\cos(x)dx =-2\cos^2(x)+c$$ and if I ask Mathematica to solve $$\int 4\sin(x)\cos(x)dx = -\frac{1}{2}\cos(2x)+c$$
How can that $2$ change the result? What did I do wrong?