Back to homeMathematics · AP Calculus BC · Change subject
Start for free
Infinite Series · Taylor Polynomials and Series

Taylor and Maclaurin Series of Functions

Practise this section (12)

Your calculator says $\sin(0.1) \approx 0.0998334$. But a calculator can only add, subtract, multiply, and divide. How does it get a value of $\sin$? It uses a polynomial, and a polynomial is just arithmetic. In this page you will see where that polynomial comes from, and why an "infinite polynomial" can equal a function exactly.

Maclaurin Series and Substitution

In the previous topic you built Taylor polynomials. Each one matches a function's value and first few derivatives at a point. If you never stop adding terms, you get a Taylor series.

Why $n!$ in the denominator? Taking $n$ derivatives of $x^n$ produces $n!$, so dividing by $n!$ makes the $n$th derivative of the series at $0$ equal $f^{(n)}(0)$. The polynomial matches $f$ derivative by derivative.

For $f(x)=e^x$, every derivative is $e^x$, so $f^{(n)}(0)=1$ for every $n$. The Maclaurin series is $\sum \frac{x^n}{n!}$. You don't need to rebuild every series from scratch. Learn these four and derive everything else from them.

Here is how well the partial sums of $\sin x$ do. Drag the view or compare the curves. Near $0$ the polynomials are almost indistinguishable from $\sin x$, and each added term widens the region where they agree.

Substitution

If a series is true for every $x$, it is also true when you replace $x$ with any expression $u$. So you get a new series for free.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
The Maclaurin series for $e^x$ is $\sum_{n=0}^{\infty}\frac{x^n}{n!}$. Substitute $-x^2$ for $x$ to write the first four nonzero terms of the Maclaurin series for…

The Maclaurin series for $e^x$ is $\sum_{n=0}^{\infty}\frac{x^n}{n!}$. Substitute $-x^2$ for $x$ to write the first four nonzero terms of the Maclaurin series for $e^{-x^2}$, and give its general term.

Solve
Practice★☆☆Not started
The Maclaurin series for $\sin x$ is $x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots$. Write the first three nonzero terms of the Maclaurin series for $\sin(2x)$, simplifying…

The Maclaurin series for $\sin x$ is $x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots$. Write the first three nonzero terms of the Maclaurin series for $\sin(2x)$, simplifying each coefficient.

Solve

Geometric Series and Algebra with Series

The series $\frac{1}{1-x}=\sum x^n$ is special because it only works when $|x|<1$. It is a geometric series with first term $1$ and ratio $x$. The same idea works when the ratio is any expression $u$:

$$\frac{1}{1-u}=\sum_{n=0}^{\infty}u^n \quad \text{for } |u|<1.$$

So to write a function as $\frac{1}{1-u}$, rewrite the denominator as $1$ minus something. For $\frac{1}{1+x}$, write $1+x=1-(-x)$, so $u=-x$.

The polynomial hugs $\frac{1}{1-x}$ for $|x|<1$ and flies away from it outside that interval. The values of $x$ where the substitution is valid matter as much as the series itself.

We can also multiply a series by a power of $x$ (or by a constant). Just multiply every term, which shifts the exponents.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Use $\frac{1}{1-x}=\sum_{n=0}^{\infty}x^n$ for $|x|<1$ to write the Maclaurin series for $\frac{1}{1+3x}$. Give the first four terms, the general term, and the values of…

Use $\frac{1}{1-x}=\sum_{n=0}^{\infty}x^n$ for $|x|<1$ to write the Maclaurin series for $\frac{1}{1+3x}$. Give the first four terms, the general term, and the values of $x$ for which the substitution is valid.

Solve
Practice★☆☆Not started
The Maclaurin series for $\cos x$ is $1-\frac{x^2}{2!}+\frac{x^4}{4!}-\cdots$. Multiply by $x$ to write the first three nonzero terms of the Maclaurin series for…

The Maclaurin series for $\cos x$ is $1-\frac{x^2}{2!}+\frac{x^4}{4!}-\cdots$. Multiply by $x$ to write the first three nonzero terms of the Maclaurin series for $x\cos x$, and give the general term.

Solve

Differentiating and Integrating Term by Term

