Skip to content
Test versionSearch

Mathematics

Taylor polynomials for elementary functions

Explore a finite Taylor polynomial, each coefficient and partial sum, and the numerical difference from the selected function.

How it worksFAQRelated tools

Content reviewed:

Edit the example values, press Calculate and download the result if you need it. Editing or resetting clears the result; nothing is automatically saved.

Choose exp(x), sin(x), cos(x), ln(x), ln(1+x) or 1/x. These six functions use explicit derivative formulas; arbitrary expressions and symbolic simplification are not supported. Centre a and evaluation point x are real numbers from −100 to 100. Order n is an integer from 0 to 20; order zero has one constant term. Sin and cos use radians. For ln, the argument at the centre must be at least 0.001 and the argument at x must be positive. For 1/x, the absolute values of both points must be at least 0.001. Every row shows c_k, (x−a)^k, their product, the partial sum and the signed difference f(x) minus that sum. The polynomial uses decimal points and the shifted basis (x−a); its coefficients are floating-point approximations. Display precision changes presentation only. The real browser function provides a numerical comparison, not an exact reference or a proved remainder bound; cancellation can reduce accuracy. Relative difference is undefined when f(x)=0. The convergence radius is infinite for exp, sin and cos; it is a for ln(x), 1+a for ln(1+x), and |a| for 1/x. A finite polynomial can still be evaluated outside that radius: the flags identify strictly inside and exactly on the boundary. Boundary convergence is not decided here. Increasing the order does not guarantee a better result at every point. Results above 10^100 are refused. Changing the function keeps your entered points; choose points in the new function’s domain.

Decimal results are approximate. Inputs stay in this browser tab.

Sources

How it works

Taylor coefficients c_k = f⁽ᵏ⁾(a)/k! from explicit elementary derivatives; finite partial sums, numerical comparison and convergence-radius flags. Choose exp(x), sin(x), cos(x), ln(x), ln(1+x) or 1/x. These six functions use explicit derivative formulas; arbitrary expressions and symbolic simplification are not supported. Centre a and evaluation point x are real numbers from −100 to 100. Order n is an integer from 0 to 20; order zero has one constant term. Sin and cos use radians. For ln, the argument at the centre must be at least 0.001 and the argument at x must be positive. For 1/x, the absolute values of both points must be at least 0.001. Every row shows c_k, (x−a)^k, their product, the partial sum and the signed difference f(x) minus that sum. The polynomial uses decimal points and the shifted basis (x−a); its coefficients are floating-point approximations. Display precision changes presentation only. The real browser function provides a numerical comparison, not an exact reference or a proved remainder bound; cancellation can reduce accuracy. Relative difference is undefined when f(x)=0. The convergence radius is infinite for exp, sin and cos; it is a for ln(x), 1+a for ln(1+x), and |a| for 1/x. A finite polynomial can still be evaluated outside that radius: the flags identify strictly inside and exactly on the boundary. Boundary convergence is not decided here. Increasing the order does not guarantee a better result at every point. Results above 10^100 are refused. Changing the function keeps your entered points; choose points in the new function’s domain.

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

Function
exp(x)
Expansion centre a
0
Evaluation point x
1
Polynomial order n (0–20)
3
Display decimal places (0–8)
2

Result

Selected function
exp
Expansion centre a
0
Evaluation point x
1
Offset x − a
1
Order k or n
3
Number of terms
4
Taylor polynomial value
2.67
Browser function value f(x)
2.72
Signed difference f(x) − polynomial
0.05
Absolute numerical difference
0.05
Relative numerical difference (fraction)
0.02
Convergence radius (∞ means infinite)
∞

Frequently asked questions

Which functions does the Taylor polynomial calculator support?

It supports exp(x), sin(x), cos(x), ln(x), ln(1+x) and 1/x, using explicit derivative formulas. Arbitrary expressions and symbolic simplification are not supported.

What range of order and points can I enter?

The order n is an integer from 0 to 20, and the centre a and evaluation point x are real numbers from -100 to 100. Order zero has one constant term.

What does the results table show?

Each row shows the coefficient c_k, (x-a)^k, their product, the partial sum and the signed difference f(x) minus that sum.

Do sin and cos use degrees or radians?

Sin and cos use radians.

What are the domain limits for ln and 1/x?

For ln, the argument at the centre must be at least 0.001 and the argument at x must be positive. For 1/x, the absolute values of both points must be at least 0.001.

What is the radius of convergence for each function?

It is infinite for exp, sin and cos, a for ln(x), 1+a for ln(1+x), and |a| for 1/x. Flags show points strictly inside and exactly on the boundary, and boundary convergence is not decided.

Does a higher order always give a better result?

No. Increasing the order does not guarantee a better result at every point. The comparison is numerical, not a proved remainder bound, and cancellation can reduce accuracy.