I am trying to do an integration problem but am running into a problem! My answer is different from what the solution says. My attempt:
Evaluate $$\int\cos^3x\sin^5 x\mathop{dx}$$
$\int\cos^3x\sin^5 x\mathop{dx}=(1-\cos^2 x)^2\sin x \cos ^3 x$
Then with u substitution, letting $u=\cos x \implies du=-\sin x \mathop{dx}$
which gives us
$-\int (1-u^2)^2\cdot u^3\mathop{du}=\int-u^3+2u^5+u^7=-(\cos^ 4 x)/4+(\cos^6 x)/3-(\cos ^8 x)/8 +C$
However the solution books says the answer is
$(\sin^6 x)/6-(\sin ^8 x)/8 +C$
They are equivalent, with different constants of integration; specifically, they differ by $1/24$. The proof of this I leave to you as an exercise, but a simple way to do it is to convert all the cosines in your expression to sines, via the circular identity $\sin^2 x + \cos^2 = 1$.
To figure out how the book got a different answer, note that instead of converting $\sin^4 x$ in terms of cosine, you could have also converted $\cos^3 x = (1-\sin^2 x)\cos x$, which leads to a simpler integrand--the one the book obtained.