Tutorials › Calculus II › Translating Exponential and Trigonometric Taylor Series

Taylor Series Construction · Tutorial 827 of 998

Translating Exponential and Trigonometric Taylor Series

Learn to shift these three familiar Maclaurin series to an arbitrary center, write their Taylor coefficients, and identify their convergence intervals.

Intermediate 9 min read

What You'll Learn

  • Rewrite each function using the shifted variable \(h=x-a\).
  • Derive centered series for \(e^x\), \(\sin x\), and \(\cos x\) from their Maclaurin expansions.
  • Express the coefficients in terms of the center \(a\).
  • Check a centered expansion against function values and derivatives at its center.
  • Determine why each resulting series converges for every real \(x\).

Why Shift a Maclaurin Series?

A Maclaurin series describes a function using powers of \(x\), which makes it most directly useful near \(x=0\). A Taylor series centered at a different number \(a\) instead uses powers of \(x-a\). This shift lets us describe the same function in a form organized around the point of interest.

For the exponential, sine, and cosine, the shift can be obtained directly from their Maclaurin series. The resulting expansions are valid for every real \(x\), regardless of the chosen real center.

Definition: A Taylor series centered at \(a\) is a power series in \(x-a\). For a function with derivatives of every order at \(a\), its Taylor coefficients are \(f^{(n)}(a)/n!\), so the series has the form
$$ \sum_{n=0}^{\infty}\frac{f^{(n)}(a)}{n!}(x-a)^n. $$
This expression is a Taylor series for \(f\); it equals \(f(x)\) only at inputs where the series converges to the function.

The Shifted Variable

Set \(h=x-a\), so that \(x=a+h\). The earlier Maclaurin expansions are

$$ e^h=\sum_{n=0}^{\infty}\frac{h^n}{n!},\qquad \sin h=\sum_{k=0}^{\infty}(-1)^k\frac{h^{2k+1}}{(2k+1)!},\qquad \cos h=\sum_{k=0}^{\infty}(-1)^k\frac{h^{2k}}{(2k)!}. $$

Replacing \(h\) by \(x-a\) gives a series in the desired powers. For sine and cosine, we must also relate the value at \(a+h\) to the functions of \(h\). The angle-addition identities do this, while the exponential identity \(e^{a+h}=e^a e^h\) does the same for \(e^x\).

Deriving the Three Centered Series

For the exponential, use the product identity and substitute the Maclaurin expansion of \(e^h\):

$$ e^x=e^{a+h}=e^a e^h =e^a\sum_{n=0}^{\infty}\frac{h^n}{n!} =\sum_{n=0}^{\infty}\frac{e^a}{n!}(x-a)^n. $$

For sine, the angle-addition identity is \(\sin(a+h)=\sin a\cos h+\cos a\sin h\). Substituting the two Maclaurin series gives

$$ \sin x = \sin a\sum_{k=0}^{\infty}(-1)^k\frac{(x-a)^{2k}}{(2k)!} + \cos a\sum_{k=0}^{\infty}(-1)^k\frac{(x-a)^{2k+1}}{(2k+1)!}. $$

Similarly, \(\cos(a+h)=\cos a\cos h-\sin a\sin h\), so

$$ \cos x = \cos a\sum_{k=0}^{\infty}(-1)^k\frac{(x-a)^{2k}}{(2k)!} - \sin a\sum_{k=0}^{\infty}(-1)^k\frac{(x-a)^{2k+1}}{(2k+1)!}. $$
Theorem: For any real center \(a\), these identities give the Taylor series of \(e^x\), \(\sin x\), and \(\cos x\) about \(a\). Each series converges to its function value for every real \(x\). Thus, each has radius of convergence infinity and convergence interval \((-\infty,\infty)\).

Why These Are Taylor Coefficients

The shift derivation shows that the displayed series equal the functions. We can also check that their coefficients have the defining Taylor form. The derivatives of \(e^x\) are all \(e^x\), so its \(n\)th derivative at \(a\) is \(e^a\). Dividing by \(n!\) gives the coefficient \(e^a/n!\).

