5. (10 points) Use integration by parts to derive the recursion formula $$\int \cos^n x \, dx = \frac{\cos^{n-1} x \sin x}{n} + \frac{n-1}{n} \int \cos^{n-2} x \, dx.$$
5. (10 points) Use integration by parts to derive the recursion formula $$\int \cos^n x \, dx = \frac{\cos^{n-1} x \sin x}{n} + \frac{n-1}{n} \int \cos^{n-2} x \, dx.$$