Tutorials › Calculus II › Maclaurin Polynomials for Sine

Taylor Polynomials · Tutorial 808 of 998

Maclaurin Polynomials for Sine

Use sine’s cyclic derivatives at zero to construct its Maclaurin polynomial through any specified degree and evaluate the resulting polynomial.

Beginner 9 min read

What You'll Learn

  • Find the repeating derivative pattern for sine and evaluate each derivative at zero.
  • Derive the coefficient of every power in a Maclaurin polynomial for sine.
  • Write the polynomial through a specified degree, including when the highest retained coefficient is zero.
  • Evaluate sine’s polynomial approximation at exact inputs.
  • Check a result by differentiating the polynomial and comparing its derivatives at zero.
  • Avoid confusing a polynomial approximation with an exact identity for sine.

Why Build a Maclaurin Polynomial for Sine?

The sine function is familiar, but its values at many inputs are not simple to calculate exactly. A Maclaurin polynomial gives a polynomial model of sine near zero. Once its coefficients are known, evaluating that model uses only powers, multiplication, and addition.

The central task is to determine which powers appear and what their coefficients are. Sine’s derivatives repeat in a short cycle, so their values at zero determine the polynomial systematically. In particular, every even-power coefficient is zero.

Key distinction: A Maclaurin polynomial for sine is a polynomial built from sine’s derivatives at zero. It can approximate sine near zero, but the polynomial is not the same function as sine for all \(x\).

Maclaurin Polynomial and the Derivative Cycle

For a function \(f\) with the required derivatives at zero, its Maclaurin polynomial of degree \(n\) is

$$ P_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(0)}{k!}x^k. $$

Here \(f^{(0)}=f\), and \(k!\) is the factorial of \(k\), with \(0!=1\). The degree cutoff means that only powers \(x^k\) with \(k\le n\) are included. Some of their coefficients may be zero, so the polynomial’s actual degree can be less than \(n\).

For \(f(x)=\sin x\), differentiation gives a four-function cycle:

$$ \sin x,\qquad \cos x,\qquad -\sin x,\qquad -\cos x,\qquad \sin x,\ldots $$

Evaluating this cycle at zero uses \(\sin 0=0\) and \(\cos 0=1\). The derivative values begin

$$ \begin{aligned} f(0)&=0,\\ f'(0)&=1,\\ f''(0)&=0,\\ f'''(0)&=-1,\\ f^{(4)}(0)&=0,\\ f^{(5)}(0)&=1,\\ f^{(6)}(0)&=0,\\ f^{(7)}(0)&=-1. \end{aligned} $$

Thus the coefficients of even powers vanish. The nonzero entries occur at odd derivative orders, with alternating signs. Dividing each derivative value by its factorial gives the coefficients of the polynomial.

Deriving the General Form

The cycle gives a direct rule for every derivative at zero. At an even order \(2m\), the derivative is either \(\sin x\) or \(-\sin x\), so its value at zero is zero. At an odd order \(2m+1\), the derivative is either \(\cos x\) or \(-\cos x\). Its value at zero alternates between \(1\) and \(-1\), beginning with \(1\) at order one.

More precisely, for every integer \(m\ge 0\),

$$ f^{(2m)}(0)=0, \qquad f^{(2m+1)}(0)=(-1)^m. $$

Substituting these values into the definition of the Maclaurin polynomial proves the formula: even powers contribute zero, and the term at the odd power \(x^{2m+1}\) is \(\frac{(-1)^m}{(2m+1)!}x^{2m+1}\). Therefore, for \(n\ge 1\),

$$ P_n(x)= \sum_{\substack{m\ge 0\\2m+1\le n}} \frac{(-1)^m x^{2m+1}}{(2m+1)!}. $$

The index condition \(2m+1\le n\) enforces the degree cutoff. For \(n=0\), there are no odd powers to include, so \(P_0(x)=0\).

Result: The Maclaurin polynomial for sine includes \(x\), \(-x^3/3!\), \(x^5/5!\), and subsequent odd-power terms with alternating signs, stopping at the largest odd power no greater than the specified degree.

Worked Examples

Worked Example: Find the Maclaurin Polynomial Through Degree Four

Construct the degree-four Maclaurin polynomial for \(\sin x\). The cutoff allows powers through \(x^4\). From the derivative values at zero, the terms are

$$ \begin{aligned} P_4(x) &=\frac{f(0)}{0!} +\frac{f'(0)}{1!}x +\frac{f''(0)}{2!}x^2 +\frac{f'''(0)}{3!}x^3 +\frac{f^{(4)}(0)}{4!}x^4\\ &=\frac{0}{1} +\frac{1}{1}x +\frac{0}{2}x^2 +\frac{-1}{6}x^3 +\frac{0}{24}x^4\\ &=x-\frac{x^3}{6}. \end{aligned} $$

The degree-four term is included in the calculation, but its coefficient is zero. To check the result, differentiate the polynomial:

$$ P_4'(x)=1-\frac{x^2}{2},\qquad P_4''(x)=-x,\qquad P_4'''(x)=-1,\qquad P_4^{(4)}(x)=0. $$

At zero these derivatives have values \(1,0,-1,0\), respectively, matching the derivatives of sine through order four. Also \(P_4(0)=0=\sin 0\). The polynomial is therefore \(x-x^3/6\), despite being requested through degree four.

Worked Example: Evaluate the Degree-Five Polynomial at One-Half

The odd powers no greater than five are \(x\), \(x^3\), and \(x^5\). Their coefficients give

$$ \begin{aligned} P_5(x) &=\frac{1}{1!}x-\frac{1}{3!}x^3+\frac{1}{5!}x^5\\ &=x-\frac{x^3}{6}+\frac{x^5}{120}. \end{aligned} $$

