Series

Taylor and Maclaurin Series: Formula and Examples

Taylor and Maclaurin Series: Formula and Examples

A Taylor series represents a smooth function. It is an infinite polynomial expansion calculated from its derivatives at a center point \( a \), using the formula \( f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n \). However, a Maclaurin series is the special case centered at \( a = 0 \). This gives \( f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n \) for polynomial approximation.

Converting non-polynomial functions like sine, exponential, and logarithm into polynomial forms allows calculators, computers, and physics models to perform complex evaluations. They can do this using basic arithmetic operations. When you stop an infinite series after the degree \( n \) term, you obtain a finite Taylor polynomial \( P_n(x) \). This serves as a practical local approximation. Its accuracy increases with higher degrees and smaller distances from the center point.

What are Taylor and Maclaurin series?

A Taylor series expresses a function \( f(x) \) as an infinite sum of terms calculated from the values of the function’s derivatives at a single point \( a \). The complete expanded formula is:

$$f(x) = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \frac{f'''(a)}{3!}(x-a)^3 + \dots + \frac{f^{(n)}(a)}{n!}(x-a)^n + \dots$$

In compact sigma notation, this written sum becomes:

$$f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n$$

Here, \( f^{(n)}(a) \) denotes the \( n \)th derivative of \( f \) evaluated at \( x = a \). Also, \( n! \) (n factorial) is the product of all positive integers up to \( n \), with \( 0! = 1 \).

When the center point is chosen as \( a = 0 \), the formula simplifies into the Maclaurin series:

$$f(x) = f(0) + f'(0)x + \frac{f''(0)}{2!}x^2 + \frac{f'''(0)}{3!}x^3 + \dots = \sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n$$

The distinction between a series and a polynomial is key. A Taylor series continues infinitely and equals the function within its domain of convergence. However, a Taylor polynomial \( P_n(x) \) truncates after degree \( n \), producing a solvable polynomial approximation.

Why derivative matching builds polynomial approximations

Suppose you want to approximate a smooth function \( f(x) \) near a center point \( a \) using an infinite polynomial power series:

Taylor series: Wooden set squares, a ruler, and pencil on grid paper

$$P(x) = c_0 + c_1(x-a) + c_2(x-a)^2 + c_3(x-a)^3 + \dots + c_k(x-a)^k + \dots$$

To ensure \( P(x) \) closely mirrors \( f(x) \) around \( a \), you enforce the condition that \( P(x) \) and \( f(x) \) must share the exact same value and derivative values at \( x = a \):

  • Setting \( x = a \) yields \( P(a) = c_0 \), so \( c_0 = f(a) \).
  • Differentiating once gives \( P'(x) = c_1 + 2c_2(x-a) + 3c_3(x-a)^2 + \dots \); setting \( x = a \) yields \( c_1 = f'(a) \).
  • Differentiating a second time yields \( P''(x) = 2 \cdot 1 c_2 + 3 \cdot 2 c_3(x-a) + \dots \). Setting \( x = a \) gives \( P''(a) = 2c_2 \), so \( c_2 = \frac{f''(a)}{2!} \).
  • Differentiating \( k \) times and setting \( x = a \) produces \( P^{(k)}(a) = k! \cdot c_k \). Therefore, this establishes the coefficient rule \( c_k = \frac{f^{(k)}(a)}{k!} \).

The factor \( k! \) appears naturally in the denominator because repeated power-rule differentiation of \( (x-a)^k \) pulls down sequential integer multipliers \( k \cdot (k-1) \cdot (k-2) \cdots 1 = k! \). Dividing by \( k! \) balances this growth so each derivative of the polynomial matches the original function.

