Well, I tried to solve the integral: $$\int x dx$$ using trigonometric functions instead of using the general formula for it. (If $n \neq -1$,$\int x^n dx=\frac{x^{n+1}}{n+1}+C$)
So I gave it shot in this way:
$$\int x dx = \int \sin\theta \cos\theta d\theta = \dfrac{1}{2}\int \sin2\theta d\theta=\dfrac{1}{2}\big(\dfrac{-1}{2}\cos^2\theta\big)+C=\dfrac{-1}{4}(\cos^2\theta-\sin^2\theta)+C$$
$$x=\sin\theta ,\cos\theta=\sqrt {1-x^2}, dx = \cos\theta d\theta$$
Thus we substitute them:
$$\int x dx = \dfrac{1}{2}\int \sin2\theta d\theta=\dfrac{-1}{4}(\cos^2\theta-\sin^2\theta)+C=\dfrac{-1}{4}+\dfrac{x^2}{2}+C'$$
If I had solved the integral with the general formula I wouldn't have got partial amount of the integration constant($\dfrac{-1}{4}+C'$) as my final answer.
Simply, my question is why another constant would rise up when I do the integration with trigonometric substitution?I know that I can disregard the appeared constant but why does it even rise up?
If I'm still not clear enough, please tell me to correct my question.