CALCULUS 2 • SEQUENCES & SERIES

Taylor & Maclaurin Series — Finding Taylor or Maclaurin Series for a Function

Represent any smooth function as an infinite polynomial by harnessing its derivatives at a single point.

Historical Context & Motivation

Long before modern computing, mathematicians faced a fundamental challenge: how to evaluate transcendental functions like sin x, eˣ, and ln x at arbitrary points. There were no calculators, no lookup tables for every possible input — and yet astronomers, navigators, and physicists needed numerical answers. The breakthrough came from recognizing that any sufficiently smooth function can be represented as an infinite polynomial, whose coefficients are determined entirely by the function's derivatives at a single point. This idea, which we now call a Taylor series, transformed analysis and remains one of the most powerful tools in all of mathematics.

1671
James Gregory's Series Expansions
Scottish mathematician James Gregory discovered series expansions for arctan x and several trigonometric functions, anticipating the general theory by decades. His work demonstrated that transcendental functions could be expressed as power series.
1715
Brook Taylor's Methodus Incrementorum Directa et Inversa
Brook Taylor published the general formula for expanding a function about an arbitrary point a, establishing the framework that bears his name. His result unified many previously known special-case expansions into a single, elegant theorem.
1742
Colin Maclaurin's Treatise of Fluxions
Colin Maclaurin systematically used the special case a = 0 of Taylor's formula, providing extensive applications and examples. The expansion about the origin became known as the Maclaurin series in his honor.
1821
Cauchy's Rigorous Foundations
Augustin-Louis Cauchy formalized convergence criteria and the remainder term, placing Taylor series on a rigorous analytical footing. His work clarified when and where a Taylor series actually converges to the original function.

The central question these mathematicians pursued is remarkably concrete: given a function f(x) that may be complicated to evaluate directly, can we construct a polynomial — or an infinite series of polynomial terms — that reproduces f(x) exactly within some interval? And if so, how do we systematically determine each coefficient of that polynomial? The answer, as we shall see, lies entirely in the derivatives of f evaluated at a single base point.

Core Principles & Definitions

The construction of a Taylor series rests on a beautifully simple idea: if a function f(x) can be written as a power series, then the coefficients of that series are uniquely determined by the derivatives of f at the center of expansion. This principle connects the local behavior of a function — captured by its derivatives at a point — to its global behavior over an interval. Before diving into computation, it is essential to internalize the foundational concepts that make this machinery work.

1

Taylor Series at x = a

If f has derivatives of all orders at x = a, its Taylor series is ∑ f⁽ⁿ⁾(a)/n! · (x − a)ⁿ from n = 0 to ∞. Each term encodes the nth derivative's contribution, scaled by the factorial to prevent the coefficients from growing uncontrollably.
2

Maclaurin Series (a = 0)

A Maclaurin series is simply a Taylor series centered at a = 0, yielding ∑ f⁽ⁿ⁾(0)/n! · xⁿ. Many standard functions — eˣ, sin x, cos x — have their most elegant representations as Maclaurin series because their derivatives at the origin follow clean patterns.
3

Radius of Convergence

A Taylor series converges on some interval |x − a| < R, where R is the radius of convergence. Within this interval the partial sums approach f(x); outside it the series diverges. The ratio or root test is typically used to determine R.
4

Taylor Polynomial of Degree n

The nth-degree Taylor polynomial Tₙ(x) is the partial sum of the first n + 1 terms of the Taylor series. It provides an approximation to f(x) near x = a, and the accuracy improves as n increases, controlled by the remainder Rₙ(x).
KEY TAKEAWAY
Think of a Taylor series like a GPS recalibrating your route. At your current position (the center a), the GPS knows exactly where you are (the function value), which direction you're heading (the first derivative), how sharply the road curves (the second derivative), and so on. Each successive derivative adds another layer of information, letting the 'polynomial route' match the actual road more and more closely. The more derivatives you include, the further ahead the approximation stays accurate — much like how a GPS with better terrain data can predict the road reliably for longer stretches.

Visual Explanation — Successive Taylor Approximations

The power of a Taylor series becomes viscerally clear when you plot successive Taylor polynomials alongside the original function. Each additional term in the expansion draws the polynomial approximation closer to the true curve, hugging it over a wider interval. The diagram below illustrates this for f(x) = eˣ centered at a = 0, showing how the Maclaurin polynomials T₁, T₃, and T₅ progressively improve the approximation.

The solid curve is f(x) = eˣ. The dashed curves are the Maclaurin polynomials T₁ (cyan), T₃ (violet), and T₅ (pink). Notice how each successive polynomial approximation matches the true function over a progressively wider interval around the center a = 0 (amber dot).

