1

I know how to integrate, for example $x^2\sin x$ via integration by parts. But how would one approach $x^n\sin x$, where $n$ is an arbitrary natural number? Do I have have to use integration by parts $n$ times? How do I do this?

Priyatham
  • 2,607
Adam
  • 3,422
  • 1
  • 33
  • 50

1 Answers1

2

Integrating two times by parts one can find the recursive relation $$\begin{array}{rcl} I_{n}(t)&=& \int^t x^n \sin(x)dx \\ &=& -t^{n}\cos(t)+n\int^t x^{n-1} \cos(x)dx\\ &=& -t^n\cos(t)+nt^{n-1}\sin(t)-n(n-1)I_{n-2}(t)\end{array}$$

Surb
  • 55,662
  • I did the integration by parts twice and I have the recursive relation. Now what do I do with it? Am supposed to solve it for n? – Adam Jun 28 '14 at 14:16
  • You know $I_1$ and $I_2$, so there is no problem, you just apply the formula recursively until one of these terms appears (depending on the parity of $n$). Here's a general closed form: http://www.wolframalpha.com/input/?i=integrate+x%5Ensin%28x%29 – Surb Jun 28 '14 at 14:32