Details
- Interval: —
- M (max |f^(n+1)|): —
Step-by-step
Explanation:
This tool computes a Taylor polynomial value $T_n(x)$ and an explicit error bound for the approximation, shown step by step using the Lagrange remainder. Choose a function, set the center $a$, the point $x$, and the degree $n$, then the calculator reports $T_n(x)$ and a bound for $|R_n(x)|$. For more tools in this topic, explore Sequences and Series.
Compute a Taylor polynomial value and a Lagrange remainder bound.
A Taylor polynomial approximates a function near a center point $a$. The remainder term $R_n(x)$ is the difference between the true value and the approximation: $$f(x)=T_n(x)+R_n(x)$$ This calculator gives a numerical upper bound for the size of that error, so you can say not only “here is the approximation,” but also “here is how far off it can be.”
Note: this is a guaranteed upper bound, not necessarily the exact error. The true error can be smaller than the bound.
The tool does two things:
In practice, $M$ is chosen in a way that stays reliable and fast. For example, for $e^x$ the maximum occurs at the interval endpoint with the larger $t$ value. For $\sin(x)$ and $\cos(x)$, the relevant derivative magnitudes stay within 1. For $\ln(1+x)$, the maximum is achieved at the smaller endpoint of the interval. For $\frac{1}{1-x}$, the maximum comes from the endpoint closest to $t=1$ (as long as the interval does not cross the singularity).
The output is designed to be practical: you get $T_n(x)$, the interval used, the value of $M$, and the final bound for $|R_n(x)|$.
Different functions have different domain requirements, and the bound depends on the interval between $a$ and $x$. The calculator checks these conditions before computing a bound.
If you want the Taylor or Maclaurin series itself (not just a bound at a point), use the Taylor and Maclaurin Series tool. If you need to determine convergence behavior for an infinite series, use the Series Convergence Test tool.
Approximate $\ln(1+x)$ at $x=0.5$ with a Maclaurin polynomial and get a numerical error bound.
Choose $f(x)=\ln(1+x)$, $a=0$, $x=0.5$, $n=3$.
The tool computes $T_3(0.5)$ and then uses: $$|R_3(0.5)|\le \frac{M}{4!}|0.5-0|^4$$ with $M=\max_{t\in[0,0.5]}|f^{(4)}(t)|$.
It then reports the numeric value of $T_3(0.5)$ and a concrete bound for $|R_3(0.5)|$.
For $e^x$, the derivatives stay as $e^x$, so the maximum on the interval is easy to interpret.
Choose $f(x)=e^x$, $a=0$, $x=1$, $n=3$.
The bound is computed from: $$|R_3(1)|\le \frac{M}{4!}|1|^4,\quad M=\max_{t\in[0,1]}e^t$$
The calculator then outputs $T_3(1)$ and the final numeric bound for $|R_3(1)|$.
For $\sin(x)$ and $\cos(x)$, derivatives stay within $[-1,1]$, so $M$ is often just 1.
Choose $f(x)=\sin(x)$, $a=0$, $x=0.5$, $n=5$.
The tool uses: $$|R_5(0.5)|\le \frac{M}{6!}|0.5|^6,\quad M=\max_{t\in[0,0.5]}|\sin^{(6)}(t)|$$
Since the relevant derivatives are sine/cosine values, $M$ is bounded by 1 on the interval, producing a clean numerical bound.
Rational functions can be approximated too, but the interval must stay away from where the function is undefined.
Choose $f(x)=\frac{1}{1-x}$, $a=0$, $x=0.2$, $n=4$.
The calculator computes $T_4(0.2)$ and then evaluates a bound using: $$|R_4(0.2)|\le \frac{M}{5!}|0.2|^5$$ where $M$ is taken as the maximum of $|f^{(5)}(t)|$ on $t\in[0,0.2]$.
Because the interval stays far from $t=1$, the bound remains stable and meaningful.
Keep exploring Calculus and Mathematics or jump back to Calculators to browse more tools.
Quick answers about Taylor polynomials, Lagrange remainder, and error bounds.
Trusted by thousands of users every month. Fast, accurate and privacy-friendly tools.