Taylor Series of f(x) at x=a

Read · 1 min

Where does the Taylor Series come from?

Suppose that ff has a power series, so

f(x)=a0+a1x+a2x2+a3x3+…f(x)=a_0+a_1x+a_2x^2+a_3x^3+\dots

To isolate one coefficient, we can make all of the variables on the right cancel by taking f(0)f(0). To make the variables on the left cancel, we take the derivative a sufficient amount of times until they cancel. For instance, say we want to find a3a_3 in this series. To cancel a0a_0, a1a_1, and a2a_2, take the third derivative:

f′(x)=a1+2a2x+3a3x2+4a4x3+…f'(x)=a_1+2a_2x+3a_3x^2+4a_4x^3+\dots f′′(x)=2a2+6a3x+12a4x2+20a5x3+…f''(x)=2a_2+6a_3x+12a_4x^2+20a_5x^3+\dots f′′′(x)=6a3+24a4x+60a5x2+120a6x3+…f'''(x)=6a_3+24a_4x+60a_5x^2+120a_6x^3+\dots

Then plug in x=0x=0 to cancel the right terms.

f′′′(0)=6a3f'''(0)=6a_3

Therefore,

a3=16f′′′(0)a_3=\frac16f'''(0)

To generalize for the ana_n term, we focus just on the anxna_nx^n term because the other terms will cancel:

anxn→nanxn−1→n(n−1)anxn−2→n(n−1)(n−2)…(n−k)anxn−ka_nx^n\to na_nx^{n-1}\to n(n-1)a_nx^{n-2}\to n(n-1)(n-2)\dots(n-k)a_nx^{n-k}

Take k=n−1k=n-1 to get n(n−1)(n−2)…(2)(1)anx1n(n-1)(n-2)\dots(2)(1)a_nx^1 or n!anxn!a_nx. Take the derivative one more time to get n!ann!a_n. Since the derivative was taken nn times to cancel the other terms, we get that

n!an=f(n)(0)  ⟹  an=f(n)(0)n!n!a_n=f^{(n)}(0)\implies a_n=\frac{f^{(n)}(0)}{n!}

Plugging this back in for each coefficient, we get

f(x)=f(0)+f′(0)x+f′′(0)2x2+f′′′(0)6x3+⋯+f(k)(0)k!xk+…f(x)=f(0)+f'(0)x+\frac{f''(0)}2x^2+\frac{f'''(0)}6x^3+\dots+\frac{f^{(k)}(0)}{k!}x^k+\dots

This is the Taylor series formula!

Interactive · 4 questions

Now, we come to the fascinating subject of Taylor Series. Before, we delve into this topic, let us do a quick check.

Are you comfortable with manipulating (taking derivatives and integrals of) functions, especially special functions like exe^x, sin⁡x\sin x, and ln⁡∣x∣\ln |x|?

Choose one answer

Interactive · 1 question

A Taylor Series, in simplistic terms, is a Taylor polynomial of infinite degree. More formally, if P(x)P(x) is the Taylor series for a function f(x)f(x), infinitely differentiable at a point aa, about that point, and fn(x)f_n(x) is the nnth degree Taylor polynomial approximation about the same point, then

P(x)=P(x) = lim⁡n→∞fn(x)\lim_{n\to\infty} f_n(x).

This limit function will take the form

P(x)=f(a)+f′(a)(x−a)+12f′′(a)(x−a)2+16f′′′(a)(x−a)3+P(x) = f(a) + f'(a)(x-a) + \frac{1}{2} f''(a)(x-a)^2 + \frac{1}{6} f'''(a)(x-a)^3 + ......

or

P(x)=P(x) = ∑n=0∞f(n)(a)(x−a)nn!\sum_{n=0}^{\infty} \frac{f^{(n)} (a)(x-a)^n}{n!}.

For example, what would be the Taylor series for sin(x)sin(x) about 0?

Choose one answer

Interactive · 3 questions

By know, we're familiar with the Taylor polynomials for a function ff about a point aa - and we know that they can actually be very good approximations of ff!

Ultimately, however, the Taylor polynomials gng_n are just approximations of ff. And if ff is not a polynomial, gng_n will never be equal to ff for any nn. However, it turns out that for many functions, a truly remarkable thing happens. Consider the infinite series: Ta(x)=∑n=0∞f(n)(a)n!(x−a)nT_a(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!} (x - a)^n Clearly, we have lim⁡n→∞gn(x)=Ta(x)\lim_{n \rightarrow \infty} g_n(x) = T_a(x)

In a sense, TaT_a - the Taylor series of ff at aa - is the best "approximation" we can make. It takes the limit of all of our approximations, each of which get closer to ff, in the hope that we actually reach ff. The astounding thing is that for many functions, we do! In particular, this is true for sin⁡,cos⁡,ex\sin, \cos, e^x, and many others.

(A small sidenote: when a=0a = 0, the Taylor series of ff at aa is sometimes called the MacLaurin series of ff).

Let's try to find some!

Which of the following is the MacLaurin series of sin⁡\sin?

Choose one answer

Read · 1 min

Overview of Taylor series

The Taylor series of a function f(x)f(x) at a point x=ax=a is a power series centered at x=ax=a modeled off of Taylor polynomial approximations. It has a radius of convergence like any other power series. In ideal situations, the Taylor series will not only converge, but converge to the original function on an open interval containing aa. In this case, the Taylor series is sometimes called the (power or Taylor) series expansion centered at x=ax=a. (Furthermore, the Taylor series is actually the unique power series converging to f(x)f(x)⁠—which makes Taylor series all the more natural!)

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems