Why the Center Changes the Coefficients
A Maclaurin polynomial describes a function near zero. A Taylor polynomial about a different center \(a\) instead describes it using powers of \(x-a\). For sine and cosine, shifting the center does not require a new derivative method: their derivatives repeat in a cycle, and angle-addition identities connect their values at \(a\) to their values near zero.
The important practical change is that the coefficients now depend on the center. For example, the slope of sine at \(a\) is \(\cos a\), not necessarily \(1\). The constant term is \(\sin a\), not necessarily \(0\). Keeping the center visible as \(x-a\) helps prevent both kinds of error.
For sine and cosine, derivatives of every order exist. We use radians, as required for the standard derivative formulas \((\sin x)'=\cos x\) and \((\cos x)'=-\sin x\). Their repeating derivative values give the coefficients directly.
The Cyclic Derivative Values
Successive derivatives of sine repeat every four steps: sine, cosine, negative sine, negative cosine, and then sine again. Cosine has its own four-step cycle: cosine, negative sine, negative cosine, sine, and then cosine again.
Substituting these derivatives into the Taylor-polynomial definition produces the general formulas. In each summand, \(k\) is the derivative order, and the derivative is evaluated at the chosen center \(a\).
The ellipses indicate that the same derivative cycles continue only as far as the requested degree. For instance, a degree-three polynomial stops at \((x-a)^3\); a degree-four polynomial also includes the term involving \((x-a)^4\).
Why the Formulas Work
The derivative formula gives one direct justification. To construct the degree-\(n\) Taylor polynomial, the coefficient of \((x-a)^k\) must be the \(k\)th derivative of the function at \(a\), divided by \(k!\). Sine and cosine have the cycles just listed, so inserting their values gives each displayed coefficient. The construction therefore uses the definition directly.
Angle addition gives a second perspective and explains how the nonzero-center formulas relate to Maclaurin polynomials. Write \(h=x-a\), so \(x=a+h\). The angle-addition identities give
The Maclaurin polynomials for \(\sin h\) and \(\cos h\) have already displayed their alternating odd-power and even-power patterns. Substitute those patterns into the identities, multiply by the constant values \(\sin a\) and \(\cos a\), and retain powers of \(h\) only through degree \(n\). For sine, the coefficient of \(h^k\) is precisely \(\sin^{(k)}(a)/k!\); for cosine, it is \(\cos^{(k)}(a)/k!\). Since \(h=x-a\), these are the Taylor polynomials about \(a\).
Set \(h=x-a\), and decide the largest power to include.
Use the four-step cycle for the chosen function, evaluating each derivative at \(a\).
The coefficient of \(h^k\) is the \(k\)th derivative value divided by \(k!\).
Confirm the polynomial’s derivatives at \(a\) match the function’s derivatives through order \(n\).
Worked Examples
Worked Example: A Degree-Four Sine Polynomial at \(\pi/6\)
Find the degree-four Taylor polynomial for \(\sin x\) about \(a=\pi/6\). Set \(h=x-\pi/6\). The derivative values at the center are \(\sin(\pi/6)=1/2\), \(\cos(\pi/6)=\sqrt{3}/2\), \(-\sin(\pi/6)=-1/2\), \(-\cos(\pi/6)=-\sqrt{3}/2\), and \(\sin(\pi/6)=1/2\). Use these values for orders zero through four:
Check by differentiating and evaluating at \(x=\pi/6\), where \(h=0\). The polynomial’s value is \(1/2\); its first derivative there is \(\sqrt3/2\); its second derivative is \(2!(-1/4)=-1/2\); its third derivative is \(3!(-\sqrt3/12)=-\sqrt3/2\); and its fourth derivative is \(4!(1/48)=1/2\). These are exactly \(\sin a,\cos a,-\sin a,-\cos a,\sin a\), respectively, so the Taylor coefficients are checked.
Worked Example: A Degree-Five Cosine Polynomial at \(\pi/3\)
Find the degree-five Taylor polynomial for \(\cos x\) about \(a=\pi/3\). Here \(h=x-\pi/3\). The derivative values at the center, from order zero to five, are \(1/2,-\sqrt3/2,-1/2,\sqrt3/2,1/2,-\sqrt3/2\). Dividing each by its factorial gives
For the check, evaluate successive derivatives at the center. The polynomial and its first five derivatives there are \(1/2,-\sqrt3/2,2!(-1/4)=-1/2,3!(\sqrt3/12)=\sqrt3/2,4!(1/48)=1/2,\) and \(5!(-\sqrt3/240)=-\sqrt3/2\). They match the cosine derivative cycle at \(\pi/3\), confirming every coefficient.
Worked Example: A Degree-Five Sine Polynomial at \(\pi/2\)
Find the degree-five Taylor polynomial for \(\sin x\) about \(a=\pi/2\). With \(h=x-\pi/2\), the derivatives of sine at the center, through order five, are \(1,0,-1,0,1,0\). Thus
The degree-five polynomial has no fifth-power term, so its actual degree is four. This is allowed: “degree five” here means the Taylor polynomial constructed through order five. Its value and first five derivatives at the center are \(1,0,-1,0,1,0\), matching the sine derivative values there. The same result follows from \(\sin(\pi/2+h)=\cos h\), whose degree-five Maclaurin polynomial is \(1-h^2/2+h^4/24\).
A Sign Error to Avoid
A common mistake is to use the wrong sign in the angle-addition identity for sine. For example, the incorrect calculation \(\sin(a+h)=\sin a\cos h-\cos a\sin h\) would give the coefficient of \(h\) as \(-\cos a\). But differentiating \(\sin(a+h)\) with respect to \(h\) at \(h=0\) gives \(\cos a\), so that sign cannot be correct. The correct identity is
and its linear term is \(+\cos a\,h\). A quick check of the linear coefficient is often enough to catch a sign error before it spreads to higher powers.
Another frequent slip is to write powers of \(x\) rather than powers of \(x-a\). A Taylor polynomial about \(a\) must be organized in powers of \(x-a\). Its constant term is the function value at \(a\), and substituting \(x=a\) makes all higher-power terms vanish, as it should.
Why These Polynomials Are Useful
These formulas provide local polynomial models for sine and cosine near any chosen center. Choosing a center other than zero lets the constant term and slope match the function at the point of interest. This is useful when a calculation is naturally situated near a particular angle rather than near zero. For instance, near \(\pi/2\), the sine polynomial has a nonzero constant term and only even powers of \(x-\pi/2\) in the example above.
The coefficient pattern also makes the calculation systematic: evaluate sine and cosine at the center, follow the derivative cycle, divide by the relevant factorial, and stop at the requested order. The derivative check confirms that the resulting polynomial has the intended values and derivatives at the center. It does not, by itself, state an error bound for the approximation; that is a separate question.
Check Your Understanding
Use the derivative cycles and powers of \(x-a\) to answer these questions.
- Write the degree-three Taylor polynomial for \(\sin x\) about a general center \(a\).
- What are the first four derivatives of \(\cos x\), in order, and what pattern do they follow?
- For a degree-four Taylor polynomial about \(a\), what value does the polynomial take at \(x=a\), and why?
- Why can a degree-five Taylor polynomial for sine have no fifth-power term at a particular center?
- In constructing a Taylor polynomial about \(a\), why must the powers be \(x-a\) rather than \(x\)?