Worked ExampleCalculusIntermediateMath Workspace (CAS)

Find a Taylor polynomial and estimate the error

This example builds the degree-5 Taylor polynomial of centred at , evaluates it at , and confirms that the actual error stays inside the bound given by Taylor's theorem.

Primary Tool

Math Workspace (CAS)

Open CAS workspace

CAS keeps the derivative computations, coefficient extraction, polynomial evaluation, and error check in a single readable transcript. Each step can be verified or extended directly in the workspace.

Why Taylor polynomials matter

Most functions are not polynomials, but polynomials are easy to evaluate. Taylor's theorem says that near a chosen centre , a smooth function can be approximated by a polynomial whose coefficients come from the derivatives of the function at .

The formula is . The approximation gets better as increases, and Taylor's theorem gives an explicit bound on the error in terms of the next derivative.

Step-by-step: building for at

The goal is to find the coefficients for .

  1. 1Compute the derivatives: . The pattern repeats with period 4.
  2. 2Evaluate each at : . Even-order derivatives are zero because .
  3. 3Divide by the corresponding factorials: , , , , , .
  4. 4Assemble the polynomial: .
  5. 5Evaluate at : .
  6. 6Compare with . The error is about .

Checking the error bound

Taylor's theorem says the remainder after terms satisfies , where is a bound on between and .

For , every derivative has absolute value at most , so . After 5 terms the next non-zero term is . At , the bound is .

The actual error is just below this bound, confirming Taylor's theorem and showing that the bound is tight for near the origin.

What changes when you pick a different centre or degree

Centring at instead of would produce a polynomial that is accurate near but less accurate far from it. The coefficients would involve and instead of and .

Increasing the degree shrinks the error. Adding the term reduces the error from to roughly at . Each extra term buys roughly three more decimal places of accuracy near the origin.

Common Pitfall

The Taylor polynomial is not the same as the Taylor series. The polynomial stops at degree ; the series is an infinite sum and converges to the function only where the remainder goes to zero.

Try a Variation

Build for and estimate the error at . Does the bound still hold? How does reducing the degree affect accuracy further from the centre?

Related Pages

Keep moving through the cluster

Back to Learn Math →