Everybody doing any kind of geometry, calculus or higher algebra will have stumbled over this number:
More commonly it is known as , Euler's number. You may wonder, where does this number come from and why is it so important? Well... If you are like me that is: waiting for simulations to finish, having 20 minutes of spare time on your hands, and having a tenacious drive to understand things. So come along as I explain two different ways that result explain where this beautiful number comes from.
Rather than diving into derivatives and integrals, let me begin with an explanation that may be more comprehensible and easily relates to reality: compound interest. Interest is a percentage by which the amount of your savings in a bank increase. Imagine you are lucky and receive an interest offer of 100% per annum. This effectively means that your savings will double after every year.
Now, what if the bank offers you 50%, but after 6 months. Would you take the deal? Quick napkin-maths will show that you should definitely take that deal. In fact, you would not only double your savings, but receive 1.25 times what you already have.
Since no bank in the world would offer such extreme interest rates, let's carry on with this slightly ludicrous thought experiment, Let's decrease the interest rate to , which is paid every month. The formula would now become quite long, yet the result is an increase by 1.613. Rather than writing out the full chain of products I will simply raise the brackets to the power of 12:
As you can see, despite reducing the interest rate, if the payout frequency is inversely proportional, you will always receive a tiny bit more. So you might think: so why not pay out every day?
Or why not every second of the year?
Hmmm... You may think that the multiplication is stagnating, and you are right: it is approaching :
In fact, this method is how to calculate , assuming we increase the exponent (or in our example, the interest rate) to infinity:
Now, let's delve into the mathematical derivation of and appreciate its awesome properties. To begin, let us consider any exponential function, i.e. . If we substitute a number for , that is greater than 1, then we obtain a constantly increasing value for any given . In fact, if we were to try and plot the value of a the gradient for at any point, we would find that it looks awfully similar to the original function:
In the figure above, six exponential functions are plotted on the left, and their derivatives are sketched on the right. As you can see, they do look awfully similar, right? But let's remind ourselves, how these derivates, or gradients, are estimated. This is done by the difference quotient, i.e. the gradient is equals to the ration of the change in over the change in :
The change in can be approximated by evaluating at two locations, as shown in the figure below.
As you can see, this approximation of the gradient at is quite bad since the chosen parameter is way too big. So let's make it smaller and smaller. In fact, let's make it approach zero and re-evaluate the equation:
The result is:
Which actually contains the original function , but scaled by some parameter . Now the equation is, is there a value for , which would make this scaling factor equal one? I.e.:
Well, let's find out and re-equate this:
So now we can define as a function of as:
Here, we will divide the exponent by a number that is approaching zero, and dividing by zero is a big no-no in mathematics. So let's substitute for and rather than reducing , let's increase . You will see, that this has exactly the same mathematical effect, since .
And look at that! We have found the same equation for that we did in the compound interest one. Therefore, the amazing property of is, that weather you differentiate it or integrate it, always results in itself! How cool is that!?! 🙂