Skip to main content

A Different Way to Memorize the Taylor Series and a Cry For Mathematical Help

A Different Way to Memorize the Taylor Series and a Cry For Mathematical Help

As an undergrad, and throughout my graduate career until now, I've always had a hard time remembering how to apply a Taylor series.  I knew there were coefficients in front of powers of x and that those coefficients somehow involved derivatives of the function I was trying to aproximate with the Taylor series, but that was aobut it.  Even when I looked up the formula, there was still always some initial confusion.  I'd arrive at an equation that looked like the following

followed by a little bit of text blithely informing that if I'd only take the nth derivative of both sides of the equation, and evaluate the derivative at x = b, then of course I'd see that the coefficient a sub n could be written as

This inevitably led to having to remember that the first n-1 terms in the sum would become zero after they were differentiated n times, and that the terms of n+1 and above would become zero when x was equal to b so that only the term containing a sub n was left.  Perhaps I'm a bit slow, but that was my process every single time.

Looking at the formulas last night for the umpteenth time, it occurred to me that the first two terms in the Taylor series are how we approximate functions when we only want to add a small change in x.  We get the value for the function at x equals b, then approximate the function as a straight line and multiply the slope of that line times a small change in x to get the approximate value of the function at the location b plus our small change in x

In other words, we as the question, how does our function change for a small change in x, (what's it's slope with respect to x?), and then multiply that slope by our small change in x to get the associated small change in the function.

Now, look at a Taylor series with three terms:

The second term is the slope with respect to x I just mentioned.  If we write the second derivative in a different notation, we have

which, when I squint at it in just the right light looks for all the world like the amount my function will change for a small change in x squared.  An then with a second look, I see that the derivative is in fact multiplied by x squared.  It's slightly more visible if we take b equal to zero, and rewrite the series as:

This looks kind of great!  A Taylor series is just a series of corrections that ask what's the slope of my function with respect to a power of x and then multiplies that slope by the particular power of x.  That's far easier for me to remember, but there's still one issue left.  What about the annoying factors of one over n factorial out in front of each term?

And, that brings me to my second mathematical sin for the day, or more politely worded, my second opportunity to be mathematically clarified. I'm calling it the inverse chain rule.  The chain rule provides a way to take the derivatives of composite functions like 

by first taking the derivative of the outer function, (cosine in this case), with respect to its argument, (x squared in this case), then determining how the argument changes with respect to x and finally determining the entire change with respect to x by multiplying the two changes together. So, using the chain rule, I can ask the question: how does my function of x squared change with respect to x?

A Little Formal Math Help Please?
In my above reasoning, I've asked the inverse of the chain rule question.  I'm asking, (for the third term), how my function of x varies with respect to x squared.  The terms of n factorial are just one over the nth derivative of the power of x I'm interested in

Since I've asked the inverse of the chain rule question question, I'm guessing that instead of multiplying [the derivative of the my function with respect to x to the n] by [the derivative of x to the n with respect to x] that multiplying by the inverse of [the derivative of x to the n with respect to x].  I know this is correct because it gives the correct terms for a Taylor series, but I don't know how to say it formally or explain it completely.  Would anyone like to clarify... please?

Summary of the Method
So, at the end of the day, the way I will now always remember the Taylor series is as a set of patches in powers of x to an approximtaion.  I multiply each power of x by the slope of the function with respect to that power of x.  To take care of the inverse chain rule, if the power is n, I then divide by the nth derivative of the nth power of x, (also known as n factorial).

Picture of the Day:
From 1/27/13


Popular posts from this blog

Cool Math Tricks: Deriving the Divergence, (Del or Nabla) into New (Cylindrical) Coordinate Systems

The following is a pretty lengthy procedure, but converting the divergence, (nabla, del) operator between coordinate systems comes up pretty often. While there are tables for converting between common coordinate systems, there seem to be fewer explanations of the procedure for deriving the conversion, so here goes!

What do we actually want?

To convert the Cartesian nabla

to the nabla for another coordinate system, say… cylindrical coordinates.

What we’ll need:

1. The Cartesian Nabla:

2. A set of equations relating the Cartesian coordinates to cylindrical coordinates:

3. A set of equations relating the Cartesian basis vectors to the basis vectors of the new coordinate system:

How to do it:

Use the chain rule for differentiation to convert the derivatives with respect to the Cartesian variables to derivatives with respect to the cylindrical variables.

The chain rule can be used to convert a differential operator in terms of one variable into a series of differential operators in terms of othe…

The Valentine's Day Magnetic Monopole

There's an assymetry to the form of the two Maxwell's equations shown in picture 1.  While the divergence of the electric field is proportional to the electric charge density at a given point, the divergence of the magnetic field is equal to zero.  This is typically explained in the following way.  While we know that electrons, the fundamental electric charge carriers exist, evidence seems to indicate that magnetic monopoles, the particles that would carry magnetic 'charge', either don't exist, or, the energies required to create them are so high that they are exceedingly rare.  That doesn't stop us from looking for them though!

Keeping with the theme of Fairbank[1] and his academic progeny over the semester break, today's post is about the discovery of a magnetic monopole candidate event by one of the Fairbank's graduate students, Blas Cabrera[2].  Cabrera was utilizing a loop type of magnetic monopole detector.  Its operation is in concept very simpl…

Kids R Kapable

Just a little note to concerned ‘grownups’ everywhere.  If you look at a kid—and I mean really look—I don’t mean notice a person shorter than you, I mean make eye contact, notice their facial expression and observe their body language—If you look at a kid, don’t assume they need your help unless they’re obviously distressed, or ask for it.  You might think this is difficult call to make.  You might think, not having kids of your own, that you’re unable to make this determination.  You are.  You do in fact, already have the skills even if you’ve never been around kids  It’s a remarkably simple call to make, just use the exact same criteria you would for determining if an adult was in distress.  Because, guess what, kids and adults are in fact the same species of animal and communicate in the same way.  Honest.  If someone—adult or child—doesn’t need your help, feel free to say hello, give a wave, give a smile, but don’t—do not—try to force help on anyone that doesn’t want or need it.