Geometrically, each added derivative matches a higher-order structural property of the curve at \( x = a \):

  • \( P_0(x) = f(a) \) matches the curve’s height at \( a \).
  • \( P_1(x) = f(a) + f'(a)(x-a) \) matches height and slope, forming the classic tangent line.
  • \( P_2(x) = P_1(x) + \frac{f''(a)}{2}(x-a)^2 \) matches curvature (concavity), constructing a fitting parabola.
  • \( P_3(x) \) matches the rate at which concavity changes, locking the polynomial tighter to the function over a wider interval around \( a \).

How to build a Taylor or Maclaurin polynomial step by step

Follow these five systematic steps to derive a Taylor polynomial of degree \( n \) centered at \( x = a \):

  1. Identify the inputs: State the target function \( f(x) \), the center point \( a \), and the desired degree \( n \). (Set \( a = 0 \) if computing a Maclaurin polynomial).
  2. Compute derivatives: Calculate the zero-th through \( n \)th derivatives of \( f(x) \): \( f(x), f'(x), f''(x), \dots, f^{(n)}(x) \).
  3. Evaluate at the center: Substitute \( x = a \) into every derivative to determine the scalar values \( f(a), f'(a), f''(a), \dots, f^{(n)}(a) \).
  4. Calculate coefficients: Divide each derivative value by its corresponding factorial \( k! \) to find the polynomial coefficient \( c_k = \frac{f^{(k)}(a)}{k!} \).
  5. Assemble the terms: Multiply each coefficient \( c_k \) by \( (x-a)^k \) and sum the terms from \( k = 0 \) to \( n \) to build \( P_n(x) \).

Creating a evaluation table with columns for index \( k \), derivative \( f^{(k)}(x) \), evaluated value \( f^{(k)}(a) \), factorial \( k! \), and term coefficient \( c_k \) prevents calculation errors.

Common Maclaurin series reference table

Many standard calculus problems rely on fundamental Maclaurin series expansions. For example, the table below lists essential functions, their expansions, and their convergence properties.

Students studying and taking notes in a classroom
Function Maclaurin Series Expansion Interval of Convergence
\( e^x \) \( \sum_{n=0}^{\infty} \frac{x^n}{n!} = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \dots \) \( (-\infty, \infty) \)
\( \sin x \) \( \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!} = x - \frac{x^3}{6} + \frac{x^5}{120} - \dots \) \( (-\infty, \infty) \)
\( \cos x \) \( \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{(2n)!} = 1 - \frac{x^2}{2} + \frac{x^4}{24} - \dots \) \( (-\infty, \infty) \)
\( \frac{1}{1-x} \) \( \sum_{n=0}^{\infty} x^n = 1 + x + x^2 + x^3 + \dots \) \( -1 < x < 1 \)
\( \ln(1+x) \) \( \sum_{n=1}^{\infty} \frac{(-1)^{n-1} x^n}{n} = x - \frac{x^2}{2} + \frac{x^3}{3} - \dots \) \( -1 < x \le 1 \)
\( \arctan x \) \( \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{2n+1} = x - \frac{x^3}{3} + \frac{x^5}{5} - \dots \) \( -1 \le x \le 1 \)

The \( \frac{1}{1-x} \) row is the standard infinite geometric series, which forms the building block for rational function expansions.

Worked examples: deriving Taylor and Maclaurin series

Example 1: Maclaurin series for eˣ

Every derivative of \( f(x) = e^x \) is \( e^x \). Evaluating at the Maclaurin center \( a = 0 \) gives \( f^{(n)}(0) = e^0 = 1 \) for all integers \( n \ge 0 \). As a result, applying the general formula produces:

$$e^x = \sum_{n=0}^{\infty} \frac{x^n}{n!} = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \dots$$

To evaluate Euler’s constant \( e \), set \( x = 1 \). As a result, truncating after the fifth-degree term gives:

$$P_5(1) = 1 + 1 + \frac{1}{2} + \frac{1}{6} + \frac{1}{24} + \frac{1}{120} = \frac{326}{120} \approx 2.71667$$

Comparing this with the true value \( e \approx 2.71828 \) demonstrates how rapidly the factorial denominators force polynomial approximations to converge.

Example 2: Maclaurin series for cos x and sin x

The derivatives of \( f(x) = \cos x \) repeat in a cycle of four:

  • \( f(x) = \cos x \implies f(0) = 1 \)
  • \( f'(x) = -\sin x \implies f'(0) = 0 \)
  • \( f''(x) = -\cos x \implies f''(0) = -1 \)
  • \( f'''(x) = \sin x \implies f'''(0) = 0 \)

Because all odd-order derivatives equal zero at \( x = 0 \), the series contains only even powers of \( x \) with alternating signs:

$$\cos x = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \dots = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n}}{(2n)!}$$

