13.5. All About the Number e¶
This section is devoted to topics related to the irrational number , which is also called the Euler number. We know from Systems of Linear ODEs that the special number is important to solutions to ordinary differential equations (ODEs). When is raised to a complex number the equation represents oscillations, which factor into both control system stability analysis and the conversion of time and spatial domain data into the frequency domain. The number also factors into the calculation of compound interest rates for savings and loans.
13.5.1. Definition and Derivative¶
The importance of the number to ODEs stems from the derivative of exponential equations of . If a function is defined as the following, where is a real constant and is a real variable,
then
The derivative of
To find the derivative of we can either take the derivative of its Maclaurin [1] series, or use its numeric definition in terms of a limit. The later is used here.
The chain rule is used to find the derivative. If , then . We see the desired equality then in the limit.
Let us now regard exponential equations of as special cases of a more general class of exponential equations. In doing so, we will see some interesting properties of and also get a start toward finding a definition of the value of . In the following equation, is any positive, real number.
A strategy for finding the derivative of is to first take the natural logarithm of (base logarithm, denoted as ). Although we have not yet found the value of , we know that it is a number and can abstractly use it as the base for a logarithm.
The left side of the above equation is the more difficult to find. Implicit differentiation and the chain rule shows that
Thus after multiplying by we have,
(13.3)¶
If , .
If , .
If , .
Equation (13.3) is useful, but it assumes that the value of is already known. We need to use the definition of a derivative to find an equation for the value of ,
We will let in the remaining equations.
Relating the last equation to equation (13.3), we find a limit equation for .
Let us test this with the natural log of 2 and 3. We need a very small value for to get a reasonably accurate result.
>> h = 0.00000001;
>> ln2 = (2^h - 1)/h
ln2 =
0.693147184094300
>> log(2)
ans =
0.693147180559945
>> ln3 = (3^h - 1)/h
ln3 =
1.098612290029166
>> log(3)
ans =
1.098612288668110
When , then , which we can use to find an equation with relation to the value of .
To solve for , we need to make a change to the limit.
Raise both sides to the power.
Let us test it with MATLAB. Here, the limited digital resolution of the computer can limit the accuracy if is too large.
>> N = 1E10;
>> (1 + 1/N)^N
ans =
2.718282053234788
>> exp(1)
ans =
2.718281828459046
The limit can also be used to find powers of .
(13.4)¶
>> (1 + 3/N)^N
ans =
20.085541899804120
>> exp(3)
ans =
20.085536923187668
13.5.2. Euler’s Complex Exponential Equation¶
When the exponent of the number is a complex number, we see the presence of oscillation. This result is especially important to control system analysis and signal processing (i.e., Fourier transform).
Here, we follow the engineering practice of using the variable for the imaginary number rather than the math practice of using .
We can see how relates to the and functions by looking at the Maclaurin series for these functions.
The needed Maclaurin series are:
Now replace in the equations for with . Remember that .
This relationship between complex exponentials of to the cosine and sine functions in the complex plane (), is often called Euler’s formula.
The validity of Euler’s formula can also be show with a derivative and an integral.
Define as:
Now represent as .
Raise both sides to an exponent of .
Letting resolves the constant to 1. Therefore,
13.5.3. Numerical Verification of Euler’s Formula¶
If the derivation of Euler’s formula from the Maclaurin series didn’t convince you, we can try some numerical analysis to show that complex exponentials actually produce complex, sinusoidal functions.
We will use the definition of from equation (13.4). We expect to see a circle in , just as we would by plotting . The plot is shown in figure Fig. 13.4. In the following MATLAB script we just assign to be a fairly large number. Since the definition uses a limit as goes to infinity, the results become more accurate when a larger value for is used.
% File: cmplxEuler.m
% let n = some big number
N = 100000;
z = linspace(0,2*pi); % test 100 numbers between 0 and 2*pi
% Now show that e^jz = cos(z) + j*sin(z)
% Begin with definition of value of e^z.
% e^z = lim(N = infinity) (1 + z/N)^N
eulerValues = complex(1, z/N).^N;
% This should plot a unit circle, just like
% figure, plot( cos(z), sin(z));
figure, plot(real(eulerValues), imag(eulerValues));
axis equal tight
13.5.4. Compound Interest¶
Another application of the number relates to one way to calculate interest on loans or saving accounts.
Loans normally use simple interest to track the current principle. The interest paid at each payment is the product of the previous principle, the daily interest rate, and the number of days between payments. The interest is taken out of the payment and the remainder of the payment is applied to the principle.
Saving accounts normally use compound interest where the interest is calculated on the principal amount and also on the accumulated interest of previous periods, and can thus be regarded as “interest on interest.”
If you invest dollars without continued contribution, then the balance of your savings after each compound () is described by
where is the annual interest rate and is the number of times that interest is compounded each year. If interest were compounded continuously, then we have
If a loan uses compound interest, then the principle can grow multiple times between each payment depending on how often it is compounded. This results in the borrower paying much more over the life of the loan. Fortunately, automobile loans and home mortgages use simple interest. However, credit card debt and student loans are more likely to use compound interest.
The difference between simple and compound interest made for a humorous exchange between George Washington, first president of the United States, and his step son. Washington’s wife, Martha, was previously a widow to a wealthy man. One of Martha’s sons, John Parke Custis, was not very knowledgeable of business matters when he borrowed money at compound interest to purchase a plantation. When Washington learned of the terms of the loan, he wrote the following to his step son, “No Virginia estate (except a few under the best management) can stand simple interest. How then can they bear compound Interest?” [NtlArchive].
[1] | The Maclaurin series for function is the Taylor series for function about the point (). |