A power series behaves like a long polynomial: you can differentiate or integrate it one term at a time. Inside the interval of convergence, the new series converges to the derivative or integral of the original function.

Vertical diagram: f(x) = Σ aₙxⁿ in the middle. Differentiating each term gives f'(x) = Σ n aₙxⁿ⁻¹ (arrow up); integrating each term gives ∫f = C + Σ aₙxⁿ⁺¹/(n+1) (arrow down), within the interval of convergence. f'(x) = Σ n an xn-1 f(x) = Σ an xn ∫f = C + Σ an xn+1/(n+1) differentiate each term integrate each term Vertical diagram: f(x) = Σ aₙxⁿ in the middle. Differentiating each term gives f'(x) = Σ n aₙxⁿ⁻¹ (arrow up); integrating each term gives ∫f = C + Σ aₙxⁿ⁺¹/(n+1) (arrow down), within the interval of convergence.

Why does this work? A polynomial is differentiated by the power rule term by term. The theorem says the same rule holds for an infinite sum, as long as you stay inside the interval of convergence.

Now find new series yourself. For the exercise with $\frac{1}{(1-x)^2}$, remember that $\frac{d}{dx}\frac{1}{1-x}=\frac{1}{(1-x)^2}$. For $\ln(1+x)$ and $F(x)=\int_0^x e^{-t^2}dt$, integrate a series you already have.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★☆Not started
Integrate the Maclaurin series for $e^{-t^2}$ term by term to find the first four nonzero terms of the series for $F(x)=\int_0^x e^{-t^2}\,dt$. Then use the first two…

Integrate the Maclaurin series for $e^{-t^2}$ term by term to find the first four nonzero terms of the series for $F(x)=\int_0^x e^{-t^2}\,dt$. Then use the first two terms to approximate $F(0.5)$.

Solve
Practice★★☆Not started
Write $\frac{1}{1+t}$ as a power series, integrate term by term from $0$ to $x$, and so find the Maclaurin series for $\ln(1+x)$. Give the first four terms and the…

Write $\frac{1}{1+t}$ as a power series, integrate term by term from $0$ to $x$, and so find the Maclaurin series for $\ln(1+x)$. Give the first four terms and the general term.

Solve
Practice★★☆Not started
Differentiate $\frac{1}{1-x}=\sum_{n=0}^{\infty}x^n$ term by term to write a series for $\frac{1}{(1-x)^2}$. Then use $x=\frac12$ to find the exact value of…

Differentiate $\frac{1}{1-x}=\sum_{n=0}^{\infty}x^n$ term by term to write a series for $\frac{1}{(1-x)^2}$. Then use $x=\frac12$ to find the exact value of $\sum_{n=1}^{\infty}\frac{n}{2^n}$.

Solve

Evaluating Limits with Series

Near $x=0$, a function is almost its Maclaurin polynomial. So a limit of the form $\frac00$ at $0$ can be done by replacing each function by its first few terms. No L'Hôpital's Rule is needed.

The graph shows $\frac{1-\cos x}{x^2}$ approaching $0.5$ near $x=0$. Let's see why with series.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★☆Not started
Use Maclaurin series to evaluate $\lim_{x\to0}\frac{e^x-1-x}{x^2}$. Write the first few terms of the numerator and simplify before taking the limit.

Use Maclaurin series to evaluate $\lim_{x\to0}\frac{e^x-1-x}{x^2}$. Write the first few terms of the numerator and simplify before taking the limit.

Solve
Practice★★★Not started
Use Maclaurin series for $\sin x$ and $\cos x$ to evaluate $\lim_{x\to0}\frac{x\cos x-\sin x}{x^3}$. Show the series for the numerator through the $x^3$ term and explain…

Use Maclaurin series for $\sin x$ and $\cos x$ to evaluate $\lim_{x\to0}\frac{x\cos x-\sin x}{x^3}$. Show the series for the numerator through the $x^3$ term and explain why the higher-order terms do not affect the limit.

Solve

Approximating Integrals and the Error Bound

Some functions have no elementary antiderivative, such as $\cos(x^2)$. There is no formula for $\int\cos(x^2)\,dx$. But a series can be integrated term by term, so we get an answer as a sum of numbers.