Testing at \( x = 0.5 \): \( P_4(0.5) = 1 - \frac{0.25}{2} + \frac{0.0625}{24} = 1 - 0.125 + 0.0026042 = 0.8776042 \). The actual value is \( \cos(0.5) \approx 0.8775826 \), showing an error of just \( 0.0000216 \).

A similar calculation for \( g(x) = \sin x \) eliminates the even terms, yielding an alternating series of odd powers:

$$\sin x = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \dots = \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!}$$

Evaluating three nonzero terms of \( \sin(0.1) \) yields \( 0.1 - \frac{0.001}{6} + \frac{0.00001}{120} \approx 0.0998334167 \), which matches the exact value to ten decimal places.

Example 3: Taylor series centered away from zero (ln x at a = 1)

You cannot create a Maclaurin series for \( f(x) = \ln x \) because \( \ln(0) \) is undefined. Instead, center the expansion at \( a = 1 \):

  • \( f(x) = \ln x \implies f(1) = 0 \)
  • \( f'(x) = x^{-1} \implies f'(1) = 1 \)
  • \( f''(x) = -x^{-2} \implies f''(1) = -1 \)
  • \( f'''(x) = 2x^{-3} \implies f'''(1) = 2 \)
  • \( f^{(4)}(x) = -6x^{-4} \implies f^{(4)}(1) = -6 \)

For \( n \ge 1 \), the pattern for derivative values at \( x = 1 \) is \( f^{(n)}(1) = (-1)^{n-1}(n-1)! \). Dividing by \( n! \) simplifies the coefficient to \( c_n = \frac{(-1)^{n-1}(n-1)!}{n!} = \frac{(-1)^{n-1}}{n} \). Thus, the Taylor series centered at 1 is:

$$\ln x = (x-1) - \frac{(x-1)^2}{2} + \frac{(x-1)^3}{3} - \frac{(x-1)^4}{4} + \dots = \sum_{n=1}^{\infty} \frac{(-1)^{n-1}(x-1)^n}{n}$$

Example 4: Estimating √4.2 by hand with Taylor polynomials

To approximate \( \sqrt{4.2} \), choose a center \( a = 4 \) where the square root evaluates to an exact integer. Let \( f(x) = x^{1/2} \):

  • \( f(4) = \sqrt{4} = 2 \)
  • \( f'(x) = \frac{1}{2}x^{-1/2} \implies f'(4) = \frac{1}{2\sqrt{4}} = \frac{1}{4} \)
  • \( f''(x) = -\frac{1}{4}x^{-3/2} \implies f''(4) = -\frac{1}{4(8)} = -\frac{1}{32} \)

Dividing \( f''(4) \) by \( 2! \) gives the coefficient \( c_2 = -\frac{1}{64} \). The second-degree Taylor polynomial is:

$$P_2(x) = 2 + \frac{x-4}{4} - \frac{(x-4)^2}{64}$$

Substituting \( x = 4.2 \) gives:

$$P_2(4.2) = 2 + \frac{0.2}{4} - \frac{(0.2)^2}{64} = 2 + 0.05 - \frac{0.04}{64} = 2 + 0.05 - 0.000625 = 2.049375$$

The true value of \( \sqrt{4.2} \) is approximately \( 2.0493902 \). The second-degree polynomial achieves an absolute error of only \( 0.0000152 \).

Example 5: Integrating non-elementary functions

Some definite integrals cannot be evaluated using elementary antiderivatives, such as \( \int_0^1 e^{-x^2} dx \). By substituting \( -x^2 \) into the Maclaurin series for \( e^t \), you can integrate term by term:

$$e^{-x^2} = 1 - x^2 + \frac{x^4}{2!} - \frac{x^6}{3!} + \frac{x^8}{4!} - \dots$$

Integrating each term from 0 to 1 gives:

$$\int_0^1 e^{-x^2} dx = \left[ x - \frac{x^3}{3} + \frac{x^5}{10} - \frac{x^7}{42} + \frac{x^9}{216} - \dots \right]_0^1 = 1 - \frac{1}{3} + \frac{1}{10} - \frac{1}{42} + \frac{1}{216} - \dots$$

