I know how to do integration by parts. ∫ u dv= uv-∫ v du

as you may know for some functions like ∫ e^x cosx dx when you use integration by parts it repeats it's self. if you don't know what I mean, see the 3rd example on this page http://www.math.hmc.edu/calculus/tutoria...

what I need to know is a function that repeats when you use itegration by parts like ∫ e^x cosx dx

but instead of 2 steps it has 3.

if anyone knows of one let me know