The constant of integration only seems to be used at the very end of integration by parts despite the use of integrals beforehand.
An example of this would be: $$∫ x\sin \left(x\right)\ dx = x∫ \sin \left(x\right)\ dx - ∫ x'\left(∫ \sin \left(x\right)\ dx\right)\ dx$$ Ordinarily, the right side of the equation would be simplified to: $$x\left(-\cos \left(x\right)\right) - ∫-\cos \left(x\right)\ dx$$ And further to: $$-x\left(\cos \left(x\right)\right) + \sin \left(x\right)$$ Then finally arranged and given the constant of integration: $$\sin \left(x\right) - x\cos \left(x\right)+ C$$
What I am confused about is why $C$ is only added at the very end of this instead of at each integral.
I would be more inclined to use try something more like this: $$x\left(-\cos \left(x\right) +C_1\right) - ∫ -\cos \left(x\right) + C_2\ dx$$ Which would simplify to: $$-x\left(\cos \left(x\right) -C_1\right) - ∫-\cos \left(x\right)\ dx + ∫ C_2\ dx $$ And further to: $$-x\cos \left(x\right) +C_1x +\sin \left(x\right)+ C_3 + C_2x + C_4 $$ Which finally arranges itself as: $$\sin \left(x\right) - x\cos \left(x\right) + C_5x + C_6$$ Where $C_5=C_1 + C_2$ and $C_6=C_3 + C_4$
I also feel I should probably mention I am a bit of an oblivious idiot so if the answer is completely obvious or my math is full of errors, I apologize.