Trigonometry/Power Series for e to the x

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Compound interest[edit | edit source]

What function satisfies

 ?

That is, for what function is the rate of growth equal to the current value?

This kind of relationship where the rate of growth is proportional to the current value is the relationship underlying compound interest. If you're receiving compound interest on a sum of money and reinvest the income, the amount you get in a fixed time is proportional to the amount of money that you have at the start of that time. If you start with 2 units it goes to 4, then 8 then 16 then 32 and so on. So is

a good candidate for a function that satisfies the differential equation? If we approximately evaluate the slope at we get about 0.69. Some expression like looks promising, but 2 is too small a constant.

If we instead try

We find the slope at zero is about 1.09. 3 is too large a constant, but not by much. If this is going to work for some number so that we will want that number to be between 2 and 3. We're not saying that it is possible, just that it looks a promising avenue to explore. It will turn out that there is a number that works.

Power Series[edit | edit source]

We can try a completely different approach, as if we didn't know that raising some number to the power of is a good thing to try.

Suppose that could be expressed as a power series, in terms of that is that:

Then differentiating term by term, assuming that this all makes sense, we'd have:

For the differential relation to hold, equating corresponding coefficients term by term we'd need:

And this will be so if we put:

Where is the factorial function and means and similarly for other values.

In other words:

We now have to check that this formula makes some kind of sense.

Convergence[edit | edit source]

The main problem is that we have an infinite sum. A sum like is unbounded. Even a sum like would be a problem for us. On the other hand, some sums are OK. If we look at

We can see this is well behaved, and if we go far enough it gets as close to 2 as we like.

Let us put in

At first this does not look very promising.

The terms are getting bigger, and we appear to be in a worse situation than

However, we are being too hasty. Whilst in each term the numerator is the denominator is . The amount the numerator is multiplied by as we move right one term is , which is 10 in our case. The amount by which the denominator is being multiplied as we move right one term is however increasing. By the time we get to the twenty first term we have divided by . The numerator of the next term is 10 times bigger and the denominator is 21 times bigger. So from the 22nd term onwards each term is less than half the size of the term before it!

With , the sum of all the terms from the 22nd term onwards is not going to go off to infinity. In fact that sum must be less than twice the twenty second term. If we add in the first twenty one terms too, we are still not going to go off to infinity.

We have just shown that if we plug the value into the equation we get a finite sum, and the sum makes sense. It might be some work to calculate it, but we can get as close as we like by going far enough along the sum. That wouldn't be so if the sum went off to infinity. Almost exactly the same argument works for or any other positive value we choose, though for larger values we have to go further before the terms start halving or better.

Negative values of also work, but introduce a very slight technical complication. One way to handle it is to rely on the alternating sum:

being well behaved. It sums to , or in other words we can get as close as we like to the value by going far enough.

What we have just seen is that the formula:

Makes sense for all values of , whether positive or negative. It also makes sense for x=0 when it evaluates to 1.

Does Differentiation Term by Term Make Sense?[edit | edit source]

If

Does it make sense to differentiate it term by term and write:

Notice that what we have done here is, for example, differentiate to and then cancel the 3 with a 3 in the '3!' to make it '2!'.

Certainly if we take the first 1000 terms of , then we just have a polynomial, and differentiating the polynomial term by term is fine. We'll then have the first 999 terms of what we claim is . Unfortunately we have to be a little careful. Just because our error in approximating f(x) is small it does not immediately follow that our error in estimating is small too.

Small function with big derivative

Consider the function

Because the function is small, but close to x=0 its derivative gets very big. Use the chain rule to differentiate g(x) and calculate its derivative for is one millionth.

Can be more than a million times bigger than for this function?


Exponential function[edit | edit source]

missing proper intro