I need help solving this integration of parts problem. I've tried a few different solutions and keep getting the wrong answer. This question is in regards to this problem take the integral by parts of: $$\displaystyle \int (5-5\sin x)(5+5\sin x)dx$$
So first I multiply, and get $25-25\sin^2 x.$ Then i tried to use the formula, integral $$\displaystyle (f(x)g'(x)) = f(x)g(x) - \int (f'(x)g(x)).$$
But it was to no avail. I know the answer, if you'd like it provided but obviously more important is the how! Please help me and thanks.
However if you really want integration by parts: \begin{align} \int \sin(x) \cdot \sin(x) dx &= \sin(x) \cdot (-\cos(x))-\int \cos(x) \cdot (-\cos(x) )dx+C \\ &= -\sin(x) \cdot \cos(x)+\int \cos^2(x) dx +C \\ &= -\sin(x) \cdot \cos(x)+\int(1-\sin^2(x) )dx +C \\ &= -\sin(x) \cos(x)+x -\int \sin^2(x) dx +C. \end{align} And so add $$\int \sin^2(x) dx $$ on both sides.. $$2 \int \sin^2(x) dx=-\sin(x) \cos(x)+x+C$$