Observe the behavior near the center point a = 0: all three polynomials pass through the point (0, 1) and share the same tangent line there, because every Taylor polynomial agrees with f through as many derivatives as it includes. The linear approximation T₁ = 1 + x captures only the slope, diverging quickly. The cubic T₃ adds curvature information from f″(0) and f‴(0), staying accurate on roughly (−1.5, 1.5). The quintic T₅ extends fidelity further still. In the limit, the full Maclaurin series ∑ xⁿ/n! converges to eˣ for all real x, giving it an infinite radius of convergence.

Mathematical Framework

We now formalize the construction. Suppose f is infinitely differentiable at x = a. Our goal is to determine the coefficients c₀, c₁, c₂, … in a power series representation f(x) = ∑ cₙ(x − a)ⁿ. The key insight is that substituting x = a into the series and its successive derivatives isolates each coefficient one at a time.

TAYLOR SERIES FORMULA
f(x) = ∑ [f⁽ⁿ⁾(a) / n!] · (x − a)ⁿ, n = 0, 1, 2, …
f⁽ⁿ⁾(a) denotes the nth derivative of f evaluated at x = a; n! = n × (n−1) × … × 1 is the factorial; (x − a)ⁿ centers the polynomial at a.
MACLAURIN SERIES (a = 0)
f(x) = ∑ [f⁽ⁿ⁾(0) / n!] · xⁿ = f(0) + f′(0)x + f″(0)x²/2! + f‴(0)x³/3! + …
This is the most common form encountered in practice. The first few terms give: c₀ = f(0), c₁ = f′(0), c₂ = f″(0)/2, c₃ = f‴(0)/6.

Deriving the Coefficients

To see why cₙ = f⁽ⁿ⁾(a)/n!, assume f(x) = c₀ + c₁(x − a) + c₂(x − a)² + c₃(x − a)³ + …. Setting x = a kills every term with (x − a) and leaves f(a) = c₀. Now differentiate once: f′(x) = c₁ + 2c₂(x − a) + 3c₃(x − a)² + …, and again set x = a to get f′(a) = c₁. Differentiating a second time gives f″(x) = 2c₂ + 6c₃(x − a) + …, so f″(a) = 2c₂, which means c₂ = f″(a)/2!. In general, the nth derivative produces n! · cₙ as the surviving constant, so cₙ = f⁽ⁿ⁾(a)/n!.

TAYLOR'S REMAINDER (LAGRANGE FORM)
Rₙ(x) = f⁽ⁿ⁺¹⁾(c) / (n+1)! · (x − a)ⁿ⁺¹ for some c between a and x
The remainder Rₙ(x) = f(x) − Tₙ(x) quantifies the error of the nth-degree Taylor polynomial. If Rₙ(x) → 0 as n → ∞ for all x in an interval, the Taylor series converges to f(x) on that interval.
Important Distinction
Having derivatives of all orders at x = a is necessary to write down the Taylor series, but it is not sufficient to guarantee convergence to f(x). The classic counterexample is f(x) = e^(−1/x²) for x ≠ 0 and f(0) = 0: all derivatives at 0 are zero, so the Maclaurin series is identically 0, yet the function is nonzero for every x ≠ 0. Always verify convergence — typically via the remainder or the ratio test.

Essential Maclaurin Series & Their Patterns

Several functions appear so frequently that their Maclaurin series should be committed to memory. Each exhibits a distinctive pattern in its coefficients — alternating signs, missing terms, or factorial growth — that reflects the derivative structure of the underlying function. The table below collects the most important standard series, along with their radii of convergence.

Standard Maclaurin series and their radii of convergence
FunctionMaclaurin SeriesRadius R
∑ xⁿ/n! = 1 + x + x²/2! + x³/3! + …R = ∞
sin x∑ (−1)ⁿ x²ⁿ⁺¹/(2n+1)! = x − x³/3! + x⁵/5! − …R = ∞
cos x∑ (−1)ⁿ x²ⁿ/(2n)! = 1 − x²/2! + x⁴/4! − …R = ∞
1/(1 − x)∑ xⁿ = 1 + x + x² + x³ + …R = 1
ln(1 + x)∑ (−1)ⁿ⁺¹ xⁿ/n = x − x²/2 + x³/3 − …R = 1
arctan x∑ (−1)ⁿ x²ⁿ⁺¹/(2n+1) = x − x³/3 + x⁵/5 − …R = 1
This flowchart outlines the systematic procedure for constructing a Maclaurin series. The side panels show how the general procedure specializes for eˣ (left, cyan) and sin x (right, pink). For eˣ, every derivative at 0 equals 1, producing the clean form ∑ xⁿ/n!. For sin x, the derivatives cycle through 0, 1, 0, −1, so only odd-power terms survive.

