Logarithms to Euler's Formula

📅 Published: September 2, 2025 ⏱️ 15 min read 👤 Ryan Cole

Logarithms

Logarithms were invented to solve a very simple problem: multiplication is hard. Multiplying numbers by hand is tedious and prone to errors, and in the 16th century scientist were working on a lot of problems that involve multiplying by hand. There are some cases though where multiplication is very easy. For example, if the two numbers just happen to be a power of $10$.

But why is it so easy to multiply powers of $10$; is it because there is something special about the number $10$? Not really. Students of computer science might find it just as easy to multiply powers of two. For example $8\times16=128$. This looks intuitively harder to most of us, but the its really the same process as multiplying multiples of $10$, as we can see from the table below.

Index (x) 2x 10x
1210
24100
381,000
41610,000
532100,000
6641,000,000
712810,000,000
8256100,000,000
95121,000,000,000
101,02410,000,000,000

In the above table, we have the multiples of $2$ and $10$. To multiply numbers, we add the index numbers in the left column, and find the corresponding multiple. For example to multiply $8\times16$, we add the respective indices $3+4=7$, and the corresponding number with index $7$ is $128$, which is our answer for multiplication. The index number in this table is the number we call the logarithm—the number we add to solve the multiplication problem.

But this simplification relies on the fact that our numbers just so happen to be powers of 2, or powers of 10, and it is easy to see how this could work for powers of any number. But what if we want to multiply two numbers that don't share a common power? and what if we want to multiply fractional numbers? what then?

The key realization is that we can use powers of any number we want, and for our index we can increment by anything not just one. Logarithm uses a clever but simple idea: let's make the increments as small as possible. Intuitively, this allows us to "squeeze" as many numbers as possible into the table. If our increments are small enough then our table can be used to find practically every number. You can also guess that doing this is going to make our tables very long; the invention of logarithms was a major undertaking.

From this idea, we can create a simple algorithm for our very own logarithm table. For the index numbers we will have multiples of $0.00001$, and for the powers of $10$ we will have multiples of $1.00001$.

I have implemented a dynamic lookup table for logarithms based on this:

In the table, the blue numbers are the index or logarithm values, the red numbers are the powers. The number that we input is matched to the closest power.

Let's do an example:

Find the product of the numbers $1.765\times9.532$

Step 1 is to look up both values in the logarithm table:

We then add the two index values: $0.56815+2.25467=2.82282$

Our next step is to lookup of the index of $2.82282$ in the table and find the corresponding power.

The answer is given by the corresponding red number in the table $16.8239907$

For our logarithms, we made the natural choice of our increment for our index being the same as for the powers. This choice of logarithms is called the natural logarithm. It has a very interesting property that for an index of $1$, the corresponding number is always approximately $2.71828$, we can verify this by inputting this number in the lookup table. This is the number we refer to as $e$.

In general, for our natural logarithm, the index is $x\varepsilon$, where $x$ is an integer and $\epsilon$ is a small number, and the corresponding power is $(1+\varepsilon)^x$.

Common Logarithm

While the natural logarithm represents the most natural choice for a logarithm, it is not the only choice. Remember, the only criteria is that the increments for both the index and the power are small, they don't have to be the same.

Another idea for the logarithm is based on using small fractional powers of $10$. This idea was advanced by Henry Briggs. For example, Let us repeatedly take the square root of $10$, $16$ times, or equivalently find $10^{\frac{1}{2^{16}}}$. If we do this we get 1.0000351, this will be used for our powers. And our indices will be $\frac{1}{2^{16}}$. This is called the common logarithm or base-10 logarithm.

Doing this will make it so that when the index is $1$, the power is $10$. We say that the base of the common logarithm is $10$; we can likewise say that the base of the natural logarithm is $e$.

Exponential Growth

Exponentiation is the inverse of the process we have just done. Many common problems can be solved by it. Exponentiation usually shows up because a quantity increases by a certain percentage each time period. For example, if the population increases by $2\%$ every year, or a loan incurs an interest of $10\%$ every month, we have exponential growth.

It is natural to ask what happens to the percentage increase, if we consider intervals as small as possible. This allows us to examine systems that increase continuously. In this case, the problem becomes very much like our logarithms problem earlier.

In much the same way we define the natural logarithm, we can also define a natural exponential function as one where the rate of growth becomes equal to the time interval for small values of the time interval. The base of this exponential function is $e$, so this function is generally written as $e^x$.

Complex Numbers

Another idea unrelated to the first, but interesting nonetheless, is to ask what happens if we take the square root of $\sqrt{-1}$?

Seems like a silly question. It is reasonable obvious that the square root of negative numbers cannot be defined, for the simple reason that if you square two numbers, whether negative or positive, the result is always positive.

Yet mathematicians realized, while solving the cubic, it still works out algebraically anyways if you do it. Let us simply define a new number $i=\sqrt{-1}$.

But this still seems silly. If I start defining new numbers, wont this just going forever. For example, I might later wonder what's the $\sqrt{i}$ or $\sqrt{-i}$. Won't I have to keep defining additional numbers for these? Wont this process just go on forever?

As we will see in a moment, this is not the case. It turns out that be just defining this number alone, all other possible questions about the root of any number can be solved. We say that these numbers are algebraically closed, as they leave no gap for questions of such sort.

Geometry of Complex Numbers

In general, a complex number is defined as any number $a+bi$, where $a$ and $b$ are real numbers, and $i=\sqrt{-1}$.

If we multiply two complex numbers, we get the following result:

$$(a+bi)\times(c+di)= (ac-bd) + (ad+bc)i$$

The multiplication proceeds like normal, but we must remember $i^2=-1$, which is why there is a negative sign in front of $bd$.

If we represent the complex by polar coordinates, we can show an interesting result: multiplying complex numbers is the same as multiplying the lengths and adding the angle.

I have implemented the following to demonstrate complex multiplication:

Euler's Formula

Once we understand the geometry behind complex the idea behind Euler's formula becomes really simple.

Let us consider a logarithm table, where the index is given by $\varepsilon i$, and the power is given by $1+\varepsilon i$. If we make $\varepsilon$ very small, the magnitudes of the complex numbers in the power column rapidly approach 1, while the angle in radians is given by $\epsilon$, due to the trigonometric identity $\sin(x)\approx x$, for small angles x.

If we increase the angle by a continuous amount, while leaving the lengths fixed, what we are doing is in fact a rotation. Thus Euler's formula simple tells us that the natural logarithm table constructed with complex numbers is equivalent to the description of the rotation along a circle with radius of 1.

The following tool visualizes how repeated multiplication of complex number $1+\varepsilon i$ leads to acontinous rotation

If we rotation half a circle or $pi$ radians, we can see from the diagram the answer should be $-1$. So

$$ e^{\pi i} = -1$$

The famous formula here looks mysterious when written down. But as we can see it is just the result of the simplegeometry of complex numbers and the properties of logartithms.

More generally, we can say for any angle $\theta$,

$$ e^{ \theta i} = cos\theta + i\sin\theta$$

Stay Updated

Get notified when I publish new articles about mathematics, science, and technology.