For sine and cosine, derivatives cycle through the four functions \(\sin x\), \(\cos x\), \(-\sin x\), and \(-\cos x\). At \(a\), the even-order derivatives of sine alternate between \(\sin a\) and \(-\sin a\), while its odd-order derivatives alternate between \(\cos a\) and \(-\cos a\). For cosine, the even-order derivatives alternate between \(\cos a\) and \(-\cos a\), and the odd-order derivatives between \(-\sin a\) and \(\sin a\). Dividing each \(n\)th derivative by \(n!\) gives exactly the coefficients in the shifted formulas.

1
Choose the center.
Write \(x=a+h\), so the powers in the new series will be powers of \(h=x-a\).
2
Use the function identity.
For the exponential use \(e^{a+h}=e^a e^h\); for sine and cosine use their angle-addition identities.
3
Insert the Maclaurin series.
Replace each function of \(h\) by its established Maclaurin expansion.
4
Read the centered powers and coefficients.
Every power is a power of \(x-a\), and the coefficient of that power agrees with the corresponding derivative at \(a\) divided by its factorial.

Worked Examples

Worked Example: Expand \(e^x\) About \(a=2\)

Set \(h=x-2\), so \(x=2+h\). The exponential identity gives \(e^x=e^2e^h\). Substituting the Maclaurin series for \(e^h\) yields

$$ e^x=e^2\left(1+h+\frac{h^2}{2!}+\frac{h^3}{3!}+\cdots\right) =e^2\left(1+(x-2)+\frac{(x-2)^2}{2!}+\frac{(x-2)^3}{3!}+\cdots\right). $$

Thus the coefficient of \((x-2)^n\) is \(e^2/n!\). To check the first coefficients, the function value and first three derivatives at \(2\) are all \(e^2\). Their Taylor coefficients are \(e^2/0!=e^2\), \(e^2/1!=e^2\), \(e^2/2!=e^2/2\), and \(e^2/3!=e^2/6\), matching the displayed expansion. Substituting \(x=2\) also leaves only the constant term \(e^2\), as required.

Worked Example: Expand \(\sin x\) About \(a=\pi/6\)

Let \(h=x-\pi/6\). Since \(\sin(\pi/6)=1/2\) and \(\cos(\pi/6)=\sqrt{3}/2\), the shifted sine formula gives

$$ \sin x = \frac12\left(1-\frac{h^2}{2!}+\frac{h^4}{4!}-\cdots\right) + \frac{\sqrt{3}}{2}\left(h-\frac{h^3}{3!}+\frac{h^5}{5!}-\cdots\right). $$

Equivalently, replacing \(h\) by \(x-\pi/6\),

$$ \sin x = \frac12 +\frac{\sqrt{3}}{2}\left(x-\frac{\pi}{6}\right) -\frac{1}{4}\left(x-\frac{\pi}{6}\right)^2 -\frac{\sqrt{3}}{12}\left(x-\frac{\pi}{6}\right)^3 +\frac{1}{48}\left(x-\frac{\pi}{6}\right)^4+\cdots. $$

Check the coefficients using derivatives at the center. The value is \(\sin(\pi/6)=1/2\); the first derivative is \(\cos(\pi/6)=\sqrt{3}/2\); the second derivative is \(-\sin(\pi/6)=-1/2\); the third is \(-\cos(\pi/6)=-\sqrt{3}/2\); and the fourth is \(\sin(\pi/6)=1/2\). Dividing these by \(0!,1!,2!,3!,4!\), respectively, gives \(1/2,\sqrt{3}/2,-1/4,-\sqrt{3}/12,1/48\), as in the expansion. At \(x=\pi/6\), all positive powers vanish and the series gives \(1/2\), the correct function value.

Worked Example: Expand \(\cos x\) About \(a=\pi/3\)

Set \(h=x-\pi/3\). Here \(\cos(\pi/3)=1/2\) and \(\sin(\pi/3)=\sqrt{3}/2\). The cosine addition identity gives

$$ \cos x = \frac12\left(1-\frac{h^2}{2!}+\frac{h^4}{4!}-\cdots\right) - \frac{\sqrt{3}}{2}\left(h-\frac{h^3}{3!}+\frac{h^5}{5!}-\cdots\right). $$

