So, we saw in the last section that we could work out the polynomial expression for both using combinatorics as well as using calculus. We had also found previously that for small we could just take the first couple of terms of the polynomial and it was a good approximation of the function itself, depending on how accurate we needed the answer. For instance, for small , is a reasonable approximation. One thing to note is that the value of these two functions is exactly the same at and the derivative of both functions is the same at . The second derivatives are not the same, but had we taken the next term in the polynomial, the second derivatives would have matched as well.
OK, let’s take this one step further and repeat everything exactly as before, but now with the power, not as 5 but as 5.2 and see what happens. This is going to be a copy-paste with edits. We will start by assuming that we can approximate this function with a polynomial expression s let’s presume that we have:
where the are the coefficients that we’re going to try and calculate. Well, the first thing we can do is to say what happens when we fix on both sides of the above equation. We are going to get:
So just as before. Now we have
What if we now take a derivative of both sides of this with respect to ?
Now let’s set again:
So we know what is, ie 5.2. Now let’s repeat. Take another derivative:
and setting will give us: . Do this again and we get:
which gives us . Again, take another derivative. Everything is feeling pretty similar to the case we looked at previously, other than the fact that now we don’t have integers:
which gives …and again…
which gives . Now this is interesting. Previously when we looked at this we had which is a constant, and when we took the next derivative, the term on the left vanished, which gave us . This isn’t going to happen here. Let’s see. Take another derivative:
Now, setting we definitely don’t have but we have
Now we see that we could include more terms on the right hand side in the original polynomial expression and we could continue this process indefinitely. The next term (show this for yourself) would give:
etc. In fact it seems that we can carry on with this indefinitely. The point was that when the power was an integer, as in the first example, we reached a point where we had a constant on the right hand side, and then taking further derivatives of this gave us zero for all higher order terms in the polynomial. In the case of a non-integer we seemed to have skipped the constant completely and gone into negative powers of and thus this polynomial goes on for ever (in fact it’s known as an infinite series expansion). If we were to take all of the information we’ve just worked out for the coefficients and put it all together again we would find:
It was very important that in order to find this series we kept setting to find out what the constants were. What we are really doing is asking that the function on the left, and the polynomial on the right have the same derivative at . Our polynomial function is going to be a good approximation to the function itself, but only around . Could we have chosen another value to “expand around” (this means to approximate a function around a particular value of )? Absolutely. But we would have set the problem up slightly differently. Let’s say we wanted to approximate our function, not around but around . We would have set up the polynomial as:
Such that when we set all terms on the right but the constant terms left over will vanish. We can do better than this and improve our notation and right:
where is the highest power we want in our polynomial expansion. This is up to us as to how accurate we want our approximation. The more terms, the more accurate it will be.
Let’s do this. We will alternately be setting , calculating what the only remaining on the right hand side is, and then taking another derivative in the expression without having set . Exactly as above, but instead of setting , we set .
Show for yourself that the answer for the first 3 terms is:
In the next section we’re going to do exactly the same thing, but now for a very different function which looks pretty complicated and we’re going to see how we can approximate it by a polynomial expression. This is going to lead to a general formula for these methods.
What we are doing here is the method of Taylor Polynomials. That is approximating a function near to a certain value of by a polynomial expression. If we are approximating it near then this is a special case of the Taylor Polynomial, and is called a Maclaurin Polynomial.
[…] MAM1000 lecture notes part 20, part ii – Taylor polynomials […]