A powerful technique for generating new series is algebraic manipulation of known series. For instance, replacing x with −x² in the geometric series 1/(1−x) = ∑ xⁿ immediately yields 1/(1+x²) = ∑ (−1)ⁿ x²ⁿ. Term-by-term integration of this result produces the Maclaurin series for arctan x. Similarly, multiplying, composing, or differentiating known series often provides the fastest route to a new expansion, bypassing tedious derivative calculations entirely.

Worked Example — Maclaurin Series for f(x) = cos x

Let us build the Maclaurin series for f(x) = cos x from scratch, illustrating each step of the systematic procedure introduced above. This example demonstrates how the cyclical nature of cosine's derivatives produces the characteristic alternating-sign, even-power pattern.

Find the Maclaurin series for f(x) = cos x
1
Step 1 — Compute successive derivatives at x = 0The derivatives of cos x cycle with period 4: f(x) = cos x → f(0) = 1; f′(x) = −sin x → f′(0) = 0; f″(x) = −cos x → f″(0) = −1; f‴(x) = sin x → f‴(0) = 0; f⁽⁴⁾(x) = cos x → f⁽⁴⁾(0) = 1. The pattern then repeats: 1, 0, −1, 0, 1, 0, −1, 0, ….
f⁽ⁿ⁾(0) cycles: 1, 0, −1, 0
2
Step 2 — Form the coefficients cₙ = f⁽ⁿ⁾(0)/n!Since every odd-order derivative evaluates to 0 at x = 0, all odd-powered terms vanish. The nonzero coefficients are: c₀ = 1/0! = 1, c₂ = (−1)/2! = −1/2, c₄ = 1/4! = 1/24, c₆ = (−1)/6! = −1/720, and so on.
c₂ₖ = (−1)ᵏ/(2k)!, all odd cₙ = 0
3
Step 3 — Identify the pattern and write the seriesCollecting only the surviving even-index terms, we re-index with k = 0, 1, 2, …. The general term is (−1)ᵏ x²ᵏ/(2k)!. Thus cos x = 1 − x²/2! + x⁴/4! − x⁶/6! + ….
cos x = ∑ (−1)ᵏ x²ᵏ/(2k)!, k = 0, 1, 2, …
4
Step 4 — Determine the radius of convergenceApplying the ratio test to the absolute value of the general term: |aₖ₊₁/aₖ| = |x|² / ((2k+2)(2k+1)) → 0 as k → ∞ for every fixed x. Since the limit is 0 < 1 for all x, the series converges for all real numbers.
R = ∞ (converges for all x ∈ ℝ)
5
Step 5 — Verify with a numerical checkAt x = π/3, the exact value is cos(π/3) = 0.5. Using the first four nonzero terms: 1 − (π/3)²/2 + (π/3)⁴/24 − (π/3)⁶/720 = 1 − 0.5483 + 0.0501 − 0.0018 ≈ 0.5000. The four-term approximation is accurate to four decimal places, confirming the rapid convergence near the origin.
T₆(π/3) ≈ 0.5000 ✓

Strategies for Finding Taylor Series — Strengths & Limitations

There is rarely a single best way to find the Taylor series of a function. Depending on the function's complexity, one strategy may be far more efficient than another. The direct derivative-and-substitute method is universally applicable but can become computationally brutal for functions whose derivatives grow in complexity. Algebraic manipulation of known series — substitution, multiplication, differentiation, or integration — is often much faster but requires recognizing the connection to a standard series. The table below compares the principal methods.

Comparison of methods for constructing Taylor/Maclaurin series
MethodWhen to UseLimitations
Direct computationWhen no known series applies; when only a few terms are needed. Always works if f is smooth.Derivatives can become extremely complicated (e.g., f(x) = tan x). Identifying the general pattern for cₙ may be difficult.
Substitution into a known seriesReplace x with g(x) in a standard series, e.g., e^(−x²) from eˣ by substituting u = −x².Only works when the function can be expressed as a composition with a function whose series is known.
Term-by-term differentiationIf ∫f(x)dx or a derivative of f has a known series, differentiate term by term. Useful for 1/(1−x)² from the geometric series.Radius of convergence is preserved, but behavior at endpoints must be re-checked.
Term-by-term integrationIf f′(x) has a known series, integrate to get f. Key for ln(1+x), arctan x.Must determine the constant of integration (usually by evaluating at x = 0). Endpoint convergence may change.
Multiplication / division of seriesMultiply known series (e.g., eˣ sin x) or perform long division (e.g., tan x = sin x / cos x).Produces terms one at a time; finding the general coefficient formula can be impractical. Best for a finite number of terms.
KEY TAKEAWAY
Think of building a Taylor series like assembling furniture. The 'direct computation' method is like manufacturing every screw from raw metal — always possible, but labor-intensive. Using known series as building blocks is like working with a modular kit: you snap standard components together via substitution, differentiation, or multiplication. An experienced practitioner's first instinct is always to check whether the function can be related to a standard series before resorting to brute-force derivative calculation.

