इस पर अटक गए? इसे AI से हल करें
Calculus · real student question

Evaluate the integral of sin^n(x) from 0 to pi/2 for a non-negative integer n.

Question

Evaluate

In=∫0π/2sin⁡nx dxI_{n}=\int_{0}^{\pi/2}\sin^{n}x\,dx

for a non-negative integer nn.

Step-by-step solution

  1. Split off one sine and integrate by parts. Write sin⁡nx=sin⁡n−1x⋅sin⁡x\sin^{n}x=\sin^{n-1}x\cdot\sin x and take

    u=sin⁡n−1x,dv=sin⁡x dx ⟹ du=(n−1)sin⁡n−2xcos⁡x dx,v=−cos⁡xu=\sin^{n-1}x,\qquad dv=\sin x\,dx\ \Longrightarrow\ du=(n-1)\sin^{n-2}x\cos x\,dx,\quad v=-\cos x

    The boundary term [−sin⁡n−1xcos⁡x]0π/2\left[-\sin^{n-1}x\cos x\right]_{0}^{\pi/2} vanishes at both ends — cos⁡π2=0\cos\tfrac\pi2=0 at the top and sin⁡0=0\sin 0=0 at the bottom — which is exactly why these limits are chosen.

  2. Convert cos⁡2\cos^{2} back to sin⁡\sin. What remains is

    In=(n−1)∫0π/2sin⁡n−2xcos⁡2x dx=(n−1)∫0π/2sin⁡n−2x(1−sin⁡2x)dxI_{n}=(n-1)\int_{0}^{\pi/2}\sin^{n-2}x\cos^{2}x\,dx=(n-1)\int_{0}^{\pi/2}\sin^{n-2}x\left(1-\sin^{2}x\right)dx

    so

    In=(n−1)In−2−(n−1)InI_{n}=(n-1)I_{n-2}-(n-1)I_{n}

    The original integral reappears on the right, which is the signal to solve for it algebraically rather than integrate again.

  3. Solve for InI_{n} to get the reduction formula. Adding (n−1)In(n-1)I_{n} to both sides gives nIn=(n−1)In−2nI_{n}=(n-1)I_{n-2}, hence

    In=n−1n In−2I_{n}=\frac{n-1}{n}\,I_{n-2}

    Each application lowers the index by two, so the recursion terminates at I0I_{0} or I1I_{1} depending on the parity of nn.

  4. Compute the two base cases.

    I0=∫0π/21 dx=π2,I1=∫0π/2sin⁡x dx=[−cos⁡x]0π/2=1I_{0}=\int_{0}^{\pi/2}1\,dx=\frac{\pi}{2},\qquad I_{1}=\int_{0}^{\pi/2}\sin x\,dx=\left[-\cos x\right]_{0}^{\pi/2}=1

    These are the sole source of the π\pi: it survives only in the even chain.

  5. Unroll the recursion into the Wallis formulas.

    In=(n−1)(n−3)⋯1n(n−2)⋯2⋅π2  (n even),In=(n−1)(n−3)⋯2n(n−2)⋯3  (n odd)I_{n}=\frac{(n-1)(n-3)\cdots 1}{n(n-2)\cdots 2}\cdot\frac{\pi}{2}\ \ (n\text{ even}),\qquad I_{n}=\frac{(n-1)(n-3)\cdots 2}{n(n-2)\cdots 3}\ \ (n\text{ odd})

    For example I4=34⋅12⋅π2=3π16=0.58905I_{4}=\tfrac34\cdot\tfrac12\cdot\tfrac\pi2=\tfrac{3\pi}{16}=0.58905 and I5=45⋅23=815=0.53333I_{5}=\tfrac45\cdot\tfrac23=\tfrac{8}{15}=0.53333.

  6. Note the single formula that covers both parities. Using the Gamma function,

    ∫0π/2sin⁡nx dx=π Γ ⁣(n+12)2 Γ ⁣(n2+1)\int_{0}^{\pi/2}\sin^{n}x\,dx=\frac{\sqrt{\pi}\,\Gamma\!\left(\frac{n+1}{2}\right)}{2\,\Gamma\!\left(\frac{n}{2}+1\right)}

    Numerical integration for n=0n=0 through 77 agrees with this to ten decimal places in every case ✓, and it extends the result to non-integer n>−1n>-1.

Answer

In=n−1nIn−2,I0=π2, I1=1;In=π Γ ⁣(n+12)2 Γ ⁣(n2+1)I_{n}=\frac{n-1}{n}I_{n-2},\quad I_{0}=\frac{\pi}{2},\ I_{1}=1;\qquad I_{n}=\frac{\sqrt{\pi}\,\Gamma\!\left(\frac{n+1}{2}\right)}{2\,\Gamma\!\left(\frac{n}{2}+1\right)}

Need to solve a different problem like this? Open the solver →