APBusiness & Management

Taylor Polynomial & Lagrange Error Bound | Formula & Examples

Learn Taylor and Maclaurin polynomials with the Lagrange error bound, step-by-step formulas, worked examples, degree selection, accuracy checks and practice.
Business analyst explaining Taylor polynomial and Lagrange error bound on a graph to optimize forecasting and risk decisions in management

Calculus series and approximation guide

Taylor Polynomial and Lagrange Error Bound

Taylor polynomials let you approximate a function near a chosen center using derivatives. The Lagrange error bound tells you how far that approximation could be from the true value. Together, they turn local derivative information into a practical method for approximation, estimation, and accuracy control in calculus.

Taylor polynomial formula Maclaurin polynomial Remainder term Lagrange error bound AP Calculus BC

What a Taylor polynomial means

A Taylor polynomial is a polynomial that imitates a differentiable function near a chosen point. The chosen point is called the center, usually written as \(a\). The polynomial is built so that its value, slope, curvature, and higher derivative behavior match the original function at \(x=a\), up to the degree being used. The more derivatives you match, the more local information the polynomial contains.

The simplest Taylor polynomial is the tangent line. If \(f\) is differentiable at \(a\), the tangent line approximation is \(f(a)+f'(a)(x-a)\). It matches the function value and first derivative at the center. The second-degree Taylor polynomial adds a quadratic term involving \(f''(a)\), so it also matches curvature. Higher-degree Taylor polynomials continue this pattern by adding terms involving higher derivatives.

This idea matters because many functions are difficult to evaluate exactly but easy to approximate with polynomials. Polynomials are easy to add, multiply, differentiate, integrate, and evaluate numerically. A Taylor polynomial turns a complicated function such as \(e^x\), \(\sin x\), \(\ln x\), or \(\sqrt{x}\) into a polynomial that is accurate near a chosen center. The Lagrange error bound then answers the natural question: how accurate is the approximation?

Taylor polynomials sit between several important calculus topics. They build on derivative rules, tangent-line approximation, and higher derivatives. They lead into power series, Maclaurin series, convergence, and error analysis. If you need to review the derivative foundation, see RevisionTown's pages on definition of derivatives and the power rule, product, quotient, and higher derivatives, and tangent line approximation and differentials.

Taylor polynomial formula

The degree \(n\) Taylor polynomial for \(f(x)\) centered at \(x=a\) is

\[ T_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k. \]

Written term by term, this is

\[ T_n(x)=f(a)+f'(a)(x-a)+\frac{f''(a)}{2!}(x-a)^2+\frac{f^{(3)}(a)}{3!}(x-a)^3+\cdots+\frac{f^{(n)}(a)}{n!}(x-a)^n. \]

The notation \(f^{(k)}(a)\) means the \(k\)-th derivative of \(f\), evaluated at \(a\). The factorial \(k!\) balances the repeated differentiation of powers. For example, differentiating \((x-a)^3\) three times produces \(3!\), so the coefficient \(\frac{f^{(3)}(a)}{3!}\) makes the third derivative of the polynomial match \(f^{(3)}(a)\).

A Maclaurin polynomial is a Taylor polynomial centered at \(a=0\). Its formula is

\[ T_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(0)}{k!}x^k. \]

Maclaurin polynomials are especially common for \(e^x\), \(\sin x\), \(\cos x\), and \(\ln(1+x)\). RevisionTown has separate pages for Taylor series and Maclaurin series and Maclaurin series when you are ready to move from finite polynomials to infinite series.

What the Lagrange error bound says

A Taylor polynomial is an approximation unless the original function is itself a polynomial of low enough degree or the infinite series is being considered under convergence conditions. The actual error at a point \(x\) is

\[ R_n(x)=f(x)-T_n(x). \]

The Lagrange error bound gives a guaranteed upper bound on \(|R_n(x)|\). If \(f\) has \(n+1\) continuous derivatives on an interval containing \(a\) and \(x\), and if \(|f^{(n+1)}(t)|\le M\) throughout that interval, then

\[ |R_n(x)|\le \frac{M}{(n+1)!}|x-a|^{n+1}. \]

This formula is the key accuracy statement. The polynomial uses derivatives through order \(n\). The error bound uses a bound on the next derivative, order \(n+1\). The farther \(x\) is from the center \(a\), the larger \(|x-a|^{n+1}\) can become. The larger the next derivative can be, the larger \(M\) is. The larger the degree \(n\), the larger the factorial in the denominator, which often makes the error smaller.

The bound is not always the exact error. It is usually a worst-case guarantee. If the Lagrange bound says \(|R_3(0.2)|\le0.00007\), the true error may be much smaller. The point is that the error cannot exceed the bound under the stated conditions. In exams, this is often enough: you may be asked to prove that an approximation is within a required tolerance, not to find the exact error.

Core idea: A Taylor polynomial gives the approximation. The Lagrange error bound gives a defensible maximum possible error.

How to build a Taylor polynomial step by step

Building a Taylor polynomial is systematic. First identify the function \(f(x)\), the center \(a\), and the degree \(n\). Then compute the derivatives \(f(a), f'(a), f''(a), \ldots, f^{(n)}(a)\). Finally substitute those values into the Taylor polynomial formula. The process is repetitive, but organization matters because one derivative or factorial error can change the entire polynomial.

  1. Write the formula \(T_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k\).
  2. List derivatives from order \(0\) through order \(n\), where order \(0\) means \(f(x)\) itself.
  3. Evaluate every listed derivative at \(x=a\).
  4. Place each value over the correct factorial.
  5. Use powers of \((x-a)\), not powers of \(x\), unless \(a=0\).
  6. Simplify coefficients only after the structure is correct.

For example, the degree \(3\) Taylor polynomial for \(f(x)\) centered at \(a=2\) has the form

\[ T_3(x)=f(2)+f'(2)(x-2)+\frac{f''(2)}{2!}(x-2)^2+\frac{f^{(3)}(2)}{3!}(x-2)^3. \]

Notice that every term uses \(x-2\), not \(x\). This is one of the most common errors. The center controls the shift. A polynomial centered at \(2\) is built from powers of \(x-2\), because it is designed to approximate the function near \(x=2\).

Choosing the center \(a\)

The center \(a\) is where the polynomial matches the function exactly through the chosen derivative order. A good center is usually close to the \(x\)-value where you want the approximation and easy to evaluate. If you want to approximate \(e^{0.1}\), the center \(a=0\) is natural because \(e^0=1\) and all derivatives of \(e^x\) at \(0\) are \(1\). If you want to approximate \(\sqrt{4.1}\), the center \(a=4\) is natural because \(\sqrt{4}=2\) and \(4.1\) is close to \(4\).

The Lagrange error bound makes the importance of the center clear. The factor \(|x-a|^{n+1}\) gets smaller when \(x\) is close to \(a\). If two centers are equally easy, choose the one closer to the input you need. However, closeness is not the only criterion. You also need derivative values that can be computed cleanly and an interval where the next derivative can be bounded.

Maclaurin polynomials use \(a=0\). They are convenient and widely memorized, but not always the best approximation far from zero. For functions with known power series, a Maclaurin polynomial may be excellent near \(0\), but a Taylor polynomial centered near the target \(x\)-value can be better for local approximation. This is why the center is a strategic choice, not just a notation detail.

Common Taylor and Maclaurin patterns

Several functions appear so often that their Maclaurin polynomials are worth recognizing. These patterns become the foundation for more advanced work with power series, function representation, and approximation. They also help in AP Calculus BC and IB Mathematics problems where a known series must be adjusted by substitution, multiplication, or integration.

FunctionMaclaurin patternFirst few nonzero terms
\(e^x\)\(\sum_{k=0}^{\infty}\frac{x^k}{k!}\)\(1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\cdots\)
\(\sin x\)\(\sum_{k=0}^{\infty}(-1)^k\frac{x^{2k+1}}{(2k+1)!}\)\(x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots\)
\(\cos x\)\(\sum_{k=0}^{\infty}(-1)^k\frac{x^{2k}}{(2k)!}\)\(1-\frac{x^2}{2!}+\frac{x^4}{4!}-\cdots\)
\(\ln(1+x)\)\(\sum_{k=1}^{\infty}(-1)^{k+1}\frac{x^k}{k}\)\(x-\frac{x^2}{2}+\frac{x^3}{3}-\cdots\)
\(\frac{1}{1-x}\)\(\sum_{k=0}^{\infty}x^k\)\(1+x+x^2+x^3+\cdots\)

Finite Taylor polynomials use only the first terms needed for the requested degree. The infinite series requires convergence analysis, which is a separate topic. For that next step, see convergence of power series and representations of functions as power series. The present page focuses on finite Taylor polynomials and the Lagrange error bound.

Taylor formula explorer

Use this quick reference to compare common Taylor structures. It is a learning aid, not a numerical approximation tool.

How to use the Lagrange error bound

The Lagrange error bound has four practical steps. First, identify the degree \(n\) of the Taylor polynomial. Second, compute or describe the \((n+1)\)-st derivative. Third, find a number \(M\) such that \(|f^{(n+1)}(t)|\le M\) for every \(t\) between the center \(a\) and the input \(x\). Fourth, substitute \(M\), \(n\), and \(|x-a|\) into the bound.

\[ |R_n(x)|\le \frac{M}{(n+1)!}|x-a|^{n+1}. \]

The hardest part is often finding \(M\). Sometimes \(M\) is given. Sometimes the next derivative is simple enough to bound directly. For \(e^x\) on \([0,0.2]\), all derivatives are \(e^x\), and \(e^x\le e^{0.2}\). You may use \(M=e^{0.2}\) if allowed, or a simpler upper bound such as \(M=2\) because \(e^{0.2}<2\). The bound with \(M=2\) may be less sharp, but it is easier and still valid.

For trigonometric functions, \(|\sin t|\le1\) and \(|\cos t|\le1\), so \(M=1\) is often enough. For rational or logarithmic functions, you may need to examine where the derivative is largest on the interval. For example, derivatives of \(\ln x\) include powers of \(1/x\), so the largest value on an interval may occur near the smaller positive \(x\)-value.

A valid error bound does not need to be the smallest possible bound. It needs to be true. In exam solutions, it is often better to choose a simple \(M\) that clearly works than a complicated \(M\) that is hard to justify. However, if the problem asks for the smallest degree needed to achieve a tolerance, a sharper bound may reduce the required degree.

Choosing the degree for a required accuracy

Many Taylor polynomial problems ask how many terms or what degree is needed to approximate a value within a tolerance. The Lagrange bound turns this into an inequality. If the required error is less than \(\varepsilon\), choose \(n\) so that

\[ \frac{M}{(n+1)!}|x-a|^{n+1}<\varepsilon. \]

Then the degree \(n\) Taylor polynomial is guaranteed to be accurate within the tolerance. The factorial in the denominator grows quickly, so only a few terms may be enough when \(|x-a|\) is small. When \(|x-a|\) is larger, a higher degree or a better center may be needed.

For example, suppose you use a Maclaurin polynomial for \(e^x\) to approximate \(e^{0.1}\), and you use \(M=2\) on \([0,0.1]\). The error bound is

\[ |R_n(0.1)|\le \frac{2(0.1)^{n+1}}{(n+1)!}. \]

Even for \(n=2\), the bound is \(\frac{2(0.1)^3}{3!}=\frac{0.002}{6}\approx0.000333\). If the tolerance is \(0.001\), the quadratic polynomial is enough. If the tolerance is much smaller, increase \(n\) until the bound satisfies the requirement.

Worked examples

Example 1: Degree 3 Taylor polynomial for \(e^x\) at \(0\)

For \(f(x)=e^x\), every derivative is \(e^x\), and \(f^{(k)}(0)=1\) for all \(k\). The degree \(3\) Maclaurin polynomial is

\[ T_3(x)=1+x+\frac{x^2}{2!}+\frac{x^3}{3!}. \]

To approximate \(e^{0.2}\), substitute \(x=0.2\):

\[ T_3(0.2)=1+0.2+\frac{0.04}{2}+\frac{0.008}{6}=1.221333\ldots \]

For the Lagrange bound, use \(n=3\), \(a=0\), and \(x=0.2\). On \([0,0.2]\), \(f^{(4)}(t)=e^t<2\), so take \(M=2\). Then

\[ |R_3(0.2)|\le\frac{2(0.2)^4}{4!}=\frac{2(0.0016)}{24}\approx0.0001334. \]

The approximation is guaranteed to be within about \(0.000134\) of the true value.

Example 2: Degree 5 Maclaurin polynomial for \(\sin x\)

The Maclaurin pattern for sine is

\[ \sin x=x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots. \]

The degree \(5\) polynomial is

\[ T_5(x)=x-\frac{x^3}{3!}+\frac{x^5}{5!}. \]

To approximate \(\sin(0.3)\), use \(T_5(0.3)\). The next derivative is a sine or cosine function in magnitude, so \(M=1\) works. With \(n=5\),

\[ |R_5(0.3)|\le\frac{(0.3)^6}{6!}. \]

This is a very small number because both \(0.3^6\) and the factorial denominator reduce the bound.

Example 3: Taylor polynomial centered away from zero

Find the degree \(2\) Taylor polynomial for \(f(x)=\sqrt{x}\) centered at \(a=4\). First compute derivatives:

\[ f(x)=x^{1/2},\qquad f'(x)=\frac{1}{2}x^{-1/2},\qquad f''(x)=-\frac{1}{4}x^{-3/2}. \]

Evaluate at \(4\):

\[ f(4)=2,\qquad f'(4)=\frac14,\qquad f''(4)=-\frac{1}{32}. \]

Therefore

\[ T_2(x)=2+\frac14(x-4)-\frac{1}{64}(x-4)^2. \]

This polynomial is useful for approximating values such as \(\sqrt{4.1}\), because \(4.1\) is close to the center \(4\).

Example 4: Finding an error bound for \(\sqrt{x}\)

Continue the previous example and approximate \(\sqrt{4.1}\) with \(T_2(4.1)\). The error uses the third derivative:

\[ f^{(3)}(x)=\frac{3}{8}x^{-5/2}. \]

On the interval \([4,4.1]\), this derivative is largest at \(x=4\), so

\[ M=\frac{3}{8}\cdot4^{-5/2}=\frac{3}{8}\cdot\frac{1}{32}=\frac{3}{256}. \]

Since \(n=2\) and \(|x-a|=0.1\),

\[ |R_2(4.1)|\le \frac{3/256}{3!}(0.1)^3. \]

This is a small guaranteed error because the approximation point is close to the center.

Example 5: Using Taylor data without a formula

Suppose a table gives \(f(1)=3\), \(f'(1)=5\), \(f''(1)=-2\), and \(f^{(3)}(1)=12\). The degree \(3\) Taylor polynomial centered at \(1\) is

\[ T_3(x)=3+5(x-1)+\frac{-2}{2!}(x-1)^2+\frac{12}{3!}(x-1)^3. \]

Simplifying gives

\[ T_3(x)=3+5(x-1)-(x-1)^2+2(x-1)^3. \]

This kind of problem tests whether you understand the structure of the formula, not whether you can compute derivatives from scratch.

Example 6: Choosing a degree

Use a Maclaurin polynomial for \(e^x\) to approximate \(e^{0.5}\) with error less than \(0.001\). On \([0,0.5]\), \(e^t<2\), so use \(M=2\). We need

\[ \frac{2(0.5)^{n+1}}{(n+1)!}<0.001. \]

Test values. For \(n=3\), the bound is \(\frac{2(0.5)^4}{4!}=\frac{0.125}{24}\approx0.00521\), not enough. For \(n=4\), the bound is \(\frac{2(0.5)^5}{5!}=\frac{0.0625}{120}\approx0.000521\), which is below \(0.001\). A degree \(4\) polynomial is sufficient.

Relationship to series and convergence

A Taylor polynomial is finite. A Taylor series is infinite. The degree \(n\) Taylor polynomial is the partial sum through degree \(n\), while the Taylor series continues indefinitely. If the Taylor series converges to the function on an interval, then the Taylor polynomials improve toward the function as \(n\) increases. The Lagrange error bound is one tool for proving that the remainder approaches zero.

For some functions, a Taylor series has a limited interval of convergence. For example, the geometric series \(\frac{1}{1-x}=1+x+x^2+\cdots\) converges only for \(|x|<1\). The finite Taylor polynomial still exists wherever the derivatives exist, but the infinite series representation requires convergence analysis. This distinction is central in later work with sequences and series and sequences and series resources.

The alternating series error bound is related but different. It applies to certain alternating series whose terms decrease to zero. Lagrange error uses a bound on the next derivative. For alternating Taylor series such as sine and cosine, both approaches may sometimes give useful information, but they are justified differently. See RevisionTown's alternating series and error bound page for that separate method.

Where this topic fits in AP and IB calculus

Taylor polynomial and Lagrange error bound problems are especially important in AP Calculus BC, where students are expected to work with power series, Taylor series, Maclaurin series, intervals of convergence, and error estimates. The topic also supports advanced calculus work in AP Calculus AB when tangent-line and local approximation ideas appear, though the full series treatment is associated more strongly with BC.

In IB Mathematics, Taylor polynomial ideas are most relevant for higher-level calculus and approximation work, especially in IB Mathematics AA HL. Even when a syllabus emphasizes technology or modeling, the conceptual link between derivatives and local approximation is valuable. A Taylor polynomial is a precise way to say that a function can be locally approximated using derivative information.

If you need printed or course-structured calculus support, RevisionTown's Calculus Book 1, Calculus Book 2, and Calculus Book 3 pages provide broader calculus context. If you need arithmetic support after setting up a polynomial or bound, the scientific calculator and math calculator can help with numerical evaluation.

Common mistakes with Taylor polynomials and error bounds

The first common mistake is using powers of \(x\) instead of powers of \(x-a\). If the center is not zero, every Taylor term must use \((x-a)^k\). A polynomial centered at \(3\) uses \((x-3)\), not \(x\). This is not just a notation issue; it changes where the polynomial matches the function.

The second mistake is forgetting factorials. The coefficient of \((x-a)^k\) is \(\frac{f^{(k)}(a)}{k!}\), not simply \(f^{(k)}(a)\). Factorials are the reason the polynomial's derivatives match the function's derivatives at the center. Omitting them usually makes every term of degree \(2\) and above incorrect.

The third mistake is using the \(n\)-th derivative in the Lagrange error bound instead of the \((n+1)\)-st derivative. A degree \(n\) Taylor polynomial uses derivatives through order \(n\). The error bound needs the next derivative because the first omitted term controls the remainder estimate.

The fourth mistake is choosing \(M\) only at the center. The bound \(M\) must work on the entire interval between \(a\) and \(x\). If the next derivative grows over the interval, the center value may be too small. Always identify the interval and bound the derivative throughout that interval.

The fifth mistake is treating the Lagrange bound as the exact error. It is an upper bound. The true error can be smaller. If a question asks for a maximum possible error, use the bound. If a question asks for the actual error and the function value is known, compute \(|f(x)-T_n(x)|\). These are different tasks.

The sixth mistake is using a memorized Maclaurin series outside its natural context without checking convergence or approximation distance. A finite polynomial can still be evaluated, but accuracy depends on the center, degree, and derivative bound. For infinite series, convergence must be considered.

Exam strategy for Taylor and Lagrange problems

Start by deciding whether the problem asks for a polynomial, an approximation, an error bound, or a degree requirement. These are related but different tasks. If it asks for a polynomial, focus on derivatives and factorials. If it asks for an approximation, evaluate the polynomial at the target \(x\). If it asks for an error bound, find \(M\) and use the Lagrange formula. If it asks for a degree, set the bound less than the tolerance and test values of \(n\).

Use a derivative table when the function is not one of the standard patterns. Make columns for derivative order, derivative formula, value at \(a\), and Taylor term. This prevents skipped derivatives and wrong factorials. For functions with repeating derivatives, such as sine, cosine, and \(e^x\), identify the cycle early.

For an error-bound problem, write the interval explicitly. If \(a=0\) and \(x=0.4\), the interval is \([0,0.4]\). If \(a=2\) and \(x=1.8\), the interval is \([1.8,2]\). Then decide how to bound the \((n+1)\)-st derivative on that interval. A correct interval is often the difference between a valid solution and an unsupported estimate.

When a question asks for the least degree, do not assume the first degree that feels reasonable. Test the bound. Start with a low degree, calculate the bound, and increase \(n\) until it is below the tolerance. If the problem asks for an approximation to a certain number of decimal places, translate that into a tolerance before choosing the degree.

Why the Taylor coefficients have this form

The Taylor formula can feel mysterious until you see what it is designed to accomplish. Suppose you want a polynomial centered at \(a\) that matches a function's value and derivatives at \(a\). Start with a general shifted polynomial:

\[ P_n(x)=c_0+c_1(x-a)+c_2(x-a)^2+\cdots+c_n(x-a)^n. \]

Evaluate at \(x=a\). Every term containing \((x-a)\) becomes zero, so \(P_n(a)=c_0\). If you want \(P_n(a)=f(a)\), then \(c_0=f(a)\). Differentiate once:

\[ P_n'(x)=c_1+2c_2(x-a)+3c_3(x-a)^2+\cdots. \]

Again evaluate at \(x=a\). All terms with \((x-a)\) disappear, leaving \(P_n'(a)=c_1\). To match the function's first derivative, choose \(c_1=f'(a)\). Differentiate twice. The second derivative at the center gives \(P_n''(a)=2c_2\), so \(c_2=\frac{f''(a)}{2}\). Differentiate three times and you get \(P_n^{(3)}(a)=3!c_3\), so \(c_3=\frac{f^{(3)}(a)}{3!}\).

The pattern is now visible. The \(k\)-th derivative of \(c_k(x-a)^k\) at \(a\) is \(k!c_k\). To make that equal \(f^{(k)}(a)\), choose \(c_k=\frac{f^{(k)}(a)}{k!}\). This is why factorials appear in the formula. They are not decorative. They undo the factorial produced by differentiating powers.

This derivation also explains why a Taylor polynomial is local. The polynomial is forced to match the function at the center through derivative information. It is not constructed by fitting many points across a wide interval. That local matching can be extremely powerful near the center, but it does not automatically guarantee good approximation far away. The error bound provides the missing accuracy control.

How to interpret degree, order, and matching derivatives

The degree of a Taylor polynomial is the highest power included. A degree \(0\) Taylor polynomial is just \(T_0(x)=f(a)\). It approximates the function by a horizontal constant equal to the function value at the center. A degree \(1\) Taylor polynomial is the tangent line. It matches value and slope. A degree \(2\) Taylor polynomial adds curvature. A degree \(3\) polynomial adds information about how curvature changes.

In many textbooks and exams, "degree \(n\)" and "order \(n\)" are used in related ways, but it is safest to read the prompt carefully. If a question asks for the Taylor polynomial through the cubic term, include terms up to \((x-a)^3\). If it asks for the third-degree Taylor polynomial, do the same. If a function has zero coefficients for some degrees, the polynomial may look lower in degree even though it was built through a certain derivative order. For example, the degree \(5\) Maclaurin polynomial for \(\sin x\) is \(x-\frac{x^3}{3!}+\frac{x^5}{5!}\), with no even-power terms.

The matching-derivative interpretation is a useful check. If \(T_3(x)\) is a third-degree Taylor polynomial for \(f\) centered at \(a\), then \(T_3(a)=f(a)\), \(T_3'(a)=f'(a)\), \(T_3''(a)=f''(a)\), and \(T_3^{(3)}(a)=f^{(3)}(a)\). If your polynomial does not satisfy those equalities, it is not the correct Taylor polynomial. This check is especially helpful when the algebra has been simplified and the original Taylor structure is harder to see.

For a polynomial function, Taylor polynomials eventually become exact. If \(f(x)\) itself is a degree \(m\) polynomial, then the Taylor polynomial of degree \(m\) centered at any \(a\) equals \(f(x)\) exactly. Higher derivatives beyond degree \(m\) are zero, so the Lagrange error bound is zero for degrees \(m\) and above. This is a useful way to understand why Taylor polynomials generalize ordinary polynomial expansion.

How to find \(M\) in the Lagrange error bound

Finding \(M\) is the step that most often separates a complete solution from an incomplete one. The number \(M\) must satisfy \(|f^{(n+1)}(t)|\le M\) for every \(t\) between \(a\) and \(x\). It is not enough to evaluate the next derivative at the endpoint you like best. You need a bound that works on the entire interval.

For \(e^x\), all derivatives are \(e^x\). On an interval \([a,x]\), the maximum occurs at the larger endpoint because \(e^t\) is increasing. If the interval is \([0,0.4]\), then \(M=e^{0.4}\) is sharp, but a simpler upper bound such as \(M=2\) also works because \(e^{0.4}<2\). In many exam settings, a simple valid bound is preferred if it keeps the work clear.

For sine and cosine, \(M=1\) is usually valid because every derivative is either \(\sin t\), \(\cos t\), \(-\sin t\), or \(-\cos t\), and the absolute value of each is at most \(1\). This is why Lagrange error bounds for sine and cosine often look clean:

\[ |R_n(x)|\le \frac{|x-a|^{n+1}}{(n+1)!}. \]

For logarithmic functions, the interval matters strongly. If \(f(x)=\ln x\), then \(f'(x)=1/x\), \(f''(x)=-1/x^2\), and higher derivatives contain powers of \(1/x\). On a positive interval, these magnitudes are larger near the smaller \(x\)-value. If the interval is \([1,1.2]\), the maximum may occur at \(1\). If the interval is \([0.8,1]\), the maximum may occur at \(0.8\). The interval must be considered before selecting \(M\).

For root functions such as \(f(x)=\sqrt{x}\), derivatives often contain negative powers of \(x\). The magnitude can grow as \(x\) approaches zero, so a center and interval that stay safely away from zero make the error bound easier. This is one reason a center such as \(a=4\) is natural for approximating \(\sqrt{4.1}\): derivatives are manageable and the approximation point is close.

Function typeTypical next derivative behaviorCommon \(M\) strategy
\(e^x\)All derivatives are \(e^x\)Use the maximum endpoint value or a simple upper bound such as \(2\) on small intervals near \(0\).
\(\sin x\), \(\cos x\)Derivatives cycle through sine and cosineUse \(M=1\) because \(|\sin t|\le1\) and \(|\cos t|\le1\).
\(\ln x\)Negative powers of \(x\)Use the smallest positive \(x\)-value in the interval to bound the magnitude.
\(\sqrt{x}\)Fractional negative powers after differentiatingChoose an interval away from zero and bound at the endpoint where the magnitude is largest.
PolynomialDerivatives eventually become zeroIf the next derivative is zero, the Taylor polynomial is exact at that degree.

Center choice examples

Choosing the center well can make a Taylor problem much easier. If you are approximating a value near a simple input, center at the simple input. For \(\sqrt{9.2}\), the center \(a=9\) is natural because \(\sqrt{9}=3\). For \(\ln(1.05)\), the center \(a=1\) is natural if using \(f(x)=\ln x\), or \(a=0\) is natural if rewriting as \(\ln(1+x)\) with \(x=0.05\). For \(\cos(0.1)\), a Maclaurin polynomial centered at \(0\) is natural.

A center can also be chosen because derivative values become simple. For \(e^x\), \(a=0\) makes all derivative values equal to \(1\). For sine and cosine, \(a=0\) produces many zeros and simple values. For rational functions, a center that avoids singularities and gives easy arithmetic is usually best. A center near a vertical asymptote is usually a poor choice because derivatives can grow quickly and error bounds become large.

Sometimes the problem gives the center explicitly. In that case, do not change it just because another center feels easier. If the prompt asks for a Taylor polynomial centered at \(a=2\), use powers of \(x-2\) and derivative values at \(2\). If it asks for a Maclaurin polynomial, the center is \(0\). If it gives derivative data at one point, that point is almost certainly the center.

When approximating a function value, compare the distance \(|x-a|\). A fourth-degree polynomial centered at \(0\) may approximate \(f(0.1)\) extremely well, but the same degree centered at \(0\) may approximate \(f(3)\) poorly unless the function's derivatives and convergence behavior support it. The distance from the center is one of the main drivers of the Lagrange bound.

Derivative cycles and zero terms

Many Taylor polynomial shortcuts come from derivative cycles. The derivatives of \(e^x\) never change, so every Maclaurin coefficient is \(\frac{1}{k!}\). The derivatives of sine and cosine cycle every four derivatives. This cycle creates alternating signs and missing powers. For \(\sin x\), the Maclaurin polynomial includes only odd powers because the even derivatives at \(0\) are zero. For \(\cos x\), it includes only even powers because the odd derivatives at \(0\) are zero.

Zero terms should be understood, not ignored blindly. If a derivative value is zero, the corresponding Taylor term is zero. This is why the degree \(4\) Maclaurin polynomial for \(\sin x\) is still \(x-\frac{x^3}{3!}\), because the \(x^4\) coefficient is zero. If a problem asks for the Taylor polynomial of degree \(4\), it is acceptable for the written polynomial to have no visible fourth-degree term if that term's coefficient is zero.

Derivative cycles also help with Lagrange bounds. If the next derivative of sine or cosine is another sine or cosine expression, \(M=1\) is usually a clean choice. If the function is \(e^{2x}\), the derivatives produce powers of \(2\): \(2e^{2x}\), \(4e^{2x}\), \(8e^{2x}\), and so on. The next derivative is not just \(e^{2x}\); it includes the multiplier from repeated chain rule applications. Always compute the actual next derivative before choosing \(M\).

Composite functions require extra care. The Maclaurin series for \(e^{x^2}\) can be built by substituting \(x^2\) into the series for \(e^u\): \(1+x^2+\frac{x^4}{2!}+\cdots\). That is a useful series technique, but if a problem asks for a Taylor polynomial from derivatives, you should still understand why the terms appear. Substitution methods and derivative methods should agree when used correctly.

A practical workflow for approximation problems

When approximating a number with a Taylor polynomial, organize the work in two parallel tracks: value and error. The value track produces \(T_n(x)\). The error track produces a bound for \(|R_n(x)|\). Mixing these tracks is a common source of confusion. The polynomial value is your estimate. The Lagrange bound is your guarantee.

First build or identify the polynomial. If a common Maclaurin pattern is allowed, write the needed terms. If not, compute derivatives and evaluate them at the center. Second, substitute the target \(x\)-value into the polynomial. Keep enough decimal places so that rounding does not destroy the accuracy you are trying to prove. Third, identify the next derivative and a valid \(M\). Fourth, calculate the Lagrange bound. Fifth, state the approximation together with the maximum possible error.

A complete response might read: "Using \(T_3(x)=1+x+\frac{x^2}{2}+\frac{x^3}{6}\), \(e^{0.2}\approx1.22133\). Since \(|f^{(4)}(t)|=e^t<2\) on \([0,0.2]\), the error is at most \(\frac{2(0.2)^4}{4!}<0.000134\)." This response gives the method, estimate, interval, derivative bound, and final error guarantee.

If a problem only asks for the bound, you may not need to calculate the polynomial value. If a problem only asks for the polynomial, you may not need the bound. Read the prompt carefully. Taylor polynomial questions often contain several parts, and each part has a different deliverable.

Using error bounds for decimal place accuracy

Error bounds can justify decimal-place accuracy. To guarantee that an approximation rounds correctly to \(d\) decimal places, a common target is an error less than half of one unit in the \(d\)-th decimal place. For example, to guarantee rounding to three decimal places, it is enough to have error less than \(0.0005\). To guarantee rounding to four decimal places, use error less than \(0.00005\).

The idea is that if the approximation is within half of the rounding unit, it cannot cross the rounding boundary. In practice, exam problems may state a tolerance directly, such as "within \(0.001\)" or "error less than \(10^{-4}\)." Use the tolerance given in the problem. If the problem asks for a number of decimal places, translate it into a conservative tolerance.

For instance, suppose a Taylor approximation gives \(1.22133\) with error less than \(0.000134\). This is enough to know the true value lies between \(1.221196\) and \(1.221464\). It guarantees the value rounds to \(1.221\) to three decimal places, because the entire interval rounds to \(1.221\). It does not guarantee four decimal places, because the uncertainty is larger than \(0.00005\).

When presenting a final answer, do not claim more precision than the error bound supports. If your error bound only supports three decimal places, giving six decimal places may look precise but is not justified by your work. The strength of Taylor approximation is not just producing decimals; it is knowing how many of those decimals can be trusted.

Why Taylor polynomials are useful beyond exams

Taylor polynomials are used in numerical computation because computers often approximate complicated functions using simpler operations. Calculating \(e^x\), \(\sin x\), \(\cos x\), and logarithms inside software requires approximation algorithms. Taylor polynomials are one of the conceptual foundations for such methods, even when production software uses more advanced variants for speed and stability.

In physics, Taylor polynomials support small-angle approximations and local models. For small \(x\), \(\sin x\approx x\) and \(\cos x\approx1-\frac{x^2}{2}\). These approximations appear in pendulum motion, waves, optics, and mechanics. The Lagrange error bound explains why "small" matters: the powers of \(|x-a|\) control the size of the neglected terms.

In engineering, Taylor approximation helps linearize nonlinear relationships near an operating point. A complicated system may be hard to analyze globally, but near a stable operating condition, a first-degree or second-degree Taylor model can describe behavior well enough for control, estimation, or sensitivity analysis. The higher-order terms represent effects that are ignored in the simplified model.

In statistics and applied mathematics, Taylor expansions appear in approximation methods, asymptotic analysis, optimization, and uncertainty propagation. A first-order Taylor approximation can estimate how a small input error affects an output. A second-order approximation can capture curvature. The same derivative-matching idea appears across many applied fields.

These applications do not replace the need for error awareness. A local polynomial model is only reliable over a range where the neglected terms are small enough. The Lagrange error bound gives one formal way to state that reliability in calculus problems.

Lagrange error bound versus alternating series error

The Lagrange error bound and the alternating series error bound can both estimate errors, but they come from different assumptions. The Lagrange bound uses derivatives. It applies to Taylor polynomials when you can bound the next derivative on the interval. The alternating series error bound applies to alternating series whose term magnitudes decrease to zero. It says the error after a partial sum is at most the magnitude of the first omitted term.

For some Maclaurin series, both methods can be available. The sine series alternates, and its terms decrease for many small \(x\)-values. A Lagrange bound with \(M=1\) is also straightforward because derivatives of sine and cosine are bounded by \(1\). The two methods may give similar-looking bounds, but the justification should match the method requested by the problem.

If a question specifically says "use the Lagrange error bound," use the derivative-based formula. If it says "use the alternating series error bound," verify the alternating series conditions. If it simply asks for an error estimate, choose the method that is valid and easiest to justify. Do not mix the language of one method with the formula of the other.

A good habit is to name the method in your solution. Write "By the Lagrange error bound..." or "By the alternating series error bound..." before presenting the inequality. This makes the assumptions and reasoning clearer.

When the Lagrange bound is hard to use

Some Lagrange error bound questions are straightforward because the next derivative is easy to control. Problems involving \(e^x\), \(\sin x\), and \(\cos x\) often fall into this category. Other problems require more judgment. If the next derivative contains fractions, radicals, logarithmic expressions, or products of functions, you may need to reason carefully about where its absolute value is largest. The goal is not always to find the sharpest possible \(M\). The goal is to find a valid \(M\) that makes the inequality true and answers the question.

A useful first move is to simplify the interval. If the center is \(a\) and the approximation point is \(x\), write the smaller endpoint first. For example, if \(a=2\) and \(x=1.9\), the interval is \([1.9,2]\), not \([2,1.9]\). If \(a=0\) and \(x=-0.3\), the interval is \([-0.3,0]\). Once the interval is clear, inspect \(|f^{(n+1)}(t)|\) on that whole interval. If the expression is monotonic, the largest value occurs at an endpoint. If the expression is bounded by a familiar maximum, use that known bound.

For example, suppose a remainder term involves \(f^{(4)}(t)=\frac{6}{t^4}\) on \([2,2.1]\). Since \(t^4\) increases as \(t\) increases on this positive interval, \(\frac{6}{t^4}\) is largest at \(t=2\). A valid choice is

\[ M=\frac{6}{2^4}=\frac{3}{8}. \]

If the interval were \([0.8,1]\), the largest value of \(\frac{6}{t^4}\) would occur at \(t=0.8\). This is why endpoint choice must follow the interval, not a memorized rule.

When a precise maximum is awkward, a simpler upper bound can still be acceptable. If you know that \(1.9\le t\le2\), then \(t>1\), so \(\frac{6}{t^4}<6\). The bound \(M=6\) is less sharp than \(M=\frac{6}{1.9^4}\), but it is valid. A less sharp bound may require a higher degree to meet a small tolerance, yet it is often enough for conceptual questions. In written work, state clearly whether you are using an exact maximum or a convenient upper bound.

Another hard case occurs when the next derivative changes sign. The Lagrange formula uses an absolute value, so sign changes do not remove the need for a magnitude bound. If \(f^{(n+1)}(t)=t^2-4t+1\), you should consider \(|t^2-4t+1|\), not just \(t^2-4t+1\). On a closed interval, a continuous derivative has a maximum absolute value somewhere on the interval. In advanced work, that may require checking endpoints and critical points. In typical classroom problems, the expression is usually chosen so a simple bound is visible.

If you are unsure whether an \(M\) is valid, test it against the largest-looking values in the interval. Your chosen \(M\) should be greater than or equal to the magnitude of the next derivative everywhere between the center and the approximation point. A smaller \(M\) may make the final error look better, but the solution is only correct if the inequality is justified. Accuracy claims in Taylor approximation depend on the validity of this bound.

Practice questions

Try these questions before opening the answers. Focus on identifying the center, degree, derivative values, and error-bound derivative.

Question 1

Find the degree \(3\) Maclaurin polynomial for \(f(x)=e^x\).

Show answer

\(T_3(x)=1+x+\frac{x^2}{2!}+\frac{x^3}{3!}\).

Question 2

Find the degree \(4\) Maclaurin polynomial for \(\cos x\).

Show answer

\(T_4(x)=1-\frac{x^2}{2!}+\frac{x^4}{4!}\).

Question 3

If \(f(2)=5\), \(f'(2)=-1\), and \(f''(2)=6\), write the degree \(2\) Taylor polynomial centered at \(2\).

Show answer

\(T_2(x)=5-(x-2)+\frac{6}{2!}(x-2)^2=5-(x-2)+3(x-2)^2\).

Question 4

A degree \(2\) Taylor polynomial centered at \(a=1\) is used to approximate \(f(1.1)\). If \(|f^{(3)}(t)|\le 4\) on \([1,1.1]\), find a Lagrange error bound.

Show answer

\(|R_2(1.1)|\le \frac{4}{3!}(0.1)^3=\frac{4}{6}(0.001)=0.000666\ldots\).

Question 5

Why is \(M=1\) often valid for Lagrange bounds involving \(\sin x\) or \(\cos x\)?

Show answer

Every derivative of sine or cosine is \(\pm\sin x\) or \(\pm\cos x\), and both sine and cosine have absolute value at most \(1\).

Question 6

Use the Lagrange bound with \(M=1\) to bound the error for the degree \(3\) Maclaurin polynomial for \(\sin x\) at \(x=0.2\).

Show answer

Here \(n=3\), so \(|R_3(0.2)|\le\frac{1}{4!}(0.2)^4=\frac{0.0016}{24}\approx0.0000667\).

Frequently asked questions

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

A Taylor polynomial has finitely many terms. A Taylor series has infinitely many terms. The polynomial is a partial approximation. The series may represent the function on an interval if it converges to the function.

What is a Maclaurin polynomial?

A Maclaurin polynomial is a Taylor polynomial centered at \(0\). It uses powers of \(x\) instead of powers of \(x-a\) because \(a=0\).

Why does the Lagrange error bound use the next derivative?

A degree \(n\) Taylor polynomial matches derivatives through order \(n\). The first derivative information not included is order \(n+1\), so the error estimate depends on a bound for \(f^{(n+1)}\).

Does the Lagrange error bound give the exact error?

Usually no. It gives a maximum possible error under the stated derivative bound. The actual error may be smaller.

How do I choose \(M\) in the Lagrange error bound?

Find a number \(M\) such that \(|f^{(n+1)}(t)|\le M\) for every \(t\) between the center and the approximation point. Use derivative behavior, known bounds, or simple inequalities to justify it.

When should I use a Taylor polynomial instead of a calculator?

Use a Taylor polynomial when the goal is to show an approximation method, control error, prove accuracy, or work from derivative information. A calculator may give a decimal value, but it does not show why the approximation is valid.

Can Taylor polynomials approximate any function?

A Taylor polynomial can be formed when the required derivatives exist at the center. Accuracy depends on the function, the center, the degree, and the distance from the center. Infinite Taylor series require additional convergence considerations.

Final checklist

To solve a Taylor polynomial problem, identify \(f(x)\), the center \(a\), and the degree \(n\). Compute derivatives through order \(n\), evaluate them at \(a\), divide each derivative value by the correct factorial, and use powers of \((x-a)\). To solve a Lagrange error bound problem, identify the next derivative, find a valid \(M\) on the interval between \(a\) and \(x\), and substitute into \(\frac{M}{(n+1)!}|x-a|^{n+1}\). Keep the approximation and the error guarantee separate: one estimates the value, and the other explains how accurate the estimate is allowed to be.

Shares: