I took a shot in the dark and assumed that this is similar to solving $\int e^{x}\sin{x}\ dx$, but wolfram is giving me a different answer than what I got, and on top of that, I tried to differentiate my result and am not getting back what I started with. It's putting into question whether I was doing previous questions right or not..
First step of my attempt:
- let $u=\cos(2x),\ du=-2\sin(2x)\ dx$
- let $dv=\cos(3x)\ dx,\ v=\frac{\sin(3x)}{3}$
$$\int\cos(2x)\cos(3x)\ dx=\frac{\cos(2x)sin(3x)}{3}+\frac{2}{3}\int\sin(2x)\sin(3x)\ dx $$
Then I did IBP again:
- let $u=\sin(2x),\ du=2\cos(2x)\ dx$
- let $dv=\sin(3x)\ dx, v=-\frac{cos(3x)}{3}$
$$=\frac{\cos(2x)sin(3x)}{3}+\frac{2}{3}\left[-\frac{\cos(3x)\sin(2x)}{3}+\frac{2}{3}\int\cos(2x)\cos(3x)\ dx\right]$$
From there, I simplify and re-arrange to get
$$\frac{1}{3}\int\cos(2x)\cos(3x)\ dx=\frac{3\cos(2x)\sin(3x)-2\cos(3x)\sin(2x)}{9}$$ $$\int\cos(2x)\cos(3x)\ dx=\frac{3\cos(2x)\sin(3x)-2\cos(3x)\sin(2x)}{3}+C$$
So where did I go wrong? Wolfram says the answer should be
$$\int\cos(2x)\cos(3x)\ dx=\frac{1}{10}5\sin(x)+\sin(5x)+C$$
