Taylor Series Calculator

Expand functions into Taylor and Maclaurin series with detailed step-by-step calculations. Perfect for calculus students and mathematicians.

Calculate Taylor Series Expansion

Supported functions: sin, cos, tan, exp (e^x), ln, sqrt, and basic arithmetic
Use 0 for Maclaurin series

Series Expansion Result

What is a Taylor Series?

A Taylor series is a representation of a function as an infinite sum of terms calculated from the values of the function’s derivatives at a single point. Named after mathematician Brook Taylor, this powerful mathematical tool allows us to approximate complex functions with polynomials, making them easier to analyse and compute.

The Taylor series expansion of a function f(x) about a point a is given by the formula:

f(x) = f(a) + f'(a)(x-a) + f”(a)(x-a)²/2! + f”'(a)(x-a)³/3! + …

When the centre point a equals zero, the Taylor series becomes a special case called the Maclaurin series, which simplifies calculations and is particularly useful for common functions like sine, cosine, and exponential functions.

Key Components

  • Function f(x): The original function you want to expand into a series representation
  • Centre Point (a): The point around which the series is expanded; choosing different centres can affect convergence
  • Order (n): The highest power term included in the approximation; higher orders generally provide better accuracy
  • Derivatives: Each term involves the nth derivative of the function evaluated at the centre point

How to Calculate Taylor Series

Calculating a Taylor series expansion involves several systematic steps that combine differentiation and evaluation techniques:

Step 1: Identify Your Function and Centre Point

Choose the function you want to expand and select an appropriate centre point. For periodic functions like sine and cosine, a = 0 often works well. For logarithmic functions, choose a positive centre point where the function is well-defined.

Step 2: Calculate Successive Derivatives

Compute the first, second, third, and higher derivatives of your function. The number of derivatives you need depends on the order of approximation you require. Each derivative provides the coefficient for one term in the series.

Step 3: Evaluate Derivatives at the Centre Point

Substitute your centre point value into each derivative. These numerical values become the coefficients in your Taylor polynomial after dividing by the appropriate factorial.

Step 4: Construct the Series

Combine all terms following the Taylor series formula. Each term takes the form: [f⁽ⁿ⁾(a) / n!] × (x-a)ⁿ, where f⁽ⁿ⁾(a) is the nth derivative evaluated at point a.

Example: sin(x) Maclaurin Series

For f(x) = sin(x) with centre a = 0:
• f(0) = 0
• f'(0) = cos(0) = 1
• f”(0) = -sin(0) = 0
• f”'(0) = -cos(0) = -1

Result: sin(x) ≈ x – x³/6 + x⁵/120 – x⁷/5040 + …

Common Taylor Series Expansions

Several fundamental functions have well-known Taylor series expansions that are widely used in mathematics, physics, and engineering:

Exponential Function

eˣ = 1 + x + x²/2! + x³/3! + x⁴/4! + … = Σ(xⁿ/n!) for all x

Sine Function

sin(x) = x – x³/3! + x⁵/5! – x⁷/7! + … = Σ((-1)ⁿ × x²ⁿ⁺¹/(2n+1)!) for all x

Cosine Function

cos(x) = 1 – x²/2! + x⁴/4! – x⁶/6! + … = Σ((-1)ⁿ × x²ⁿ/(2n)!) for all x

Natural Logarithm

ln(1+x) = x – x²/2 + x³/3 – x⁴/4 + … = Σ((-1)ⁿ⁺¹ × xⁿ/n) for -1 < x ≤ 1

These standard expansions serve as building blocks for more complex calculations and can be manipulated algebraically to derive series for related functions.

Applications of Taylor Series

Taylor series have numerous practical applications across multiple disciplines, from theoretical mathematics to real-world engineering problems:

  • Numerical Approximation: Calculate values of transcendental functions like sin, cos, and exponential to any desired precision, which is how calculators and computers evaluate these functions
  • Differential Equations: Solve complex differential equations by approximating solutions as power series, particularly useful when closed-form solutions are unavailable
  • Physics and Engineering: Linearise non-linear systems near equilibrium points, simplifying analysis of oscillating systems, fluid dynamics, and electromagnetic fields
  • Signal Processing: Approximate complex waveforms and analyse frequency components in telecommunications and audio processing
  • Computer Graphics: Efficiently compute trigonometric and exponential functions needed for 3D transformations and lighting calculations
  • Economics and Finance: Model smooth economic functions and calculate option prices in quantitative finance through series approximations

Frequently Asked Questions

What is the difference between Taylor series and Maclaurin series?

A Maclaurin series is simply a special case of the Taylor series where the centre point is zero (a = 0). Whilst Taylor series can be centred at any point, Maclaurin series are always centred at the origin, making them particularly convenient for analysing function behaviour near zero. Many common functions, such as eˣ, sin(x), and cos(x), have simple and well-known Maclaurin series expansions.

How many terms do I need for an accurate approximation?

The number of terms required depends on three factors: the function being approximated, how far x is from the centre point, and your desired accuracy. Generally, more terms provide better accuracy, but for points close to the centre, even a few terms can give excellent results. For instance, a 5th-order expansion of sin(x) gives accuracy within 0.001 for |x| < 1. Experimentation with different orders helps determine the optimal balance between accuracy and computational efficiency.

What is the radius of convergence?

The radius of convergence defines the interval around the centre point where the Taylor series converges to the actual function value. Outside this radius, the series may diverge or converge to a different value. For example, eˣ and sin(x) have infinite radii of convergence (converge everywhere), whilst ln(1+x) centred at 0 only converges for -1 < x ≤ 1. The radius can be calculated using the ratio test or root test from calculus.

Can Taylor series be used for all functions?

Not all functions can be represented by Taylor series. The function must be infinitely differentiable at the centre point, and the series must converge to the function value. Some functions, like |x| at x = 0, lack the necessary smoothness. Others may have a Taylor series that converges to something other than the original function. Functions that can be represented by their Taylor series everywhere are called analytic functions.

Why does the calculator show different results for different centre points?

Changing the centre point creates a different polynomial approximation that is optimised for that region. A Taylor series centred at a = 2 will be most accurate near x = 2, whilst one centred at a = 0 is most accurate near the origin. The choice of centre should match where you need the best approximation. This flexibility makes Taylor series powerful for local analysis of functions in different domains.

How do I interpret the factorial notation?

The factorial (n!) in Taylor series denominators rapidly increases with n, causing higher-order terms to become progressively smaller. This means 3! = 3×2×1 = 6, whilst 5! = 5×4×3×2×1 = 120. The factorial division ensures the series often converges, as the (x-a)ⁿ growth in the numerator is balanced by the n! growth in the denominator. This mathematical property is fundamental to why Taylor series work as function approximations.

References

Stewart, J. (2015). Calculus: Early Transcendentals (8th ed.). Cengage Learning. Chapter 11: Infinite Sequences and Series.
Thomas, G. B., Weir, M. D., & Hass, J. (2018). Thomas’ Calculus (14th ed.). Pearson. Section 10.8: Taylor and Maclaurin Series.
Apostol, T. M. (1967). Calculus, Volume 1: One-Variable Calculus with an Introduction to Linear Algebra (2nd ed.). John Wiley & Sons. Chapter 12: Taylor’s Formula and Applications.
Rudin, W. (1976). Principles of Mathematical Analysis (3rd ed.). McGraw-Hill. Chapter 8: Some Special Functions.
Kline, M. (1990). Mathematical Thought from Ancient to Modern Times. Oxford University Press. Historical development of power series and Taylor’s theorem.
Scroll to Top