When the integral gives an alternating series whose terms decrease in absolute value to $0$, we can estimate the error.

Check each condition before using the bound. The terms must alternate in sign, decrease in absolute value, and tend to $0$. If you evaluate at a large $x$, the terms may first grow before they shrink, and the bound fails until they start decreasing.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★★Not started
(a) Write the first three nonzero terms of the Maclaurin series for $\sin(x^2)$. (b) Integrate term by term to write the first three nonzero terms of…

(a) Write the first three nonzero terms of the Maclaurin series for $\sin(x^2)$. (b) Integrate term by term to write the first three nonzero terms of $\int_0^1\sin(x^2)\,dx$ as numbers. (c) Use the first two terms to approximate the integral, and use the alternating series error bound to show that the error is less than $0.001$.

Solve

Coefficients, Derivatives, and Differential Equations

The coefficient of $x^n$ in a Maclaurin series is $\dfrac{f^{(n)}(0)}{n!}$. Turn this around and you can find a derivative at $0$ from a series without differentiating.

The first terms of a Maclaurin series, a₀ + a₁x + a₂x² + a₃x³, with each coefficient below: a₀ = f(0), a₁ = f′(0), a₂ = f″(0)/2!, a₃ = f‴(0)/3!. In general, aₙ = f⁽ⁿ⁾(0)/n!. a0 a1x a2x2 a3x3 + + + a0 = f(0) a1 = f'(0) a2 = f''(0)/2! a3 = f'''(0)/3! The first terms of a Maclaurin series, a₀ + a₁x + a₂x² + a₃x³, with each coefficient below: a₀ = f(0), a₁ = f′(0), a₂ = f″(0)/2!, a₃ = f‴(0)/3!. In general, aₙ = f⁽ⁿ⁾(0)/n!.

So $f^{(n)}(0)=n!\,a_n$.

A series can also solve a differential equation. Assume $f(x)=\sum a_nx^n$, differentiate term by term, and compare coefficients of the same power of $x$.

For the exercise with $f(x)=\frac{x^2}{1+x^3}$, write $\frac{1}{1+x^3}$ as a geometric series first. For the differential equation, find the recurrence like the example, then spot the pattern.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★★Not started
Let $f(x)=\frac{x^2}{1+x^3}$. (a) Use the geometric series to write the Maclaurin series for $f$, giving the general term. (b) Use the series to find $f^{(5)}(0)$,…

Let $f(x)=\frac{x^2}{1+x^3}$. (a) Use the geometric series to write the Maclaurin series for $f$, giving the general term. (b) Use the series to find $f^{(5)}(0)$, $f^{(6)}(0)$, and $f^{(8)}(0)$, using the fact that the coefficient of $x^n$ is $\frac{f^{(n)}(0)}{n!}$. (c) For which $x$ does the series converge?

Solve
Practice★★★Not started
A function $f$ satisfies $f'(x)=2f(x)$ and $f(0)=3$, and has a Maclaurin series $\sum_{n=0}^{\infty}a_nx^n$. (a) Find $a_0$ and show that $a_{n+1}=\frac{2a_n}{n+1}$. (b)…

A function $f$ satisfies $f'(x)=2f(x)$ and $f(0)=3$, and has a Maclaurin series $\sum_{n=0}^{\infty}a_nx^n$. (a) Find $a_0$ and show that $a_{n+1}=\frac{2a_n}{n+1}$. (b) Find $a_1$, $a_2$, $a_3$, and $a_4$. (c) Find a formula for $a_n$ and identify $f(x)$ in closed form using the Maclaurin series for $e^x$.

Solve

Back to the start: your calculator's polynomial is just a partial sum of the Maclaurin series. With the first two terms of $\sin x$,

$$\sin(0.1)\approx0.1-\frac{0.1^3}{3!}=0.0998333\ldots$$

and the next omitted term is only $\frac{0.1^5}{5!}\approx8.3\times10^{-8}$. By the alternating series bound, the error is smaller than that, which is why the calculator's $0.0998334$ matches so well.

Summary

Can't find your problem here?

The AI checks one of your exercises: paste the problem with your answer or take a photo of it.

See all the exercises in this section