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θ, where θ is the angle. This cosine term makes the analysis messy. However, for small angles, cosθ can be approximated by 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 cosx near x=0
We seek a quadratic polynomial P2(x)=c0+c1x+c2x2 that "spoons" with cosx near x=0.
1. Matching the function value at 0
At x=0, cos0=1. So we require P2(0)=c0=1.
2. Matching the first derivative (slope) at 0
The derivative of cosx is −sinx, and at x=0, −sin0=0. The derivative of P2 is P2′(x)=c1+2c2x. At x=0, this equals c1. To match slopes, set c1=0.
3. Matching the second derivative (curvature) at 0
The second derivative of cosx is −cosx, and at x=0, −cos0=−1. The second derivative of P2 is P2′′(x)=2c2. So 2c2=−1, giving c2=−21.
Thus the best quadratic approximation is
Key idea: Each coefficient in the polynomial controls one piece of derivative information at the point of expansion. c0 controls the value, c1 controls the slope, c2 controls the rate of change of the slope.
Extending to Higher Orders
Adding a cubic term c3x3
The third derivative of cosx is sinx, which equals 0 at x=0. The third derivative of a cubic polynomial at 0 is 1⋅2⋅3⋅c3=6c3. Setting these equal gives c3=0. So the quadratic is also the best cubic approximation (the cubic term vanishes).
Adding a fourth‑order term c4x4
The fourth derivative of cosx is cosx, which equals 1 at x=0. The fourth derivative of x4 after four applications of the power rule is 1⋅2⋅3⋅4=24. Thus the coefficient must satisfy 24c4=1, so c4=241. Therefore
gives an even better approximation near x=0.
Factorials appear naturally: When taking n derivatives of xn, we get n! (the product 1⋅2⋅3⋯n). To match the nth derivative of the original function, we must divide the derivative value by n!.
Why adding higher terms doesn’t change lower coefficients
When plugging x=0, any term of degree >n has an nth derivative that still contains a factor of x and therefore evaluates to 0. Thus each coefficient is determined independently by the corresponding derivative.
General Taylor Polynomial Formula
Expansion near x=0 (Maclaurin polynomial)
If we have a function f with derivatives at 0, the nth‑degree Taylor polynomial is
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 0.
Expansion near a general point x=a
To approximate f near x=a, we write the polynomial in powers of (x−a):
This form ensures that at x=a, all the (x−a) factors vanish, leaving only the term that matches the corresponding derivative.
Examples: Taylor Polynomials of Common Functions
Exponential function ex near x=0
All derivatives of ex are ex, and at 0 they all equal 1. Therefore
These are the Taylor polynomials for ex.
Cosine and sine functions
The derivatives of cosx at 0 follow the periodic pattern 1,0,−1,0,1,0,…. Dividing by factorials gives the series
Similarly,
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) that gives the area under a graph y=f(t) from a fixed left point a to a variable right point x. The fundamental theorem states that F′(x)=f(x), i.e., the graph itself is the derivative of the area.
If we know F(a) and want to approximate F(x) for x>a, the change F(x)−F(a) can be broken into:
A rectangle of height f(a) and width (x−a). That’s f(a)(x−a)=F′(a)(x−a).
A small triangle on top of the rectangle. The triangle’s base is (x−a) and its height is the slope of f at a times (x−a), i.e., f′(a)(x−a)=F′′(a)(x−a). The area of this triangle is 21base×height=21F′′(a)(x−a)2.
So the full approximation is
which is exactly the second‑order Taylor polynomial for F. 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:
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: ex converges everywhere
For any real x, the Taylor series of ex about 0 converges to ex. This includes inputs far from 0, even though all derivative information was taken at x=0.
Example: lnx has limited convergence
The Taylor series of lnx about x=1 is
This series converges only for 0<x≤2 (i.e., ∣x−1∣<1). Outside this interval, adding more terms does not approach a limit; the series diverges.
Radius of convergence: The maximum distance R such that the Taylor series converges for ∣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.