Calculus · real student question

Find the indefinite integral of sin^(2n)(x) for a positive integer n. Give a reduction formula, an explicit closed form, and the cases n = 1, 2, 3.

Question

Find

sin2n(x)dx\int\sin^{2n}(x)\,dx

for a positive integer nn. Give a reduction formula, an explicit closed form, and write out the cases n=1,2,3n=1,2,3.

Step-by-step solution

  1. Why a reduction formula rather than a substitution. For an odd power of sine you peel off one factor and substitute u=cosxu=\cos x. That trick fails for an even power 2n2n, because no single sine is left over. The standard route is instead integration by parts, which lowers the exponent by two and produces a recursion.

  2. State the reduction formula. Writing sinmx=sinm1xsinx\sin^{m}x=\sin^{m-1}x\cdot\sin x and integrating by parts gives the classical result

    sinmxdx=sinm1xcosxm+m1msinm2xdx.\int\sin^{m}x\,dx=-\frac{\sin^{m-1}x\cos x}{m}+\frac{m-1}{m}\int\sin^{m-2}x\,dx.

    With m=2nm=2n and In=sin2nxdxI_{n}=\int\sin^{2n}x\,dx this becomes

    In=sin2n1xcosx2n+2n12nIn1,I0=1dx=x.I_{n}=-\frac{\sin^{2n-1}x\,\cos x}{2n}+\frac{2n-1}{2n}\,I_{n-1},\qquad I_{0}=\int 1\,dx=x.

    Each application drops the power by 22, so after nn steps you land on I0=xI_{0}=x — which is why an even power always leaves a bare xx term in the answer.

  3. Get an explicit closed form from the power-reduction identity. Expanding sin2nx\sin^{2n}x in cosines of multiple angles,

    sin2nx=122n(2nn)+122n1k=0n1(1)nk(2nk)cos(2(nk)x),\sin^{2n}x=\frac{1}{2^{2n}}\binom{2n}{n}+\frac{1}{2^{2n-1}}\sum_{k=0}^{n-1}(-1)^{n-k}\binom{2n}{k}\cos\bigl(2(n-k)x\bigr),

    every term of which integrates instantly. The constant term (2nn)/22n\binom{2n}{n}/2^{2n} is the mean value of sin2n\sin^{2n} over a period, and it is what becomes the xx term.

  4. Integrate term by term. Using cos(λx)dx=sin(λx)λ\int\cos(\lambda x)\,dx=\frac{\sin(\lambda x)}{\lambda} with λ=2(nk)\lambda=2(n-k):

    sin2nxdx=(2nn)22nx+122nk=0n1(1)nk(2nk)sin(2(nk)x)nk+C.\int\sin^{2n}x\,dx=\frac{\binom{2n}{n}}{2^{2n}}\,x+\frac{1}{2^{2n}}\sum_{k=0}^{n-1}(-1)^{n-k}\binom{2n}{k}\frac{\sin\bigl(2(n-k)x\bigr)}{n-k}+C.

    The extra factor 12\tfrac12 from 12(nk)\tfrac{1}{2(n-k)} is what turns 22n12^{2n-1} into 22n2^{2n} in the denominator.

  5. Write out the first three cases. Running either formula for n=1,2,3n=1,2,3:

    sin2xdx=x2sin2x4+C,\int\sin^{2}x\,dx=\frac{x}{2}-\frac{\sin 2x}{4}+C,

    sin4xdx=3x8sin2x4+sin4x32+C,\int\sin^{4}x\,dx=\frac{3x}{8}-\frac{\sin 2x}{4}+\frac{\sin 4x}{32}+C,

    sin6xdx=5x1615sin2x64+3sin4x64sin6x192+C.\int\sin^{6}x\,dx=\frac{5x}{16}-\frac{15\sin 2x}{64}+\frac{3\sin 4x}{64}-\frac{\sin 6x}{192}+C.

    The leading coefficients 12,38,516\tfrac12,\tfrac38,\tfrac{5}{16} are exactly (2nn)/22n\binom{2n}{n}/2^{2n}, matching the Wallis pattern.

  6. Check numerically. Evaluating the closed form on [0,1.3][0,1.3] against Simpson quadrature: n=1n=1 gives 0.52112465700.5211246570 both ways, n=2n=2 gives 0.33101669910.3310166991, n=3n=3 gives 0.23881668240.2388166824. All three agree to ten digits ✓.

Answer

sin2nxdx=sin2n1xcosx2n+2n12nsin2n2xdx=(2nn)22nx+122nk=0n1(1)nk(2nk)sin(2(nk)x)nk+C\int\sin^{2n}x\,dx=-\frac{\sin^{2n-1}x\,\cos x}{2n}+\frac{2n-1}{2n}\int\sin^{2n-2}x\,dx=\frac{\binom{2n}{n}}{2^{2n}}x+\frac{1}{2^{2n}}\sum_{k=0}^{n-1}(-1)^{n-k}\binom{2n}{k}\frac{\sin(2(n-k)x)}{n-k}+C

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