I'm wondering if there is a formula for calculating the integral of a polynomial times a single trig function. For example, integrating $$\int_a^b (t^2 - t) \cos (t) dt$$

I realize that to integrate, I just need to split it up into one integral for each polynomial term and then integrate by parts multiple times, so I am wondering if there is a closed formula (I suspect there is)

  • $\begingroup$ You don't need to split it up, just set $u$ to be the entire polynomial. It still works because it's still a product. $\endgroup$ – Dylan Mar 5 '15 at 22:16
  • $\begingroup$ @Dylan yeah I realize that now; but we still need to integrate by parts multiple times perhaps. $\endgroup$ – MCT Mar 5 '15 at 22:17
  • $\begingroup$ Generally the number of times you IBP is equal to the degree of the polynomial $\endgroup$ – Dylan Mar 5 '15 at 22:19


Try using integration by parts. Namely with u = t^2 - t. Remember, you may have to do integration by parts multiple times.

  • $\begingroup$ I mean that doesn't get rid of the problem of having to integrate by parts multiple times (which is what I was trying to avoid by "Cheating" and getting a nice formula) $\endgroup$ – MCT Mar 5 '15 at 22:16
  • $\begingroup$ try this website. The part you're concerned with is example 9. $\endgroup$ – Forest Dewberry Mar 5 '15 at 22:18
  • $\begingroup$ Did that answer your question? $\endgroup$ – Forest Dewberry Mar 5 '15 at 22:40

You can do something like this

$$ u = t^2 - t $$ $$ dv = \cos t \, dt $$

The number of times you integrate by parts should not be more than the power of the highest0degree term

  • $\begingroup$ Yea I realize. The point of my post is that I wanted a formula so I could be lazy and not have to integrate by parts $n$ times. I guess I'll just bite the bullet and do it. $\endgroup$ – MCT Mar 5 '15 at 22:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.