All the Tools You Need

Maclaurin Series Calculator - Taylor Series Expansion | Toolivaa

Maclaurin Series Calculator

Maclaurin Series Expansion

Expand functions into infinite power series around x=0. Calculate approximations using derivatives at zero with error bounds.

f(x) = f(0) + f'(0)x + f''(0)x²/2! + f'''(0)x³/3! + ...
sin(x)
cos(x)
ln(1+x)
arctan(x)
Custom
Maclaurin series is Taylor series centered at 0. More terms give better approximation but slower convergence.

Maclaurin Series Results

sin(x) = x - x³/3! + x⁵/5! - x⁷/7! + ...

Approximation at x = 0.5

0.4794255386

Using 5 terms of the series

Exact value: 0.4794255386

Error: 0.0000000000

Step 1: Compute derivatives at x = 0

f(0) = 0

f(x) = sin(x), f(0) = sin(0) = 0

f'(0) = 1

f'(x) = cos(x), f'(0) = cos(0) = 1

f''(0) = 0

f''(x) = -sin(x), f''(0) = -sin(0) = 0
Step 2: Apply Maclaurin formula
Step 3: Construct series up to n terms
Step 4: Evaluate at x = 0.5
Step 5: Calculate error using remainder term

Convergence Information

Radius of convergence:

Interval of convergence: (-∞, ∞)

Series type: Alternating

Common Maclaurin Series

sin(x) = x - x³/3! + x⁵/5! - x⁷/7! + ...
cos(x) = 1 - x²/2! + x⁴/4! - x⁶/6! + ...
eˣ = 1 + x + x²/2! + x³/3! + x⁴/4! + ...
ln(1+x) = x - x²/2 + x³/3 - x⁴/4 + ... (|x| < 1)

Maclaurin series approximates functions using polynomials. The approximation improves with more terms but may diverge outside the convergence interval.

What is Maclaurin Series?

Maclaurin Series is a special case of Taylor series expansion centered at zero (a=0). It represents a function as an infinite sum of terms calculated from the derivatives of the function at zero:

f(x) = f(0) + f'(0)x + f''(0)x²/2! + f'''(0)x³/3! + ... + f⁽ⁿ⁾(0)xⁿ/n! + ...

Maclaurin series are used to approximate functions that are difficult to compute directly, solve differential equations, and analyze function behavior near zero.

Common Maclaurin Series Expansions

sin(x)

x - x³/3! + x⁵/5! - ...

All real x

Alternating odd powers

cos(x)

1 - x²/2! + x⁴/4! - ...

All real x

Alternating even powers

1 + x + x²/2! + x³/3! + ...

All real x

All positive terms

ln(1+x)

x - x²/2 + x³/3 - x⁴/4 + ...

|x| < 1

Alternating series

Maclaurin Series Formula and Derivation

General Formula

The Maclaurin series for a function f(x) with derivatives of all orders at 0 is:

f(x) = Σ[n=0 to ∞] [f⁽ⁿ⁾(0) / n!] × xⁿ

Step-by-Step Derivation for sin(x)

  1. Function: f(x) = sin(x)
  2. Derivatives:
    • f(0) = sin(0) = 0
    • 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
  3. Pattern: Derivatives cycle every 4 terms: 0, 1, 0, -1, 0, 1, 0, -1, ...
  4. Series: Only odd derivatives (1st, 3rd, 5th, ...) are non-zero: ±1
  5. Result: sin(x) = x - x³/3! + x⁵/5! - x⁷/7! + ...

Applications of Maclaurin Series

Mathematics & Physics

  • Function approximation: Compute values of transcendental functions
  • Limit calculations: Evaluate limits using series expansions
  • Differential equations: Power series solutions to ODEs
  • Physics computations: Small angle approximations (sinθ ≈ θ, cosθ ≈ 1 - θ²/2)

Engineering & Computer Science

  • Numerical analysis: Algorithm implementations for special functions
  • Signal processing: Fourier series connections
  • Computer graphics: Fast trigonometric computations
  • Error analysis: Bounding approximation errors

Economics & Finance

  • Compound interest: eˣ series for continuous compounding
  • Option pricing: Taylor approximations in Black-Scholes
  • Risk analysis: Sensitivity analysis using derivatives
  • Economic models: Linearization of nonlinear systems

Convergence Properties

FunctionMaclaurin SeriesConvergence IntervalConvergence Type
sin(x)x - x³/3! + x⁵/5! - ...(-∞, ∞)Converges for all x
cos(x)1 - x²/2! + x⁴/4! - ...(-∞, ∞)Converges for all x
1 + x + x²/2! + x³/3! + ...(-∞, ∞)Converges for all x
ln(1+x)x - x²/2 + x³/3 - x⁴/4 + ...(-1, 1]Conditional convergence
1/(1-x)1 + x + x² + x³ + ...(-1, 1)Geometric series
arctan(x)x - x³/3 + x⁵/5 - x⁷/7 + ...[-1, 1]Alternating series

Error Analysis and Remainder Term

Lagrange Remainder

The error in using n terms of Maclaurin series is given by:

Rₙ(x) = [f⁽ⁿ⁺¹⁾(c) / (n+1)!] × xⁿ⁺¹

where c is some number between 0 and x. This provides an upper bound for the approximation error.

Example: Error bound for sin(0.5) using 3 terms

  1. Series: sin(0.5) ≈ 0.5 - 0.5³/6 + 0.5⁵/120
  2. Next derivative: f⁽⁷⁾(x) = -cos(x), max |f⁽⁷⁾(c)| ≤ 1
  3. Error bound: |R₆| ≤ (1/5040) × 0.5⁷ ≈ 0.000001
  4. Actual error: Much smaller than bound

Common Examples

sin(0.5)

5 terms approximation
≈ 0.4794255386

e¹ = e

10 terms approximation
≈ 2.718281828

cos(1)

6 terms approximation
≈ 0.5403023059

Related Calculators

Frequently Asked Questions (FAQs)

Q: What's the difference between Maclaurin and Taylor series?

A: Maclaurin series is a special case of Taylor series where the expansion is centered at 0 (a=0). Taylor series can be centered at any point a, while Maclaurin series is specifically at a=0. All Maclaurin series are Taylor series, but not vice versa.

Q: How many terms do I need for accurate approximation?

A: It depends on the function and x value. For sin(x) and cos(x), 5-10 terms give excellent accuracy for |x| < 2. For eˣ, more terms are needed as x increases. Use the remainder term to estimate required terms for desired accuracy.

Q: Can all functions be expanded as Maclaurin series?

A: No, only functions that are infinitely differentiable at 0 have Maclaurin series. Even then, the series may converge only in a limited interval or not converge to the function outside that interval (e.g., ln(1+x) only converges for |x| < 1).

Q: How do I find the radius of convergence?

A: Use the ratio test: R = lim[n→∞] |aₙ/aₙ₊₁|, where aₙ are the series coefficients. For power series Σ aₙxⁿ, the radius is 1/lim sup |aₙ|¹/ⁿ. Test endpoints separately for convergence/divergence.

Master series expansions with Toolivaa's free Maclaurin Series Calculator, and explore more calculus tools in our Math Calculators collection.

Scroll to Top