A Tetrad of Captivating Problems
2025-05-19 | 2025-06-02
Estimated Reading Time: 23 minutes
Prologue
This blog is the sandwich filling between two blog-slices: The
Exponential and Logarithmic Functions and e
Unleashed. It consists of a tetrad of captivating problems that are
related to exponents, which assumed centre stage after Euler showcased
the number
Problem One: No solution or Too Many?
Once, while I was idly browsing the gallery of suggestions put forth by YouTube to grab my attentionโand entice me to watch yet another videoโI came across the rather tantalizing screenshot simulated in Figure 1 below [1].
We are told that
Even though the nature of
But, try as I might, my mind militated against any solution.
My thoughts ran like this:
So, the equation is a falsehood. And since a false statement can imply any statement, I could as well claim that the moon is made of green cheese. On that note, I withdrew from the problem and let my subconscious mind try to wrangle a solution.
There was one nagging refrain. Why was the base chosen to be
The and functions for reals
The exponential and natural logarithm functions for real numbers are
maps so:
When we deal with real numbers exclusively, we have
unambiguous inverses for the exponential and logarithmic
functions as shown below:
To understand why, let us take a step or two back to review how points are depicted using co-ordinate pairs.
Cartesian and Polar forms
The Cartesian co-ordinate system is a marriage between arithmetic and geometry. It allows any point on a plane to be represented by a pair of numbers. What these numbers mean depends on the context.
The number pairs may represent
pairs corresponding to points on the graph of a real-valued function; co-ordinates on a map like a latitude and a longitude;
the components of a two-dimensional vector; or
represent the real and imaginary parts of a complex number.
Here, we will focus on the first and last of these interpretations.
Any point in two-dimensional Euclidean space or the Euclidean plane
may be represented by an ordered pair of
real numbers. The first number corresponds to the
But the Cartesian
We may refer to
So, what is the advantage gained by using the polar representation?
For a start, consider a circle with the centre at the origin and a
radius of 4 units. Its radius
Certain curves like the Lemniscate of Bernoulli are also more elegantly expressed and analyzed using their polar equations. Simplicity, convenience, and clarity are useful advantages from the polar viewpoint.
But are polar equations an unalloyed blessing? No, they embody the
cunning wolf of ambiguity because the inverse
trigonometric functions are multi-valued.
If we are given only the value
First, recall that the trigonometric functions like
Consider a concrete example. What are the angles
Given the value of a trigonometric function, determining the
corresponding angle is what an inverse
trigonometric function does. But because the angle is non-unique,
mathematicians have devised a convention to restore uniqueness by
restricting its range, calling the result the principal value
of the inverse trigonometric function. For example, the principal value
of the
The angle
The Complex plane โ
The Euclidean plane may also be used to represent complex numbers, in
which case it is sometimes called an Argand
diagram. An arbitrary complex number
The horizontal axis represents the real part of the complex number and the vertical axis represents the imaginary part. Two equivalent representations are commonly used for complex numbers:
The Cartesian representation
, where๐ง = ๐ + ๐ โข ๐ is the imaginary unit, and๐ . When two complex numbers๐ , ๐ โ โ and๐ + ๐ โข ๐ are added, their sum is๐ + ๐ โข ๐ , i.e., the real and imaginary parts are added separately.( ๐ + ๐ ) + ๐ โข ( ๐ + ๐ ) The polar representation
is an equivalent representation for a complex number, where๐ง = ๐ โข ( c o s โก ๐ + ๐ โข s i n โก ๐ ) and๐ = โ ๐ 2 + ๐ 2 = | ๐ง | . Here,๐ = a r c t a n โก ๐ ๐ = a r g โก ๐ง is called the modulus of| ๐ง | and๐ง is called the argument ofa r g โก ๐ง .๐ง
Thus far, we have extrapolated to
The Euler formula
The remarkable Euler
formula is
Donโt let its simplicity belie its power or impact.
The great physicist, Richard Feynman, extolled it as โthe most remarkable formula in mathematicsโฆ This is our jewel.โ [2].
If you can spare the time to examine the formula, you will see that it unifies the trigonometric functions with the exponential function: something that could not have been guessed merely from their respective histories or applications. What is more, the imaginary unit sits smack dab in the centre. It is an equation so unlikely that it beggars the imagination.
Yet, one might claimโwithout exaggerationโthat its consequences are all around us in this electrical age of digital communications, instant messaging, shared images, satellite navigation, etc. How did this equation facilitate such mind-boggling progress?
Gifts from Eulerโs Formula
The first gift from Eulerโs formula is that the polar form of the
complex number facilitates multiplication. Let
The second gift from Eulerโs formula follows on from the first.
Multiplying a complex number by
Logarithms of complex numbers
Most high school mathematics courses stop at the real-valued exponential and logarithmic functions. Indeed, the logarithms of complex numbers are either not taught at all at school or, if taught, usually gently glossed over. The fact that the complex logarithm is a different kettle of fish escapes most school-leavers. And books that devote enough time, rigour, and examples to this topic are not easy to come by. Personally, I cannot claim much familiarity with the topic myself, and had to spend some time understanding matters from first principles, while I was researching for this blog.
Let
Let us start with:
When the logarithm of a complex number is expressed in Cartesian form, the real and imaginary parts are related so:
- the real part is the logarithm of the modulus of the original
complex number:
andโ ๐ โก ( l n โก ๐ง ) = โ ๐ โก ( ๐ค ) = ๐ข = l n โก | ๐ง | = l n โก ๐ ; - the imaginary part is the argument of the original compex number:
๐ ๐ โก ( l n โก ๐ง ) = ๐ ๐ โก ( ๐ค ) = ๐ฃ = a r g โก ( ๐ง ) = ๐ .
So far so good. But the argument or angle of
What does this mean geometrically or pictorially? The imaginary part
of
This means that the complex logarithm of a single complex number
This ambiguity makes the complex logarithm a multi-valued
function, whose imaginary part is not unique. For the sake of
convenience and to confer uniqueness, mathematicians define the principal
value of a complex logairthm by constraining the principal value of
Back to Problem One
Eulerโs formulaโEquation 2โoffers a crafty way to inject complex numbers into problems involving real numbers like Equation 1. The hope is that the solution space may be sufficiently enlarged to afford a solution. But this will come at the expense of something: uniqueness will yield to a multi-valued perspective.
Instead of looking at
We may then re-write Equation 1 as:
Different solutions arise by assigning specific values to
Is this answer correct? It depends on the viewpoint. If the multi-valued nature of the complex logarithm is understood, and we consider non-principal values, one at a time, our answers may be invested with meaning.
If one did not bother to distinguish the single-valued logarithm function for real values from the multi-valued logarithm function for complex values, the result would be confusion.
Since I work alone, I needed to sound out the larger mathematical community, especially professionals, to find out where this solution stands. Fortunately, there was another You Tube video that proposed a similar problem [3]. The accepted solution there [4] is consistent with the above development .
One other, non-human resource was available: Wolfram Alpha. I plugged
in the solution above and asked for simplification/verification. The
reader may verify the output under โMultivalued resultโ. It is to be
noted that if
Problem Two
The second problem led me to a function whose name I had never heard
before. It is, I believe a niche function, useful in special situations,
but nowhere near as widespread as the mainstays like the trigonometric
or exponential functions. It was an enticing enough problem to draw me
into it. The facsimile screenshot is given below in Figure 7 and in Equation 5
Analytical solution
My first instinct on seeing the problem was to take logarithms and
see where that led:
Numerical solution
My second approach was to look at the equation carefully and guess
the interval in which the solution would lie. We know that
I used the Qalculate
desktop calculator to evaluate
A bash
script was written to compute values of
t t^t 7 - t^t
----------------------------------------
2.300 6.791630 0.208370
2.305 6.854196 0.145804
2.310 6.917412 0.082588
2.315 6.981288 0.018712
2.320 7.045829 -0.045829
2.325 7.111044 -0.111044
2.330 7.176940 -0.176940
2.335 7.243524 -0.243524
2.340 7.310803 -0.310803
2.345 7.378787 -0.378787
2.350 7.447482 -0.447482
2.355 7.516897 -0.516897
2.360 7.587039 -0.587039
2.365 7.657917 -0.657917
2.370 7.729539 -0.729539
2.375 7.801913 -0.801913
2.380 7.875047 -0.875047
2.385 7.948951 -0.948951
2.390 8.023632 -1.023632
2.395 8.099099 -1.099099
2.400 8.175362 -1.175362
It was tempting to use Typst for a better numerical estimate because it promised not only scripting but also tabular typesetting: two birds with one stoneโcompute the values and get them tabulated at one go. Alas, this approach was found to be foolhardy and abandoned, because not all languages are suited for heavy duty numerical computing. Moral of the story: do not use a fountain pen to dig a trench. Match your tools for the job.
Newton-Raphson method
The next logical step was to use a solid programming language like
Python or Julia and employ a technique like Newton-Raphson
to refine the solution further so that the error in
For the NewtonโRaphson method, we need to know the expression for
both the function
Observe the following:
Observe that
๐ก ๐ก = ๐ l n โก ( ๐ก ๐ก ) = ๐ ๐ก โข l n โก ๐ก . ( 6 ) Substitute
๐ข = ๐ก โข l n โก ๐ก Then,
d d โข ๐ก โข ๐ข = d d โข ๐ก โข [ ๐ก โก l n โก ๐ก ] = [ l n โก ๐ก + ๐ก โก [ 1 ๐ก ] ] = [ l n โก ๐ก + 1 ] ( 7 ) Finally,
d d โข ๐ก โข [ ๐ก ๐ก ] = d d โข ๐ก โข [ ๐ ๐ก โข l n โก ๐ก ] = d d โข ๐ก โข [ ๐ ๐ข ] = ๐ ๐ข โก [ d d โข ๐ก โข ๐ข ] = ๐ ๐ก โข l n โก ๐ก โก [ l n โก ๐ก + 1 ] = ๐ก ๐ก โข [ l n โก ๐ก + 1 ] ( 8 )
Using scipy
The scipy
software
suite is ideally suited for heavy duty numerical computing. It might be
overkill for our case, but it usually affords a single-line program that
does the job admirably. Letโs heave ho.
import numpy as np
from scipy import optimize
def f(x):
return x**x - 7 # One real root between 2.315 and 2.320
""" Solve for x^x = 7
Arguments:
f: x^x - 7
fprime: derivative of f(x) = x**x * (np.log(x) + 1)
estimate: estimated value of root
Returns:
root: desired solution for x
"""
= 2.315
estimate = optimize.newton(f, estimate, fprime=lambda x: x**x * (np.log(x) + 1))
root print(root)
print(f(root))
A commented version of this short script is available as `tt7.py. From this script, it should now be clear why we needed to get the derivative of the given function in closed form. Whe n the script is executed, it outputs two numbers:
2.3164549587856125
1.7763568394002505e-15
The first is the value of
Graphical approach
We may graph the function
Apart from reduced precision, the graphical approach is a good
complement to the rough and ready estimation that the root lies between
Third approach
What I did not contend with at first was that there was a special function known to Johann Lambert and Euler, called the Lambert W function1, that was tailor made for a problem like this [6]. I was eager to pursue this as the third line of enquiry but was dismayed to find that tables of the Lambert W-Function [7] are not available as standard. So, the Lambert function approach, while technically elegant, was not necessarily convenient. For the sake of completeness, the Lambert function approached is also outlined below.
The Lambert W
function is also known as the product logarithm is a
special function that is used to solve particular types equations. It is
defined as W(we^w)$ for complex
. Take logarithms of both sides noting that๐ก ๐ก = 7 .l n โก ๐ ๐ = ๐ โข l n โก ๐ We have
. Recall that because the exponential and logarithmic functions are inverses,๐ก โข l n โก ๐ก = l n โก 7 .๐ l n โก ๐ฅ = ๐ฅ Substituting
, we have๐ก = ๐ l n โก ๐ก , which may be re-written as๐ l n โก ๐ก โก ( l n โก ๐ก ) = l n โก 7 which has the forml n โก ๐ก โข ๐ l n โก ๐ก = l n โก 7 ( 9 ) that is used to define the Lambert W function, with๐ค โข ๐ ๐ค = ๐ฅ and๐ค = l n โก ๐ก .๐ฅ = l n โก 7 We now apply the Lambert W function, which performs a sort of inverse operation because if
, then๐ค โข ๐ ๐ค = ๐ฅ . So,๐ค = ๐ โก ( ๐ฅ ) .๐ค = l n โก ๐ก = ๐ โก ( l n โก 7 ) = ๐ โก ( ๐ฅ ) We have ended up with
and we only need to exponentiate both sides to getl n โก ๐ก = ๐ โก ( l n โก 7 ) ๐ก = ๐ ๐ โก ( l n โก 7 ) . ( 1 0 ) The Lambert W function finds application in many different scientific fields [6] but is not so commonly used as to be tabulated like trigonometric or logarithmic tables. We therefore have to rely on numerical computation, not unlike what we used in the previous section, but with a different rationale. I tend to veer toward
scipy
in such cases, as it affords a terseness bordering on beauty:
import numpy as np
import scipy.special as sp
= sp.lambertw(np.log(7), k=0)
W_ln_7 print("W(ln 7) = ", W_ln_7)
= np.exp(W_ln_7)
t print("t = ", t)
Three points merit explanation:
the natural logarithm is invoked by
np.log
;the integer
denotes the principal value, since complex logarithms are involved; and๐ = 0 the result will be a complex number,although we expect its imaginary part (denoted by
) to be zero.๐
The program gives the results below, and as illustrated in Figure 9. The numbers check out and all is well with the world.2
W(ln 7) = (0.8400379820358972+0j)
t = (2.316454958785612+0j)
Problem Three: Exponential Towers
The third problem involves Equation 11
which is also illustrated in Figure 10.
It equates the expression,
For obvious reasons, the left hand side (LHS) is an infinitely
iterated exponential or exponential tower or a power
tower. The dots at the end of the tower mean that the
When I first came across Equation 11, I was merely intrigued by its form. A little pottering around the subject, however, revealed that:
Euler was familiar with it;
there was a small real interval for which it converged to a real value; and
the Lambert W function is used to prove the interval of convergence.
I had not expected such a serendipitous confluence of factors from an
equation whose mere form had aroused my curiosity. The interested reader
is directed to online discussions of the same [8โ10]. The
infinite exponential tower converges to a real value for
One other preliminary: Donald Knuth
introduced the
up-arrow notation for repeated but finite exponentiation. Tetration,
for example, is denoted by
Back to the problem. Is there a way to start? Because infinity is
involved, removing or augmenting the topmost exponent from the tower
will not diminish its value. Therefore the entire tower of exponents may
be replaced by the value of the right hand side (RHS). We may therefore
write, assuming convergence:
Factorizing:
.( ๐ฅ 2 + 2 ) = ( ๐ฅ โ ๐ โข โ 2 ) โข ( ๐ฅ + ๐ โข โ 2 ) โน ๐ฅ = ยฑ ๐ โข โ 2 Factorizing:
.( ๐ฅ 2 โข 2 ) = ( ๐ฅ โ โ 2 ) โข ( ๐ฅ + โ 2 ) โน ๐ฅ = ยฑ โ 2
The four solutions are:
Problem Four: Imaginary to Real
I would like to conclude with the
equation
Before that, I want to compute the logarithm of a negative real
number,
Moreover, we have discovered from Figure 5 that a single complex exponential maps to multiple complex logarithms, but any single complex logarithm will map back only to a single complex exponential.
What value of
Now for Equation 13. The angles
To explore further
If you have found the foregoing a foreign language altogether, here are some alternative expositions that could ease your understanding.
Books and Web posts
The online Libre Text Complex Variables with Applications by Jeremy Orloff [11] gives a clear account of complex logarithms, illustrated with examples.
YouTube videos
Steve Bruntonโs lecture on the Complex Logarithm. It is a little long, but is clear, well-paced, authoritative, and goes beyond the scope of this blog [12].
A short, crisp, but complete YouTube video on the complex logarithm function that is worth watching is by TheMathCoach [13].
Another snappy but clear video on complex logarithms that is worth watching is by Xander Gouws [14].
Epilogue
This my first blog in which all the figures have been generated using the Typst typesetting engine. It has been an exciting learning experience that has yielded rich and early rewards. If you are interested, and like what you seen, do give it a spin.
Acknowledgements
To the creators and contributors to Typst, my heartfelt thanks. And also to Wolfram Alpha.
Feedback
Please email me your comments and corrections.
A PDF version of this article is available for download here:
References
Lambert died of tuberculosis at the young age of 49. He made many contributions to mathematics, cartography, optics, etc., and was the first to prove that
is irratioonal.โฉ๏ธ๐ We will not here explore the existence or validity of complex solutions.โฉ๏ธ
These final problems will definitely be relaxing, compared to the previous ones.โฉ๏ธ