Now evaluate this polynomial at \(x=\frac12\), keeping the fractions exact:

$$ \begin{aligned} P_5\left(\frac12\right) &=\frac12-\frac{(1/2)^3}{6}+\frac{(1/2)^5}{120}\\ &=\frac12-\frac{1/8}{6}+\frac{1/32}{120}\\ &=\frac12-\frac{1}{48}+\frac{1}{3840}\\ &=\frac{1920}{3840}-\frac{80}{3840}+\frac{1}{3840}\\ &=\frac{1841}{3840}. \end{aligned} $$

The polynomial evaluation is exactly \(\frac{1841}{3840}\), approximately \(0.479427\). To check its derivative data, differentiate:

$$ P_5'(x)=1-\frac{x^2}{2}+\frac{x^4}{24},\qquad P_5''(x)=-x+\frac{x^3}{6},\qquad P_5'''(x)=-1+\frac{x^2}{2},\qquad P_5^{(4)}(x)=x,\qquad P_5^{(5)}(x)=1. $$

Evaluating at zero gives \(1,0,-1,0,1\) for derivative orders one through five. Along with \(P_5(0)=0\), these match sine’s derivative values through order five, as required.

Worked Example: Use the Degree-Eight Cutoff at One

A degree-eight cutoff includes odd powers up to seven; the coefficients of powers \(x^2\), \(x^4\), \(x^6\), and \(x^8\) are zero. The polynomial is

$$ \begin{aligned} P_8(x) &=x-\frac{x^3}{3!}+\frac{x^5}{5!}-\frac{x^7}{7!}\\ &=x-\frac{x^3}{6}+\frac{x^5}{120}-\frac{x^7}{5040}. \end{aligned} $$

At \(x=1\), substitute each power and use a common denominator:

$$ \begin{aligned} P_8(1) &=1-\frac{1}{6}+\frac{1}{120}-\frac{1}{5040}\\ &=\frac{5040}{5040}-\frac{840}{5040} +\frac{42}{5040}-\frac{1}{5040}\\ &=\frac{4241}{5040}. \end{aligned} $$

This is approximately \(0.841468\). For a check, the polynomial’s derivatives at zero through order eight must reproduce sine’s values. The odd-order values are \(P_8'(0)=1\), \(P_8'''(0)=-1\), \(P_8^{(5)}(0)=1\), and \(P_8^{(7)}(0)=-1\); its value and all even-order derivatives through order eight are zero at zero. These agree with the derivative cycle. The actual polynomial degree is seven, even though the requested cutoff is eight.

Why the Degree Cutoff Matters

The notation \(P_n\) records the maximum allowed power, not a promise that the coefficient of \(x^n\) is nonzero. For sine, increasing the cutoff from an odd degree to the next even degree does not change the polynomial: the newly permitted even-power coefficient vanishes.

Requested cutoff Largest included odd power Polynomial
Degree three \(x^3\) \(x-\frac{x^3}{6}\)
Degree four \(x^3\) \(x-\frac{x^3}{6}\)
Degree five \(x^5\) \(x-\frac{x^3}{6}+\frac{x^5}{120}\)
Degree six \(x^5\) \(x-\frac{x^3}{6}+\frac{x^5}{120}\)

This pattern is useful when checking a calculation. If a proposed sine Maclaurin polynomial contains a nonzero even power, its coefficient calculation should be examined. Likewise, a degree-six cutoff should not include an \(x^7\) term, even though \(x^7\) is part of the next nonzero contribution.

Common Mistake: Losing the Alternating Sign

A tempting error is to assume the third derivative at zero is positive because the first derivative at zero is positive. That produces an incorrect cubic term. For example, the wrong calculation might be

$$ P_3(x)=x+\frac{x^3}{3!}=x+\frac{x^3}{6}. $$

But differentiating sine gives \(f'(x)=\cos x\), \(f''(x)=-\sin x\), and \(f'''(x)=-\cos x\). Hence \(f'''(0)=-1\), not \(1\). The correct cubic coefficient is

$$ \frac{f'''(0)}{3!}=\frac{-1}{6}=-\frac16, \qquad P_3(x)=x-\frac{x^3}{6}. $$

The correction is to write the derivative cycle before inserting coefficients. The cycle keeps both the zero values and the alternating signs visible.

Using the Polynomial as an Approximation

A sine Maclaurin polynomial is a local model centered at zero: its value and successive derivatives at zero agree with sine through the chosen cutoff. That makes it useful for estimating sine near zero using a finite polynomial. A higher cutoff includes additional terms when the next permitted odd power is reached.

The evaluation in a worked example is the value of the polynomial model, not an assertion that the polynomial equals \(\sin x\) at every input. For example, \(P_5(1/2)=1841/3840\) is the exact value of the degree-five polynomial at one-half. It is used as an approximation to \(\sin(1/2)\), not as an identity defining sine.

Practical check: List the derivative values at zero, divide each by the corresponding factorial, and retain only powers at or below the requested degree. If an even power remains with a nonzero coefficient, or if the odd-power signs fail to alternate, recheck the derivatives.

Check Your Understanding

Use the derivative cycle and the stated degree cutoffs to answer these questions.

  1. What are the values of the first six derivatives of sine at zero, including the function value?
  2. Write the Maclaurin polynomial for sine through degree two. Explain why its actual degree is less than two.
  3. Find the polynomial through degree seven and identify the coefficient of \(x^7\).
  4. Evaluate the degree-three polynomial at \(x=\frac12\), leaving the answer as an exact fraction.
  5. Why does the Maclaurin polynomial through degree six equal the one through degree five?