Taylors Theorem
Ever wondered how your calculator instantly knows the sine of a weird angle or the value of
What Is Taylor's Theorem?
Taylor's Theorem is a powerful mathematical tool that allows us to approximate any smooth, continuous function with a much simpler polynomial. Think of it like creating a highly detailed sketch of a complex object. You start with a single point, then add a straight line to capture its direction, then a curve to match its bend, and so on. Each new detail you add makes your sketch a better representation of the real object.
In the same way, a Taylor polynomial starts with a single point on a function and adds terms one by one. Each term is carefully chosen to match the original function's properties (like its value, its slope, its curvature, and so on) at that specific point. The more terms we add to our polynomial, the more it 'hugs' the original function, creating an incredibly accurate approximation, especially close to our starting point.
This is incredibly useful because polynomials are easy to work with. They only involve basic arithmetic: addition, subtraction, multiplication, and raising numbers to powers. This means we can replace a very complicated function, like
Why Do We Need to Approximate Functions?
You might wonder why we can't just use the original functions. The truth is, computers and calculators are fundamentally simple machines. They excel at basic arithmetic (add, subtract, multiply, divide), but they don't inherently 'know' what
Instead, they use clever approximations. When you ask your calculator for
This idea is crucial in many fields:
- Physics: Physicists often simplify complex equations of motion by using the first couple of terms of a Taylor series, which is accurate enough for small oscillations or movements.
- Engineering: Engineers use these approximations to model and predict the behavior of complex systems, from electrical circuits to the bending of a bridge.
- Computer Graphics: The smooth curves you see in video games and animated movies are often generated and manipulated using principles related to polynomial approximations.
In short, Taylor's Theorem is the bridge that connects complex, abstract functions to the concrete, arithmetic world of computation.
How Do We Build an Approximation?
Let's build our 'impersonator' polynomial step-by-step. Our goal is to approximate a function
Step 1: Match the Value (The Zero-Order Approximation)
The simplest possible guess is to say that for any
This is a horizontal line. It's correct at exactly one point (
Step 2: Match the Slope (The First-Order Approximation)
To make our approximation better, let's make its slope match the slope of the original function at
The equation of a line that passes through
This is the tangent line approximation. It's much better than the horizontal line because it points in the same direction as the function at
Step 3: Match the Curvature (The Second-Order Approximation)
A straight line is good, but most functions are curvy. To capture this, we need to match the function's curvature. Curvature is related to how the slope is changing. The 'rate of change of the slope' is called the second derivative, written as
This quadratic approximation 'hugs' the original function much more closely than the tangent line.
What Is the General Formula for a Taylor Polynomial?
By now, you might see a pattern emerging. We matched the value, then the slope (1st derivative), then the curvature (2nd derivative). We can continue this process, matching the rate of change of the curvature (3rd derivative,
To do this, we need two key ingredients in each term:
- Powers of
: We use terms like , , , etc. - Factorials: The denominator of each new term follows a pattern:
. This is the factorial function! Remember that (read as 'n factorial') is . For example, and . We define and .
Combining these ideas gives us the general formula for the n-th degree Taylor Polynomial of
Here,
Putting It All Together: Worked Examples
Let's see how this works in practice by building Taylor polynomials for some famous functions. For these examples, we'll use the center
Find the first four non-zero terms of the Taylor polynomial for
Step 1: Find the derivatives.
The function
Step 2: Evaluate the derivatives at
Since
Step 3: Plug into the formula.
We use the general formula with
Now substitute our values:
This polynomial is a great approximation for
Find the Taylor polynomial of degree 5 for
Step 1: Find the derivatives.
The derivatives of sine follow a cycle:
Step 2: Evaluate at
We know that
Step 3: Plug into the formula.
Notice that all the even-powered terms will be zero!
This is how your calculator finds the value of sine!
Find the Taylor polynomial of degree 4 for
Step 1: Find the derivatives.
This is similar to sine. The cycle is
Step 2: Evaluate at
Step 3: Plug into the formula.
This time, all the odd-powered terms are zero.
Let's see how good this is. Let's approximate
Our approximation gives:
What Are Some Common Mistakes to Avoid?
When you first start working with Taylor polynomials, there are a few common traps to watch out for. Being aware of them can save you a lot of trouble!
- Forgetting the Factorial: This is the most common mistake. Every term in the polynomial (except the first) has a factorial in the denominator. Don't forget to write
and calculate its value. - Forgetting the
Term: Each derivative value is just a number. It must be multiplied by the corresponding power of to be part of the polynomial. - Evaluating Derivatives at
instead of : The coefficients of the Taylor polynomial are constants. You must plug the center value into the derivatives (e.g., ), not leave them as functions of (e.g., ). - Assuming the Approximation is Perfect Everywhere: A Taylor polynomial is an excellent approximation near its center
. As you move farther away from , the approximation usually gets worse. It's a local impersonator, not a global twin. - Calculation Errors: The derivatives for sine and cosine involve alternating signs. It's very easy to drop a negative sign, which will throw off the entire polynomial. Double-check your work!
Taylor's Theorem in a Nutshell
Here are the key takeaways from our exploration of Taylor's Theorem:
- Core Idea: Taylor's Theorem allows us to approximate complicated, curvy functions using simple polynomials.
- The Center: Every approximation is built around a specific point
. The approximation is most accurate near this center point. - The Building Blocks: To create the polynomial, we match the function's properties at point
: its value, its slope (1st derivative), its curvature (2nd derivative), and so on. - The Formula: Each term in the polynomial has three parts: the derivative evaluated at
( ), a factorial in the denominator ( ), and a power of ( ). - More is Better: Generally, the more terms you add to the polynomial, the better the approximation becomes over a wider range of
values. - Why It Matters: This theorem is the mathematical engine that allows computers and calculators to compute values for functions like sine, cosine, and
quickly and accurately.
Frequently Asked Questions
Is a Taylor series the same as a Taylor polynomial?
They are very closely related. A Taylor polynomial has a finite number of terms (it stops). A Taylor series is what you get if you continue the pattern forever, with an infinite number of terms. For some functions, the infinite series is exactly equal to the original function.
Why is it centered around a point 'a'?
The center 'a' is our point of reference where we know everything about the function (its value, slope, etc.). The approximation is built to be perfect at that point, so it's naturally most accurate nearby. We choose 'a' to be a convenient point, often one where the derivatives are easy to calculate, like
Do all functions have a Taylor series?
No, not all of them. A function must be 'smooth' and infinitely differentiable at the center point 'a' to have a Taylor series. This means you must be able to take its derivative over and over again without running into breaks, corners, or gaps.
How do calculators actually use this?
A calculator's processor has a pre-programmed Taylor polynomial (or a similar, more optimized polynomial) for functions like sine, cosine, and logarithms. When you input a number, it plugs that number into the polynomial and performs the simple arithmetic to get a highly accurate result almost instantly.
What does the factorial part (n!) in the formula do?
The factorial in the denominator is a scaling factor. When you take derivatives of polynomials, you get coefficients like
How many terms do I need for a 'good' approximation?
It depends on how much accuracy you need and how far you are from the center 'a'. For values of
Who was Brook Taylor?
Brook Taylor was an English mathematician who lived in the early 18th century. While the core ideas were known by other mathematicians before him, he formalized and published the general theorem in 1715, and so it was named after him.