1. Home
  2. Explore
  3. Mathematics
  4. Taylor Series Applications

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Taylor Series Applications

Taylor Series: Approximating Functions with Polynomials

Motivation: Why Approximate Functions?

In physics and engineering, many problems involve functions that are awkward to work with directly. For example, the potential energy of a pendulum depends on 1−cos⁡θ1 - \cos\theta1−cosθ, where θ\thetaθ is the angle. This cosine term makes the analysis messy. However, for small angles, cos⁡θ\cos\thetacosθ can be approximated by 1−θ221 - \frac{\theta^2}{2}1−2θ2​, which simplifies the problem dramatically and reveals deeper connections to other oscillatory phenomena.

The core idea: non‑polynomial functions can be replaced by polynomials near a chosen input. Polynomials are much easier to compute, differentiate, integrate, and manipulate.


Constructing a Quadratic Approximation for cos⁡x\cos xcosx near x=0x=0x=0

We seek a quadratic polynomial P2(x)=c0+c1x+c2x2P_2(x) = c_0 + c_1 x + c_2 x^2P2​(x)=c0​+c1​x+c2​x2 that "spoons" with cos⁡x\cos xcosx near x=0x=0x=0.

1. Matching the function value at 000

At x=0x=0x=0, cos⁡0=1\cos 0 = 1cos0=1. So we require P2(0)=c0=1P_2(0)=c_0 = 1P2​(0)=c0​=1.

2. Matching the first derivative (slope) at 000

The derivative of cos⁡x\cos xcosx is −sin⁡x-\sin x−sinx, and at x=0x=0x=0, −sin⁡0=0-\sin0=0−sin0=0. The derivative of P2P_2P2​ is P2′(x)=c1+2c2xP_2'(x)=c_1 + 2c_2 xP2′​(x)=c1​+2c2​x. At x=0x=0x=0, this equals c1c_1c1​. To match slopes, set c1=0c_1=0c1​=0.

3. Matching the second derivative (curvature) at 000

The second derivative of cos⁡x\cos xcosx is −cos⁡x-\cos x−cosx, and at x=0x=0x=0, −cos⁡0=−1-\cos0=-1−cos0=−1. The second derivative of P2P_2P2​ is P2′′(x)=2c2P_2''(x)=2c_2P2′′​(x)=2c2​. So 2c2=−12c_2 = -12c2​=−1, giving c2=−12c_2 = -\frac12c2​=−21​.

Thus the best quadratic approximation is

P2(x)=1−12x2.P_2(x) = 1 - \frac12 x^2.P2​(x)=1−21​x2.

Key idea: Each coefficient in the polynomial controls one piece of derivative information at the point of expansion. c0c_0c0​ controls the value, c1c_1c1​ controls the slope, c2c_2c2​ controls the rate of change of the slope.


Extending to Higher Orders

Adding a cubic term c3x3c_3 x^3c3​x3

The third derivative of cos⁡x\cos xcosx is sin⁡x\sin xsinx, which equals 000 at x=0x=0x=0. The third derivative of a cubic polynomial at 000 is 1⋅2⋅3⋅c3=6c31\cdot2\cdot3\cdot c_3 = 6c_31⋅2⋅3⋅c3​=6c3​. Setting these equal gives c3=0c_3=0c3​=0. So the quadratic is also the best cubic approximation (the cubic term vanishes).

Adding a fourth‑order term c4x4c_4 x^4c4​x4

The fourth derivative of cos⁡x\cos xcosx is cos⁡x\cos xcosx, which equals 111 at x=0x=0x=0. The fourth derivative of x4x^4x4 after four applications of the power rule is 1⋅2⋅3⋅4=241\cdot2\cdot3\cdot4 = 241⋅2⋅3⋅4=24. Thus the coefficient must satisfy 24 c4=124\,c_4 = 124c4​=1, so c4=124c_4 = \frac{1}{24}c4​=241​. Therefore

P4(x)=1−12x2+124x4P_4(x) = 1 - \frac12 x^2 + \frac{1}{24} x^4P4​(x)=1−21​x2+241​x4

gives an even better approximation near x=0x=0x=0.

Factorials appear naturally: When taking nnn derivatives of xnx^nxn, we get n!n!n! (the product 1⋅2⋅3⋯n1\cdot2\cdot3\cdots n1⋅2⋅3⋯n). To match the nnnth derivative of the original function, we must divide the derivative value by n!n!n!.

Why adding higher terms doesn’t change lower coefficients

When plugging x=0x=0x=0, any term of degree >n>n>n has an nnnth derivative that still contains a factor of xxx and therefore evaluates to 000. Thus each coefficient is determined independently by the corresponding derivative.


General Taylor Polynomial Formula

Expansion near x=0x=0x=0 (Maclaurin polynomial)

If we have a function fff with derivatives at 000, the nnnth‑degree Taylor polynomial is

Pn(x)=f(0)+f′(0) x+f′′(0)2!x2+f′′′(0)3!x3+⋯+f(n)(0)n!xn.P_n(x) = f(0) + f'(0)\,x + \frac{f''(0)}{2!}x^2 + \frac{f'''(0)}{3!}x^3 + \cdots + \frac{f^{(n)}(0)}{n!}x^n.Pn​(x)=f(0)+f′(0)x+2!f′′(0)​x2+3!f′′′(0)​x3+⋯+n!f(n)(0)​xn.