Connection to Advanced Theory — Taylor Series at Arbitrary Centers & Complex Analysis

While Maclaurin series (centered at a = 0) are the most frequently encountered in a first course, many applications demand expansion about an arbitrary point. Approximating f(x) = √x near x = 4, for instance, requires a Taylor series centered at a = 4 because √x is not even defined at x = 0 (in the sense of having a convergent Maclaurin series). More broadly, Taylor series serve as the gateway to analytic function theory, where complex analysis reveals the deep reason behind radii of convergence: R equals the distance from the center a to the nearest singularity in the complex plane.

From Calculus 2 to advanced analysis
ConceptCalculus 2 PerspectiveAdvanced Perspective
Radius of convergenceFound via ratio or root test; a mechanical computation.Equals the distance to the nearest complex singularity. Example: 1/(1+x²) has R = 1 because of singularities at x = ±i.
Taylor polynomial errorBounded by the Lagrange remainder; useful for estimating approximation accuracy.Cauchy's integral formula provides exact remainder as a contour integral, sharpening error bounds.
Non-polynomial centerTaylor series about a ≠ 0 with (x−a)ⁿ terms; computed via the same derivative formula.Laurent series generalize Taylor series to allow negative powers, enabling expansion near singularities.
ApplicationsApproximation, limit evaluation, definite integrals of non-elementary functions.ODE solutions (Frobenius method), asymptotic analysis, quantum field theory perturbation expansions.

In your next courses — complex analysis, differential equations, and numerical methods — you will encounter Taylor series as a ubiquitous tool. The Frobenius method solves differential equations by assuming a Taylor-like series solution and determining coefficients recursively. Numerical algorithms such as Runge-Kutta methods are derived by matching Taylor expansion terms to achieve desired accuracy orders. The foundation you build here — systematically computing derivatives, recognizing patterns, and testing convergence — will serve as the computational backbone of those more advanced techniques.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain why the Maclaurin series for sin x contains only odd powers of x, while the Maclaurin series for cos x contains only even powers. Your explanation should reference the derivatives of each function at x = 0.
PROBLEM 2BASIC CALCULATION
Find the Maclaurin series for f(x) = e^(−2x) by substitution into the known series for eˣ. Write the answer in sigma notation and state the radius of convergence.
PROBLEM 3INTERMEDIATE
Find the first four nonzero terms of the Taylor series for f(x) = ln x centered at a = 1. Determine the radius of convergence and the interval of convergence.
PROBLEM 4APPLIED
Use the Maclaurin series for eˣ to evaluate the integral ∫₀¹ e^(−x²) dx to four decimal places. (This integral has no elementary antiderivative.)
PROBLEM 5CRITICAL THINKING
Prove that the Maclaurin series for eˣ converges to eˣ for all x ∈ ℝ by showing that the Lagrange remainder Rₙ(x) → 0 as n → ∞.

Lesson Summary

A Taylor series represents a smooth function f(x) as the infinite power series ∑ f⁽ⁿ⁾(a)/n! · (x − a)ⁿ, where the coefficients are determined by the derivatives at the center a. When a = 0, the series is called a Maclaurin series. The standard procedure involves computing successive derivatives at the center, dividing by the corresponding factorial to form each coefficient, identifying the general pattern, expressing the result in sigma notation, and verifying the radius of convergence via the ratio or root test.

In practice, the most efficient approach is often to manipulate known series — substituting, differentiating, integrating, or multiplying standard expansions for eˣ, sin x, cos x, 1/(1−x), and ln(1+x) — rather than computing derivatives from scratch. The Lagrange remainder Rₙ(x) = f⁽ⁿ⁺¹⁾(c)/(n+1)! · (x−a)ⁿ⁺¹ provides rigorous error bounds, and showing Rₙ → 0 confirms that the series truly equals the function, not merely that it converges to something. These techniques underpin applications from numerical integration of non-elementary functions to differential equation solutions and perturbation methods in physics.

Varsity Tutors • Calculus 2 • Taylor & Maclaurin Series — Finding Taylor or Maclaurin Series for a Function