Summing the first five terms yields \( 1 - 0.333333 + 0.1 - 0.023810 + 0.004630 \approx 0.747487 \). The exact value is approximately \( 0.746824 \). Term-by-term integration of Taylor series provides the foundation for evaluating the Gaussian integral across statistics and probability theory.

Building new series from known series using shortcuts

Calculating higher-order derivatives from scratch can quickly become tedious. Instead, you can construct new series by applying algebraic operations to standard Maclaurin series:

Two hands holding two matching puzzle pieces together
  • Algebraic substitution: Replace \( x \) with a composite expression. For example, to expand \( e^{-x^2} \), substitute \( -x^2 \) for \( x \) in the series for \( e^x \). This obtains \( 1 - x^2 + \frac{x^4}{2} - \frac{x^6}{6} + \dots \)
  • Polynomial multiplication: Multiply a series by a monomial or polynomial. For example, multiplying \( \sin x \) by \( x \) gives \( x\sin x = x\left(x - \frac{x^3}{6} + \frac{x^5}{120} - \dots\right) = x^2 - \frac{x^4}{6} + \frac{x^6}{120} - \dots \)
  • Term-by-term integration: Integrate a known series term by term. Starting with \( \frac{1}{1+x^2} = 1 - x^2 + x^4 - x^6 + \dots \) and integrating gives the Maclaurin series for \( \arctan x = x - \frac{x^3}{3} + \frac{x^5}{5} - \dots \)
  • Term-by-term differentiation: Differentiate a series term by term. For example, differentiating \( \frac{1}{1-x} = 1 + x + x^2 + x^3 + \dots \) produces \( \frac{1}{(1-x)^2} = 1 + 2x + 3x^2 + 4x^3 + \dots \)

How to measure approximation error with the Lagrange error bound

When using a finite Taylor polynomial \( P_n(x) \) to approximate \( f(x) \), the difference between the true function value and the approximation is the remainder term \( R_n(x) = f(x) - P_n(x) \).

A metal vernier caliper tool on a plain white background

Lagrange error bound theorem: The magnitude of the remainder term \( |R_n(x)| \) is bounded by:

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

where \( M \) is the maximum absolute value of the \( (n+1) \)th derivative, \( |f^{(n+1)}(t)| \), on the closed interval between the center \( a \) and the target evaluation point \( x \).

