Calculators.Life Calculator
Math

Taylor & Maclaurin Series Calculator

Input Parameters

Scenarios
Select the standard analytical function to expand
Center of expansion (a = 0 gives the Maclaurin series)
Maximum degree of the Taylor polynomial (0 to 12)
Point x at which to approximate f(x) and evaluate truncation error

Computed Results

Approximation P_n(x)
0.4794
Taylor Polynomial P_n(x)x - 0.166667x^3 + 0.008333x^5
Exact Value f(x)0.4794
Absolute Truncation Error0

The Taylor series calculator determines the polynomial expansion of standard mathematical functions around a specific center point. By inputting a function, an expansion point, and a maximum degree, you can generate the Taylor or Maclaurin polynomial, evaluate the approximation at a chosen point, and calculate the absolute truncation error compared to the exact function value.

How to Use the Calculator

Follow these steps to generate a polynomial expansion and evaluate its accuracy:

  1. Select the Function f(x): Choose the base mathematical function you want to expand, such as sine, cosine, exponential, or geometric.
  2. Set the Expansion Point (a): Enter the center point for the expansion. Setting this value to 0 generates a Maclaurin series.
  3. Choose the Order (Degree n): Input the maximum degree for the Taylor polynomial. The calculator supports degrees from 0 up to 12.
  4. Enter the Evaluation Point (x): Provide the specific x-value where you want to test the polynomial. The calculator will compare the polynomial's result at this point against the exact function value.

Formula and Calculation Method

A Taylor series approximates a function as an infinite sum of terms calculated from the values of its derivatives at a single point. When truncated to a specific degree n, it becomes a Taylor polynomial.

P_n(x) = f(a) + f'(a)(x − a) + [f''(a) / 2!](x − a)² + ... + [f⁽ⁿ⁾(a) / n!](x − a)ⁿ

Where:

The absolute truncation error is calculated by taking the absolute difference between the exact function value f(x) and the polynomial approximation P_n(x).

Inputs and Outputs

FieldTypeDescription
Function f(x)InputThe standard analytical function to expand (e.g., sin, cos, exp).
Expansion Point (a)InputThe center of the expansion.
Order (Degree n)InputThe highest power of the polynomial (maximum 12).
Evaluation Point (x)InputThe value at which the approximation is tested.
Taylor Polynomial P_n(x)OutputThe resulting algebraic expression of the polynomial.
Approximation P_n(x)OutputThe numerical value of the polynomial evaluated at x.
Exact Value f(x)OutputThe true mathematical value of the function at x.
Absolute Truncation ErrorOutputThe absolute difference between the exact value and the approximation.

Verified Scenario Walkthroughs

Default Scenario: Sine Function Maclaurin Series

If you expand the sine function centered at 0 (a Maclaurin series) up to the 5th degree, and evaluate it at x = 0.5, the calculator generates the polynomial x − 0.166667x³ + 0.008333x⁵. The polynomial approximation is 0.47942708, while the exact value of sin(0.5) is 0.47942554. This results in a very small absolute truncation error of 0.00000154.

Low Order Exponential Expansion

Consider expanding the exponential function (exp) centered at 0 to the 2nd degree, evaluated at x = 0.1. The resulting polynomial is 1 + x + 0.5x². Evaluating this at 0.1 gives an approximation of 1.105. The exact value is 1.10517092, leaving an absolute truncation error of 0.00017092.

Practical Use Cases

Taylor and Maclaurin series are fundamental tools in calculus and numerical analysis. They are frequently used to approximate complex functions that are difficult to compute directly. By converting transcendental functions like sine or natural logarithms into simple polynomials, computers and calculators can evaluate them efficiently using basic arithmetic operations. Additionally, analyzing the truncation error helps determine how many terms are required to achieve a desired level of precision in physics and engineering models.

Frequently Asked Questions

What is the difference between a Taylor series and a Maclaurin series?

A Maclaurin series is simply a specific type of Taylor series where the expansion point (a) is exactly 0. If you center a Taylor series at any other number, it remains a Taylor series.

What does the absolute truncation error represent?

The absolute truncation error measures the difference between the exact value of the function and the estimated value provided by the Taylor polynomial. A smaller error indicates a more accurate approximation.

Why is the maximum degree limited to 12?

The calculator limits the order to 12 to maintain numerical stability. Higher-order derivatives and factorials grow extremely large, which can lead to floating-point precision issues and inaccurate approximations in standard computing environments.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.