I am trying to use the reduction formula to express the following integral, but need some help toward the end. Given,\(\displaystyle $\int {\cos ^3 x\;dx = \left[ \matrix{
u = \cos ^2 x \hfill \cr
dv = \cos x\;dx \hfill \cr
du = 2\cos x( - \sin x\;dx) \hfill \cr
v = \sin x \hfill \cr} \right] \to \cos ^2 x\sin x + 2\int {(1 - \cos 2x)\cos x\,dx} } $\)
My Professor then went to the following, but I can't figure out what is happening. Can someone please explain?
\(\displaystyle $\int {\cos ^2 x\sin x + 2\int {\cos x\;dx - 2\int {\cos ^3 x\;dx} } } $\)
u = \cos ^2 x \hfill \cr
dv = \cos x\;dx \hfill \cr
du = 2\cos x( - \sin x\;dx) \hfill \cr
v = \sin x \hfill \cr} \right] \to \cos ^2 x\sin x + 2\int {(1 - \cos 2x)\cos x\,dx} } $\)
My Professor then went to the following, but I can't figure out what is happening. Can someone please explain?
\(\displaystyle $\int {\cos ^2 x\sin x + 2\int {\cos x\;dx - 2\int {\cos ^3 x\;dx} } } $\)