I have to solve $$\int \sin^3x\cos^3x\,dx$$
I tried substitutions and got the answer $$\frac{-1}{64}(3\cos(2x)-\frac{1}{3}\cos(6x))+C$$
The solution given in book is $$\frac{1}{6}\cos^6x-\frac{1}{4}\cos^4x+C$$
I don't know whether both are equal or not
So I have some questions:
Are both answers same? If no , then which one is correct?
Do different methods of integration results differently? Or are they same , it is just matter of rearrangement?
I am having this problem in many question because I use different method from that mentioned in book, i.e., in substitutions, I reach the result but substituting different thing from that mentioned in solution which leads to different answer. Do different methods of integration produce different results?


Your answer is almost exactly the answer of Mathematica $\frac{1}{192} \cos (6 x)-\frac{3}{64} \cos (2 x)$
The answer of the book is also correct after simplifying the previous one.
Another way to get the answer of the book is to transform a little the integral
$$\int \sin^3x \left(\cos^2 x\right) \cos x\, dx=\int \sin^3x \left(1-\sin^2 x\right) \cos x\, dx$$ which gives $$\int \left(\sin ^3x -\sin^5 x\right)\, \text{d}(\sin x)=\frac{\sin^4 x}{4}-\dfrac{\sin^6 x}{6}+C$$ which is almost the same result of your book