Consider the error bound for Example 4, where \( f(x) = \sqrt{x} \), \( a = 4 \), \( x = 4.2 \), and \( n = 2 \):

  • The third derivative is \( f'''(x) = \frac{3}{8x^{5/2}} \).
  • On the interval ( [4, 4.2] ), \( f'''(x) \) achieves its maximum at the left endpoint \( x = 4 \), giving \( M = f'''(4) = \frac{3}{8(32)} = \frac{3}{256} \approx 0.01171875 \).
  • Applying the error bound formula yields:

$$|R_2(4.2)| \le \frac{3/256}{3!} |4.2 - 4|^3 = \frac{3/256}{6} (0.008) = \frac{0.024}{1536} \approx 0.0000156$$

The true absolute error calculated earlier was \( 0.0000152 \), which confirms that the Lagrange error bound provides a tight upper limit.

For alternating series with terms that strictly decrease in magnitude toward zero, you can use the Alternating Series Estimation Theorem: the absolute error of truncating the series after \( n \) terms is strictly less than the magnitude of the very first omitted term \( |a_{n+1}| \).

Where Taylor series stop working: radius and interval of convergence

A Taylor series does not automatically converge to its function for all values of \( x \). However, every power series possesses a radius of convergence \( R \ge 0 \):

  • The series converges absolutely for all \( x \) satisfying \( |x - a| < R \).
  • The series diverges for all \( x \) satisfying \( |x - a| > R \).
  • At the endpoints \( x = a - R \) and \( x = a + R \), convergence must be tested individually.

To find the exact value of \( R \), apply the ratio test to the absolute value of the general term \( a_n(x) \):

$$\lim_{n \to \infty} \left| \frac{a_{n+1}(x)}{a_n(x)} \right| < 1$$

For functions like \( e^x \), \( \sin x \), and \( \cos x \), the radius of convergence is infinite \(( R = \infty )\). This means the series converges across all real numbers. However, for rational functions like \( f(x) = \frac{1}{1-x} \), the series converges only on the interval \( (-1, 1) \). This is because the function experiences an unapproachable vertical asymptote at \( x = 1 \).

A function can also fail to match its Taylor series due to non-analytic behavior. For example, the smooth function \( f(x) = e^{-1/x^2} \) (with \( f(0) = 0 \)) has derivatives at \( x = 0 \) that all equal zero. Its Maclaurin series is identically zero (\( 0 + 0 + 0 + \dots \)), which converges everywhere but equals \( f(x) \) only at the single point \( x = 0 \).

Common mistakes when finding Taylor series

  • Omitting factorial denominators: Failing to divide \( f^{(n)}(a) \) by \( n! \) is the most common student error. As a result, without factorials, higher-degree terms grow far too rapidly.
  • Forgetting to center terms at a: Writing \( x^n \) instead of \( (x-a)^n \) when centered at \( a \neq 0 \) silently shifts the center back to zero, yielding incorrect polynomial evaluations.
  • Confusing polynomial degree with the number of nonzero terms: The degree \( n \) refers to the highest exponent power \( (x-a)^n \). It is not the count of visible terms. For instance, \( P_4(x) \) for \( \cos x \) contains powers \( x^0, x^2, x^4 \). This is three non-zero terms, but its polynomial degree is 4.
  • Evaluating outside the interval of convergence: Attempting to compute \( \ln(3) \) by substituting \( x = 2 \) into the Maclaurin series for \( \ln(1+x) \) produces a divergent series because \( x = 2 \) lies outside the valid interval ( (-1, 1] ).
  • Dropping cyclic derivative signs: Sine and cosine derivatives alternate between positive and negative values. Always create an explicit list of derivative values before building terms.

Practical applications in calculus and science

  • Hardware evaluation algorithms: Calculators and computer hardware use truncated series approximations and CORDIC routines to evaluate trigonometric, exponential, and logarithmic functions.
  • Evaluating indeterminate limits: Replacing complicated functions with their Taylor expansions allows you to evaluate limits instantly without applying L’Hôpital’s rule repeatedly. For example:

$$\lim_{x \to 0} \frac{\sin x - x}{x^3} = \lim_{x \to 0} \frac{\left(x - \frac{x^3}{6} + \frac{x^5}{120} - \dots\right) - x}{x^3} = \lim_{x \to 0} \left( -\frac{1}{6} + \frac{x^2}{120} - \dots \right) = -\frac{1}{6}$$

  • Physics and engineering approximations: Simplifying non-linear equations using small-angle linearizations. For example, in classical mechanics, approximating \( \sin\theta \approx \theta \) simplifies the non-linear pendulum differential equation into a simple harmonic oscillator. This approximation is identical to the limit of sin x over x equaling 1 as \( x \) approaches zero.

Taylor polynomial calculator

Use this interactive tool to select a target function \( f(x) \), center point \( a \), degree \( n \), and evaluation point \( x \). This allows you to inspect exact polynomial approximations. For extended options and derivations, visit the dedicated Taylor series calculator page.

A calculator on financial papers next to a pen
Series & Limits#19

Taylor Polynomial Generator

Degree-\(n\) Taylor/Maclaurin polynomial centered at \(a\), with error check.

Practice problems and step-by-step solutions

Test your understanding of Taylor and Maclaurin series with these six practice problems.

  1. Find the Maclaurin series expansion of \( e^{2x} \) up to the term containing \( x^3 \).
  2. Find the Maclaurin series expansion of \( x\cos x \) up to the term containing \( x^5 \).
  3. Evaluate \( \lim_{x \to 0} \frac{e^x - 1 - x}{x^2} \) using series expansions.
  4. Find the degree 2 Taylor polynomial of \( f(x) = \frac{1}{x} \) centered at \( a = 1 \).
  5. Estimate \( e^{0.1} \) using the first three terms of its Maclaurin series and compute the absolute error.
  6. Determine the interval of convergence for the Maclaurin series of \( \frac{1}{1+x^2} \).

Worked Solutions:

1. Solution: Substitute \( 2x \) into the standard series for \( e^t = 1 + t + \frac{t^2}{2} + \frac{t^3}{6} + \dots \):

$$e^{2x} = 1 + (2x) + \frac{(2x)^2}{2} + \frac{(2x)^3}{6} = 1 + 2x + 2x^2 + \frac{4}{3}x^3$$

2. Solution: Multiply \( x \) by the Maclaurin series for \( \cos x = 1 - \frac{x^2}{2} + \frac{x^4}{24} - \dots \):

$$x\cos x = x\left(1 - \frac{x^2}{2} + \frac{x^4}{24}\right) = x - \frac{x^3}{2} + \frac{x^5}{24}$$

Example 6: evaluating limits

3. Solution: Replace \( e^x \) with its Maclaurin series \( 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \dots \):

$$\lim_{x \to 0} \frac{\left(1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \dots\right) - 1 - x}{x^2} = \lim_{x \to 0} \frac{\frac{x^2}{2} + \frac{x^3}{6} + \dots}{x^2} = \lim_{x \to 0} \left( \frac{1}{2} + \frac{x}{6} + \dots \right) = \frac{1}{2}$$

4. Solution: Compute derivatives of \( f(x) = x^{-1} \) at \( a = 1 \): \( f(1) = 1 \), \( f'(1) = -1 \), \( f''(1) = 2 \). As a result, assembling \( P_2(x) \):

$$P_2(x) = 1 - (x-1) + \frac{2}{2!}(x-1)^2 = 1 - (x-1) + (x-1)^2$$

5. Solution: Using the first three terms of the Maclaurin series \( 1 + x + \frac{x^2}{2} \):

$$P_2(0.1) = 1 + 0.1 + \frac{0.01}{2} = 1 + 0.1 + 0.005 = 1.105$$

The true value is \( e^{0.1} \approx 1.1051709 \), yielding an absolute error of \( 0.0001709 \).

6. Solution: Substitute \( -x^2 \) into the geometric series \( \frac{1}{1-t} = \sum_{n=0}^{\infty} t^n \):

$$\frac{1}{1+x^2} = 1 - x^2 + x^4 - x^6 + \dots = \sum_{n=0}^{\infty} (-1)^n x^{2n}$$

The geometric series converges for \( |t| < 1 \implies |-x^2| < 1 \implies |x| < 1 \). Testing the endpoints \( x = \pm 1 \) shows that the terms do not approach zero \(((-1)^n \neq 0)\), so the series diverges at both boundaries. The open interval of convergence is \( (-1, 1) \).

Frequently asked questions

What’s the difference between Taylor and Maclaurin series?

A Maclaurin series is simply a Taylor series centered specifically at \( a = 0 \). While a Taylor series can expand a function around any center point \( a \) in its domain, a Maclaurin series uses zero as its default reference point.

Does every function equal its Taylor series?

No. A smooth function equals its Taylor series only within its radius of convergence, and only if the function is analytic. You can confirm the domain over which a series converges by applying the ratio test.

What’s the difference between a Taylor polynomial and a Taylor series?

A Taylor series is an infinite sum that represents an analytic function exactly within its interval of convergence. A Taylor polynomial is a finite truncation of that series up to degree \( n \), producing a practical approximation whose maximum error can be estimated using the Lagrange error bound.

How many terms do I need for accurate calculations?

The number of required terms depends on the distance \( |x - a| \) from the center point and your desired decimal precision. You can determine the necessary degree \( n \) by solving for when the Lagrange error bound \( \frac{M}{(n+1)!}|x-a|^{n+1} \) falls below your maximum tolerable error.

Why choose a center other than zero?

Choosing a center point \( a \) near your evaluation point \( x \) keeps \( |x - a| \) small. As a result, higher-degree terms shrink rapidly and require fewer terms for high accuracy. Centering away from zero is also necessary when a function or its derivatives are undefined at zero, such as \( \ln x \) or \( \sqrt{x} \).

Further reading

Calculators for this topic

Get new calculus guides by email

Free worked examples and new calculators, at most once a day. Unsubscribe with one click.

Leave a comment

Your email address will not be published. Required fields are marked *