Jump to content

Integral/Powers of sine/Recursion/Example

From Wikiversity

A primitive function for the sine function sinx is cosx. In order to find a primitive function for sinnx, we use integration by parts to get a recursive relation to a power with a smaller exponent. To make this more precise, we work over an interval, the primitive function shall start at 0 and have the value 0 there. For n2, with integration by parts, we get

0xsinntdt=0xsinn2tsin2tdt=0xsinn2t(1cos2t)dt=0xsinn2tdt0x(sinn2tcost)costdt=0xsinn2tdtsinn1tn1cost|0x1n1(0xsinntdt).

Multiplication with n1 and rearranging yields

n0xsinntdt=(n1)0xsinn2tdtsinn1xcosx.

In particular, for n=2, we have

0xsin2tdt=12(xsinxcosx).