Interpretation: The constant term matches the function value. The linear term matches the slope. The quadratic term matches the curvature, and so on. The more terms we include, the more closely the polynomial hugs the original function near 000.

Expansion near a general point x=ax=ax=a

To approximate fff near x=ax=ax=a, we write the polynomial in powers of (x−a)(x-a)(x−a):

Pn(x)=f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+⋯+f(n)(a)n!(x−a)n.P_n(x) = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \cdots + \frac{f^{(n)}(a)}{n!}(x-a)^n.Pn​(x)=f(a)+f′(a)(x−a)+2!f′′(a)​(x−a)2+⋯+n!f(n)(a)​(x−a)n.

This form ensures that at x=ax=ax=a, all the (x−a)(x-a)(x−a) factors vanish, leaving only the term that matches the corresponding derivative.


Examples: Taylor Polynomials of Common Functions

Exponential function exe^xex near x=0x=0x=0

All derivatives of exe^xex are exe^xex, and at 000 they all equal 111. Therefore

ex≈1+x+x22!+x33!+x44!+⋯ .e^x \approx 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \cdots.ex≈1+x+2!x2​+3!x3​+4!x4​+⋯.

These are the Taylor polynomials for exe^xex.

Cosine and sine functions

The derivatives of cos⁡x\cos xcosx at 000 follow the periodic pattern 1, 0, −1, 0, 1, 0,…1,\,0,\,-1,\,0,\,1,\,0,\dots1,0,−1,0,1,0,…. Dividing by factorials gives the series

cos⁡x=1−x22!+x44!−x66!+⋯ .\cos x = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots.cosx=1−2!x2​+4!x4​−6!x6​+⋯.

Similarly,

sin⁡x=x−x33!+x55!−x77!+⋯ .\sin x = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots.sinx=x−3!x3​+5!x5​−7!x7​+⋯.

Geometric Interpretation of the Second‑Order Term

The second‑order term can be understood using the fundamental theorem of calculus. Consider an area function F(x)F(x)F(x) that gives the area under a graph y=f(t)y=f(t)y=f(t) from a fixed left point aaa to a variable right point xxx. The fundamental theorem states that F′(x)=f(x)F'(x)=f(x)F′(x)=f(x), i.e., the graph itself is the derivative of the area.

If we know F(a)F(a)F(a) and want to approximate F(x)F(x)F(x) for x>ax>ax>a, the change F(x)−F(a)F(x)-F(a)F(x)−F(a) can be broken into:

  • A rectangle of height f(a)f(a)f(a) and width (x−a)(x-a)(x−a). That’s f(a)(x−a)=F′(a)(x−a)f(a)(x-a) = F'(a)(x-a)f(a)(x−a)=F′(a)(x−a).

  • A small triangle on top of the rectangle. The triangle’s base is (x−a)(x-a)(x−a) and its height is the slope of fff at aaa times (x−a)(x-a)(x−a), i.e., f′(a)(x−a)=F′′(a)(x−a)f'(a)(x-a) = F''(a)(x-a)f′(a)(x−a)=F′′(a)(x−a). The area of this triangle is 12base×height=12F′′(a)(x−a)2\frac12 \text{base}\times\text{height} = \frac12 F''(a)(x-a)^221​base×height=21​F′′(a)(x−a)2.

So the full approximation is

F(x)≈F(a)+F′(a)(x−a)+12F′′(a)(x−a)2,F(x) \approx F(a) + F'(a)(x-a) + \frac12 F''(a)(x-a)^2,F(x)≈F(a)+F′(a)(x−a)+21​F′′(a)(x−a)2,

which is exactly the second‑order Taylor polynomial for FFF. Each term has a visible geometric meaning: the rectangle gives the first‑order term, the triangle gives the second‑order term.


From Taylor Polynomials to Taylor Series

A Taylor series is obtained by letting the number of terms go to infinity:

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

Infinite sums are defined only if they converge, i.e., if the partial sums (the Taylor polynomials) approach a finite limit as more terms are added.

Example: exe^xex converges everywhere

For any real xxx, the Taylor series of exe^xex about 000 converges to exe^xex. This includes inputs far from 000, even though all derivative information was taken at x=0x=0x=0.

Example: ln⁡x\ln xlnx has limited convergence

The Taylor series of ln⁡x\ln xlnx about x=1x=1x=1 is

ln⁡x≈(x−1)−(x−1)22+(x−1)33−(x−1)44+⋯ .\ln x \approx (x-1) - \frac{(x-1)^2}{2} + \frac{(x-1)^3}{3} - \frac{(x-1)^4}{4} + \cdots.lnx≈(x−1)−2(x−1)2​+3(x−1)3​−4(x−1)4​+⋯.

This series converges only for 0<x≤20 < x \le 20<x≤2 (i.e., ∣x−1∣<1|x-1|<1∣x−1∣<1). Outside this interval, adding more terms does not approach a limit; the series diverges.

Radius of convergence: The maximum distance RRR such that the Taylor series converges for ∣x−a∣<R|x-a|<R∣x−a∣<R is called the radius of convergence. Inside this disk (interval on the real line) the series represents the function; outside it does not.


Key Intuition

Taylor series translate derivative information at a single point into approximation information around that point. All the higher‑order derivatives evaluated at one location encode the behavior of the function in a whole neighborhood. The resulting polynomials (and the infinite series) are powerful tools because they turn complicated functions into manageable polynomial expressions, valid within their radius of convergence.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent