Stuck on this? Solve it with AI
Calculus · real student question

Find the Maclaurin series of sin(x) up to and including the degree 7 term.

Question

Find the Maclaurin series of sin⁡x\sin x up to and including the x7x^7 term.

Step-by-step solution

  1. Build the derivative cycle at x=0x=0. The derivatives of sine repeat with period four, so the coefficients follow a four-step pattern:

    sin⁡0=0,cos⁡0=1,−sin⁡0=0,−cos⁡0=−1,then repeat\sin 0=0,\quad \cos 0=1,\quad -\sin 0=0,\quad -\cos 0=-1,\quad \text{then repeat}

    so f(n)(0)f^{(n)}(0) cycles through 0,1,0,−10,1,0,-1.

  2. Insert those values into the Maclaurin formula. With f(x)=∑n≥0f(n)(0)n!xnf(x)=\sum_{n\ge 0}\dfrac{f^{(n)}(0)}{n!}x^n, every even derivative vanishes and only odd powers survive:

    sin⁡x=x1!−x33!+x55!−x77!+⋯\sin x=\frac{x}{1!}-\frac{x^3}{3!}+\frac{x^5}{5!}-\frac{x^7}{7!}+\cdots

    The absence of even powers is not a coincidence — sin⁡(−x)=−sin⁡x\sin(-x)=-\sin x makes the function odd, and an odd function can only have odd-degree terms.

  3. Evaluate the factorials.

    3!=6,5!=120,7!=50403!=6,\qquad 5!=120,\qquad 7!=5040

    sin⁡x=x−x36+x5120−x75040+O ⁣(x9)\sin x=x-\frac{x^3}{6}+\frac{x^5}{120}-\frac{x^7}{5040}+O\!\left(x^9\right)

  4. Write the general term. In closed form,

    sin⁡x=∑k=0∞(−1)kx2k+1(2k+1)!\sin x=\sum_{k=0}^{\infty}\frac{(-1)^k x^{2k+1}}{(2k+1)!}

    which converges for every real xx — the radius of convergence is infinite, because (2k+1)!(2k+1)! eventually outgrows any fixed power.

  5. Measure the accuracy. At x=1x=1 radian the truncation gives

    1−16+1120−15040=0.8414682…1-\frac16+\frac{1}{120}-\frac{1}{5040}=0.8414682\ldots

    against sin⁡1=0.8414710\sin 1=0.8414710, an error of about 2.7×10−62.7\times 10^{-6} — consistent with the next omitted term x99!=1362880≈2.76×10−6\tfrac{x^9}{9!}=\tfrac{1}{362880}\approx 2.76\times 10^{-6}. The alternating-series bound guarantees the error never exceeds that first dropped term.

Answer

sin⁡x=x−x36+x5120−x75040+O ⁣(x9)\sin x=x-\frac{x^3}{6}+\frac{x^5}{120}-\frac{x^7}{5040}+O\!\left(x^9\right)

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