The first terms, written in \(x-\pi/3\), are

$$ \cos x = \frac12 -\frac{\sqrt{3}}{2}\left(x-\frac{\pi}{3}\right) -\frac14\left(x-\frac{\pi}{3}\right)^2 +\frac{\sqrt{3}}{12}\left(x-\frac{\pi}{3}\right)^3 +\frac{1}{48}\left(x-\frac{\pi}{3}\right)^4+\cdots. $$

The derivative values at \(\pi/3\) in orders zero through four are \(1/2,-\sqrt{3}/2,-1/2,\sqrt{3}/2,1/2\). Dividing by the corresponding factorials gives \(1/2,-\sqrt{3}/2,-1/4,\sqrt{3}/12,1/48\), which verifies each displayed coefficient. Setting \(x=\pi/3\) makes \(h=0\), so the series gives \(1/2=\cos(\pi/3)\), also confirming its constant term.

Convergence for Every Real Input

The centered formulas come from Maclaurin series evaluated at \(h=x-a\). Each of the three Maclaurin series converges for every real value of its input. For any real \(x\) and any real center \(a\), the shifted input \(h=x-a\) is still a real number. Therefore the substitutions converge at every such \(x\).

The convergence can also be seen from the terms. For the exponential series, when \(h\ne 0\), the ratio of the absolute values of consecutive terms is

$$ \frac{|h|^{n+1}/(n+1)!}{|h|^n/n!}=\frac{|h|}{n+1}, $$

which tends to zero as \(n\) increases. For the sine series, the ratio between consecutive nonzero absolute terms is \(|h|^2/((2k+2)(2k+3))\), which tends to zero; for cosine it is \(|h|^2/((2k+1)(2k+2))\), which also tends to zero. At \(h=0\), the series reduce to their constant terms. Thus these series converge absolutely for every real \(h\), and hence for every real \(x\). There are no finite endpoints at which a separate endpoint test is needed.

A Common Translation Error

A frequent mistake is to replace \(x\) by \(x-a\) inside the original function and then treat that as the desired expansion of the original function. For example, at \(a=\pi/6\), using \(\sin(x-\pi/6)\) as the series for \(\sin x\) would give zero when \(x=\pi/6\). But the original function has value \(\sin(\pi/6)=1/2\), so that cannot be right.

The shifted variable is \(h=x-a\), but the function being expanded remains \(\sin x=\sin(a+h)\). The angle-addition identity supplies the necessary center-dependent factors:

$$ \sin x=\sin a\cos(x-a)+\cos a\sin(x-a). $$

At \(x=a\), this expression is \(\sin a\cdot 1+\cos a\cdot 0=\sin a\), as required. The same care applies to cosine, whose shifted identity includes a minus sign before \(\sin a\sin(x-a)\).

Why the Center Matters Even When Convergence Does Not

For these three functions, changing the center does not change the convergence interval: every centered series converges for all real inputs. It does change the coefficients and the powers used to represent the function. Near a chosen center \(a\), the terms are organized in powers of the distance \(x-a\); at the center itself, every term of positive degree vanishes. The coefficients encode the function's value and successive derivatives at that particular point.

This distinction is useful when constructing local descriptions at points other than zero. The Maclaurin expansion is the special case \(a=0\); translating it does not create a new convergence restriction for the exponential, sine, or cosine.

Check Your Understanding

Use the shifted variable \(h=x-a\) and the centered identities to answer the following.

  1. Write the Taylor series for \(e^x\) about an arbitrary real center \(a\).
  2. In the expansion of \(\sin x\) about \(a\), which factor multiplies the odd powers of \(x-a\)?
  3. Write the first four nonzero terms of the Taylor series for \(\cos x\) about \(a=0\), and compare them with the centered cosine formula.
  4. What is the convergence interval for the Taylor series of \(\sin x\) about any real center?
  5. Explain why \(\sin(x-a)\) alone cannot be the Taylor expansion of \(\sin x\) about \(a\), unless the relevant values happen to agree.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon