Taylor Series Calculator
Approximate functions using Taylor series expansion. Compare the approximation with the exact value for sin, cos, e^x, and ln(x).
About this calculator
This calculator builds a Taylor polynomial for sin(x), cos(x), eˣ, or ln(x) — chosen via Function — around a chosen Center Point, using the requested Number of Terms, then evaluates that polynomial at x and compares it against the true function value as the Error. Of the numeric inputs, Evaluate at x is the only one with a measurable effect on the Taylor Approximation under a small nudge at the default settings — though switching Function itself moves the approximation more than any single numeric input does, since it swaps the underlying series entirely. That also means Evaluate at x's direction of pull is not fixed: for the default sin(x) series it raises the approximation, but for the cos(x) series the same nudge can lower it instead, since sine and cosine move in opposite directions around most points — a fact about which function is selected, not about Evaluate at x on its own.
Center Point defaults to 0 and gets excluded from that kind of check entirely (a percentage nudge of zero stays zero), while Number of Terms happens to show zero measured effect for an unrelated reason: for the default sin(x) series centered at 0, every even-indexed term is exactly zero (sin's even derivatives at 0 vanish), so nudging the term count from 5 down to 4 drops a term that was already contributing nothing — a coincidence of this particular function and center, not evidence that the term count is generally unimportant. What the calculator does NOT account for: with Number of Terms capped at 15 and no warning when x is evaluated far from the Center Point, the polynomial can diverge wildly from the true function — the calculator's own default sin(x) series reports an "approximation" of about -666.67 at x = 16, even though sin(x) is mathematically bounded between -1 and 1 everywhere.
Inputs
Results
Taylor Approximation
0.83333
How to Use This Calculator
- Select the function to approximate: sin(x), cos(x), e^x, or ln(1+x).
- Enter the center point a (Taylor series expands around this point; Maclaurin series uses a = 0).
- Set the number of terms to include; more terms extend the interval where the approximation is accurate.
- The Taylor polynomial is built from successive derivatives: f(a) + f'(a)(x−a) + f''(a)(x−a)²/2! + …
- The chart overlays the exact function and the Taylor polynomial so you can see how closely they agree near x = a.
- Increasing the number of terms improves accuracy but the series still diverges far from the center for some functions (e.g., ln(1+x) for |x| > 1).
How the result changes with Evaluate at x
| Evaluate at x | Taylor Approximation |
|---|---|
| 0.5 | 0.47917 |
| 0.75 | 0.67969 |
| 1.5 | 0.9375 |
| 2.5 | -0.10417 |
What each input means
- Function
- Function to approximate with Taylor series
- Center Point (a)
- Center of the Taylor expansion (0 for Maclaurin series)
- Number of Terms
- Number of Taylor series terms to include
- Evaluate at x
- Point at which to evaluate the Taylor approximation
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersFunction = 1, Center Point (a) = 0, Number of Terms = 5, Evaluate at x = 1 = 4 input(s) provided
- Calculate Taylor ApproximationTaylor Approximation0.83333 = 0.83333
- Calculate ErrorError0.008138 = 0.008138
- Calculate Last Term CoefficientLast Term Coefficient0 = 0
Engine last updated . Checked against 3 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why does moving Number of Terms from 5 to 4 not change the Taylor Approximation for the default function?
For sin(x) centered at 0, every even-numbered term (n = 0, 2, 4, ...) in the series is exactly zero, because sin's derivatives at 0 cycle through 0, 1, 0, -1 and repeat. The fifth term (n = 4) happens to be one of those zero terms, so dropping the term count from 5 to 4 removes a term that was already contributing nothing to the sum — it is not evidence that the term count never matters.
Why can the Taylor Approximation be wildly wrong far from the Center Point?
A Taylor polynomial is only guaranteed to closely match the real function near its Center Point; farther away, especially with a capped Number of Terms (15 maximum), the polynomial's higher-order powers can grow faster than the true function stays bounded. That's why evaluating the default sin(x) series at x = 16 produces an approximation around -666.67, even though sin(x) itself never leaves the range -1 to 1.
What exactly is the 'Error' output measuring?
Error is the absolute difference between the exact function value and the computed Taylor Approximation, calculated as Math.abs(exactValue - approximation). It always comes back non-negative regardless of whether the approximation over- or under-shoots the true value, so it measures the size of the mismatch, not its direction.
Why doesn't the Center Point ever register as affecting the Taylor Approximation in a sensitivity check?
Center Point defaults to 0, and the sensitivity check works by multiplying an input's existing value by 1.1 and 0.9 to see how far the output moves. Multiplying zero by anything is still zero, so the check can't budge Center Point away from 0 at all. That's a limitation of the probe methodology, not proof that shifting the expansion point has no effect on the approximation.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Limit Calculator
Evaluate limits of rational, trigonometric, and exponential functions. Shows left limit, right limit, and existence.
Calculus ToolsDerivative Calculator
Calculate the derivative of polynomial, trigonometric, exponential, and logarithmic functions at any point.
CNC MachiningTool Life Calculator
Calculate expected tool life using the Taylor tool life equation from cutting speed, reference data, and the Taylor exponent.
Calculus ToolsArc Length Calculator
Calculate the arc length of linear, quadratic, and circular curves between two points using numerical integration.
More in Math & Statistics.