Mercyhurst UniversityMath DeptDr Williams Home

Taylor Polynomials


Graph
Equation
f(x) =


Enter expression using the variable x. Use only () for grouping symbols.

Available Operations:
+   -   *   /   ^   %   !

Available Functions:
sqrt() abs() log() log2() log10()
sin() cos() tan() csc() sec() cot()
asin() acos() atan() acsc() asec() acot()

Constants:
e   i   LN2   LN10   pi   SQRT2   SQRT1_2


Display Options
Zoom:

Degree \(n\):  

Center \(a\):  

Use center 0 for Maclaurin polynomial

Hover over the graph to change the value of x

\(x = \)
\(f(x) = \)
\(T_n(x) = \)
Error \( = \)


Taylor Polynomials

The Taylor series of a function \(f(x)\) centered at \(x=a\) is defined by \[ \sum_{i=0}^\infty \frac{f^{(i)}(a)}{i!}(x-a)^i = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \frac{f'''(a)}{2!}(x-a)^3 + \cdots \] The Maclaurin series of the function \(f(x)\) is the Taylor series centered at \(a=0\): \[ \sum_{i=0}^\infty \frac{f^{(i)}(a)}{i!}(x-a)^i = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \frac{f'''(a)}{2!}(x-a)^3 + \cdots \] The Taylor polynomial of degree \(n\) is a partial sum of this series: \[ T_n(x) = \sum_{i=0}^n \frac{f^{(i)}(a)}{i!}(x-a)^i = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \frac{f'''(a)}{2!}(x-a)^3 + \cdots + \frac{f^{(n)}(a)}{n!}(x-a)^n\] This polynomial can be used as an approximation of the function on an interval centered around \(x=a\). Note that if \(f(x)\) is a polynomial of degree \(n\), the Taylor series (and Taylor polynomial) of degree \(n\) or higher will be exactly equal to the function.

About the Applet

This applet was created using JavaScript and HTML Canvas. No other libraries/dependencies are required. If you are having trouble viewing the applet, be sure JavaScript is enabled in your browser. Click here for instructions. Internet Explorer is not recommended for this applet.

This applet was last updated February 2020.