A Tetrad of Captivating Problems

R (Chandra) Chandrasekhar

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 and explored its facets in the eighteenth century.

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].

Figure 1: Simulated screenshot of a tantalizing equation beckoning solution on YouTube.

We are told that and asked to solve for .

Even though the nature of was not specifiedโ€”whether it is positive or negative, an integer, a non-integral rational, real, complex, etc.โ€”this problem transfixed me. โ€œSurely, the author must be joking,โ€ was my first thought.

But, try as I might, my mind militated against any solution. My thoughts ran like this: Indeed, raised to any power is , whether that power is zero, a non-zero integer, a positive fraction, a negative fraction, or a transcendental number. It all boiled down to the standard manipulation when faced with solving for exponents: take natural logarithms of both sides. In this case,

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 ? Was it to underscore the impossibility of the equation at first sight, while keeping the door slightly ajar for a sneaky solution? But, first a brief detour to re-visit the exponential and logarithmic functions.

The and functions for reals

The exponential and natural logarithm functions for real numbers are maps so: where , i.e., is the set of positive real numbers.

When we deal with real numbers exclusively, we have unambiguous inverses for the exponential and logarithmic functions as shown below: For an illustration of this idea, see Figure 7 of my blog The Exponential and Logarithmic Functions. But this is not the case once complex numbers enter the fray.

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

  1. pairs corresponding to points on the graph of a real-valued function;

  2. co-ordinates on a map like a latitude and a longitude;

  3. the components of a two-dimensional vector; or

  4. 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 -coordinate and the second to the -coordinate. Note that order matters here because of the meaning attached to the two numbers, as being distances along two named orthogonal axes.

But the Cartesian representation is not the only means to tie number pairs to positions. Other methods are also possible. Take a look at Figure 2. The point labelled has positional co-ordinates . But it is located on a circle of radius , and the line from the origin to makes a counter-clockwise angle of with the positive -axis. These two numbers and may also be used to define the position of as shown in Figure 2.

Figure 2: The Cartesian (a, b) and Polar (r, \theta), representations of the same real, ordered pair in the two-dimensional real plane \mathbb{R}. See the text for a full discussion.

We may refer to as the point , or as the point . The equivalence between these two representations is shown below and also in Figure 2:

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 ๐‘Ÿ does not vary with angle ๐œƒ, and is independent of it. Therefore, the equation of this circle is ๐‘Ÿ =4, which is starkly simple, compared with ๐‘ฅ2 +๐‘ฆ2 =16 using the (๐‘ฅ,๐‘ฆ) representation.

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 arctanโก๐‘๐‘Ž we will not get a unique ๐œƒ corresponding to it.

First, recall that the trigonometric functions like sin, cos, and tan are circular functions which are naturally periodic with a period equal to one revolution of the circle or 2โข๐œ‹ radians. Refer to my blog on Varieties of Multiplication for a quick review of the sine and cosine functions. You will note therefrom that in each 2โข๐œ‹ period, there are two values of the angle for which the function takes on a specified value.

Consider a concrete example. What are the angles ๐œƒ for which tanโก๐œƒ =0.5, or equivalently, solve for ๐œƒ =arctanโก12. One answer is 0.463647609 radians or 26.56505118ยฐ which lies in the first quadrant. But there is a second answer that lies in the third quadrant: 3.605240263 radians or 206.5650512ยฐ. Moreover, each of these answers, when augmented by a full rotation of 2โข๐œ‹ radians or 360ยฐ degrees is also a solution. We therefore not only have two solutions, we actually have an infinity of solutions when we trace our way back from a trigonometric function to its argument or angle. But is there a unique answer at all?

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 arctan function lies in (โˆ’๐œ‹2,๐œ‹2).

The angle ๐œƒ can take on an infinity of values. This non-uniqueness in the value of ๐œƒ is something we must never forget, especially when dealing with functions of complex variables and their inverses.

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 ๐‘ง may be represented as a point on the two-dimensional complex plane โ„‚, as shown in Figure 3.

Figure 3: The same complex number z may be represented in Cartesian form as a + ib and in polar form as r(\cos\theta + i\sin\theta) where r = \sqrt{a^2 + b^2} and \theta = \arctan{\frac{b}{a}}.

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:

  1. 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.

  2. The polar representation ๐‘ง =๐‘Ÿโข(cosโก๐œƒ +๐‘–โขsinโก๐œƒ) is an equivalent representation for a complex number, where ๐‘Ÿ =โˆš๐‘Ž2+๐‘2 =|๐‘ง| and ๐œƒ =arctanโก๐‘๐‘Ž =argโก๐‘ง. Here, |๐‘ง| is called the modulus of ๐‘ง and argโก๐‘ง is called the argument of ๐‘ง.

Thus far, we have extrapolated to โ„‚ the development for ordered pairs on โ„. This is fine, but pedestrian, yielding no remarkable insights. The magic is yet to happen. For that, we need the magic sauce of Eulerโ€™s formula.

The Euler formula

The remarkable Euler formula is ๐‘’๐‘–โข๐œƒ=cosโก๐œƒ+๐‘–โขsinโก๐œƒ(2)

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 ๐‘ข =๐‘โข๐‘’๐‘–โข๐œƒ and ๐‘ฃ =๐‘žโข๐‘’๐‘–โข๐œ‘. Their product ๐‘ขโข๐‘ฃ is then ๐‘ขโข๐‘ฃ=(๐‘โข๐‘’๐‘–โข๐œƒ)โข(๐‘žโก๐‘’๐‘–โข๐œ‘)=๐‘โข๐‘žโก(๐‘’๐‘–โข๐œƒ)โข(๐‘’๐‘–โข๐œ‘)=๐‘โข๐‘žโก(๐‘’๐‘–โข(๐œƒ+๐œ‘))=๐‘คโข๐‘’๐‘–โข๐œ“ This means that the modulus of the product of two complex numbers is the product of their respective moduli and the argument of their product is the sum of their arguments, as illustrated in Figure 4. See my blog Varieties of Multiplication for a more detailed discussion.

Figure 4: Illustration of how easy it is to multiply complex numbers using the Euler formula.

The second gift from Eulerโ€™s formula follows on from the first. Multiplying a complex number by ๐‘– rotates it by ๐œ‹2 radians counterclockwise on the complex plane. See the section rotation on the complex plane in my blog The Two Most Important Numbers: Zero and One for an explanation.

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 ๐‘ง =๐‘Ž +๐‘–โข๐‘ be the Cartesian form of a non-zero complex number with ๐‘Ž,๐‘ โˆˆโ„. Its polar form is ๐‘ง =๐‘Ÿโข๐‘’๐‘–โข๐œƒ where ๐‘Ÿ =โˆš๐‘Ž2+๐‘2 and ๐œƒ =arctanโก๐‘๐‘Ž. An alternative way to express ๐‘ง is the modulus-argument form, which is ๐‘ง =|๐‘ง|โข๐‘’๐‘–โขargโก(๐‘ง) =๐‘Ÿโข๐‘’๐‘–โข๐œƒ. It pays to be proficient in using any one of these three forms, and in being able to convert from one to the other with ease.

Let us start with: ๐‘ง=๐‘’๐‘ค;take logarithms on both sideslnโก๐‘ง=lnโก[๐‘’๐‘ค]=๐‘ค=lnโก(|๐‘ง|โข๐‘’๐‘–โขargโก(๐‘ง))=lnโก[๐‘Ÿโข๐‘’๐‘–โข๐œƒ]=lnโก[๐‘Ÿ]+lnโก[๐‘’๐‘–โข๐œƒ]=lnโก๐‘Ÿ+๐‘–โข๐œƒ=๐‘ข+๐‘–โข๐‘ฃ.(3)

When the logarithm of a complex number is expressed in Cartesian form, the real and imaginary parts are related so:

  1. the real part is the logarithm of the modulus of the original complex number: โ„๐•–โก(lnโก๐‘ง)=โ„๐•–โก(๐‘ค)=๐‘ข=lnโก|๐‘ง|=lnโก๐‘Ÿ; and
  2. the imaginary part is the argument of the original compex number: ๐•€๐•žโก(lnโก๐‘ง)=๐•€๐•žโก(๐‘ค)=๐‘ฃ=argโก(๐‘ง)=๐œƒ.

So far so good. But the argument or angle of ๐‘ง, argโก(๐‘ง), is non-unique because angles on a circle repeat themselves after each revolution. As with inverse trigonometric functions, we again invoke the idea of the principal value of the argument to overcome this ambiguity. If we denote the principal value of the argument of ๐‘ง by Argโก(๐‘ง), we could write argโก(๐‘ง)=Argโก(๐‘ง)+2โข๐‘˜โข๐œ‹ where ๐‘˜โˆˆโ„ค and Argโก(๐‘ง)โˆˆ(โˆ’๐œ‹,๐œ‹].

What does this mean geometrically or pictorially? The imaginary part of ๐‘ค, which is ๐‘ฃ, is not just ๐œƒ but really ๐œƒ +2โข๐‘˜โข๐œ‹ where ๐‘˜ โˆˆโ„ค. The imaginary part of the complex logarithm ๐‘ค is not unique, but is actually a series of points that lie along a vertical line parallel to the imaginary axis, intersecting the real axis at ๐‘ข =lnโก๐‘Ÿ. This is illustrated in Figure 5.

Figure 5: The logarithm of a complex number is not unique but multivalued. Its imaginary part, v, may vary, as shown by the different dotted lines emanating from \xi and terminating on the vertical line u = \ln r. The principal value is shown in a different color and corresponds to k = 0.

This means that the complex logarithm of a single complex number ๐‘ง maps onto multiple complex numbers having the same modulus but different arguments, all differing by integer multiples of 2โข๐œ‹ on the complex plane, as depicted in Figure 5: lnโก(๐‘ง)=๐‘ค=lnโก(๐‘Ÿโข๐‘’๐‘–โข๐œƒ+2โข๐‘˜โข๐œ‹)where ๐‘˜โˆˆโ„ค=lnโก๐‘Ÿ+lnโก(๐‘’๐‘–โข๐œƒ+2โข๐‘˜โข๐œ‹)=lnโก๐‘Ÿ+๐‘–โข๐œƒ+2โข๐‘˜โข๐œ‹.=๐‘ข+๐‘–โข๐‘ฃ.(4)

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 argโก(๐‘ง), denoted by Argโก(๐‘ง) to lie in a restricted domain like (โˆ’๐œ‹,๐œ‹].

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 1 as a real number, one could view it as a complex number with a zero imaginary part: 1=cosโก0+๐‘–โขsinโก0=cosโก(0+2โข๐‘˜โข๐œ‹)+๐‘–โขsinโก(0+2โข๐‘˜โข๐œ‹) where ๐‘˜โˆˆโ„ค;๐‘˜โ‰ 0=๐‘’๐‘–โข2โข๐‘˜โข๐œ‹.

We may then re-write Equation 1 as: 1๐‘ฅ=4(๐‘’๐‘–โข2โข๐‘˜โข๐œ‹)๐‘ฅ=4๐‘’๐‘–โข2โข๐‘˜โข๐œ‹โข๐‘ฅ=4; take natural logarithms on both sideslnโก(๐‘’๐‘–โข2โข๐‘˜โข๐œ‹โข๐‘ฅ)=lnโก4๐‘ฅโก(๐‘–โข2โข๐‘˜โข๐œ‹)=lnโก4;๐‘˜โ‰ 0๐‘ฅ=lnโก4๐‘–โข2โข๐‘˜โข๐œ‹; multiply by ๐‘–๐‘–=โˆ’๐‘–โขlnโก42โข๐‘˜โข๐œ‹ where ๐‘˜โˆˆโ„คโˆ–{0}.

Different solutions arise by assigning specific values to ๐‘˜. Let us set ๐‘˜ =1. We then have the solution ๐‘ฅ =โˆ’๐‘–โขlnโก42โข๐œ‹.

Figure 6: One solution to the problem posed in Figure 1.

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 ๐‘˜ takes on other integer values, the results will be other powers of 4 as tabulated, but that is a nuance left unexplored here.

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 ๐‘ก๐‘ก=7(5)

Figure 7: Simulated screenshot of another tantalizing equation beckoning solution on YouTube [5].

Analytical solution

My first instinct on seeing the problem was to take logarithms and see where that led: ๐‘ก๐‘ก=7;take logarithms๐‘กโขlnโก๐‘ก=lnโก7 It looks like we are getting nowhere.

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 22 =4 <7 <33 =27. So, ๐‘ก lies between two and three.

I used the Qalculate desktop calculator to evaluate ๐‘“โก(๐‘ก) =๐‘ก๐‘ก. Because ๐‘“โก(2.3) =6.791โ€ฏ630โ€ฏ075 <7 and ๐‘“โก(2.4) =8.175โ€ฏ361โ€ฏ775 >7 the solution lies in the interval [2.3,2.4].

A bash script was written to compute values of ๐‘ก๐‘ก and its difference from 7, as tabulated below. These values gave the insight that the solution lay in the tighter interval [2.315,2.320].

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 (๐‘ก๐‘ก โˆ’7) does not exceed, say, 10โˆ’3.

For the Newtonโ€“Raphson method, we need to know the expression for both the function ๐‘“โก(๐‘ก) and its derivative ๐‘“โ€ฒโก(๐‘ก). How does one differentiate a function when the exponent is not a constant but a variable? As a general rule, invite either exp or ln to the rescue.

Observe the following:

  1. Observe that ๐‘ก๐‘ก=๐‘’lnโก(๐‘ก๐‘ก)=๐‘’๐‘กโขlnโก๐‘ก.(6)

  2. Substitute ๐‘ข=๐‘กโขlnโก๐‘ก

  3. Then, ddโข๐‘กโข๐‘ข=ddโข๐‘กโข[๐‘กโกlnโก๐‘ก]=[lnโก๐‘ก+๐‘กโก[1๐‘ก]]=[lnโก๐‘ก+1](7)

  4. Finally, ddโข๐‘กโข[๐‘ก๐‘ก]=ddโข๐‘กโข[๐‘’๐‘กโขlnโก๐‘ก]=ddโข๐‘กโข[๐‘’๐‘ข]=๐‘’๐‘ขโก[ddโข๐‘กโข๐‘ข]=๐‘’๐‘กโขlnโก๐‘กโก[lnโก๐‘ก+1]=๐‘ก๐‘กโข[lnโก๐‘ก+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
    """


estimate = 2.315
root = optimize.newton(f, estimate, fprime=lambda x: x**x * (np.log(x) + 1))
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 ๐‘ก that satisfies ๐‘ก๐‘ก =7, which is Equation 5. The second is the value of ๐‘ก๐‘ก โˆ’7 at this value of ๐‘ก and it is an extremely small number about 1.8โข10โˆ’15. With these two numbers, we have effectively solved the problem. But there are two more approaches that I wish to pursue to exhaust the approaches that have suggested themselves to me. We next look at plotting graphs and determining intersections.

Graphical approach

We may graph the function ๐‘ฆ =๐‘ก๐‘ก and the line ๐‘ฆ =7 and find out their intersection to whatever degree of precision is available to us with this approach. Alternatively, we could also plot (๐‘ก๐‘ก โˆ’7) and find its root or zero. Both will give us the same result, as illustrated in Figure 8, which was prepared using the Typst typesetting system.

Figure 8: Graphs of y = t^t, y = 7, and y = t^t - 7 plotted on the same axes. The solution lies approximately at t = 2.32. We have taken some liberties in identifying 2.316 as the root, using our previously computed numerical solution.

Apart from reduced precision, the graphical approach is a good complement to the rough and ready estimation that the root lies between 2 and 3. A more precise estimate will necessitate numerical methods.

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 ๐‘ค. If ๐‘ฅ =๐‘คโข๐‘’๐‘ค, then ๐‘ค =๐‘Šโก(๐‘ฅ). This definition can sound a it detached; so let us apply it to our case.

  1. ๐‘ก๐‘ก =7. Take logarithms of both sides noting that lnโก๐‘Ž๐‘ =๐‘โขlnโก๐‘Ž.

  2. We have ๐‘กโขlnโก๐‘ก =lnโก7. Recall that because the exponential and logarithmic functions are inverses, ๐‘’lnโก๐‘ฅ =๐‘ฅ.

  3. Substituting ๐‘ก =๐‘’lnโก๐‘ก, we have ๐‘’lnโก๐‘กโก(lnโก๐‘ก) =lnโก7, which may be re-written as lnโก๐‘กโข๐‘’lnโก๐‘ก=lnโก7(9) which has the form ๐‘คโข๐‘’๐‘ค =๐‘ฅ that is used to define the Lambert W function, with ๐‘ค =lnโก๐‘ก and ๐‘ฅ =lnโก7.

  4. We now apply the Lambert W function, which performs a sort of inverse operation because if ๐‘คโข๐‘’๐‘ค =๐‘ฅ, then ๐‘ค =๐‘Šโก(๐‘ฅ). So, ๐‘ค =lnโก๐‘ก =๐‘Šโก(lnโก7) =๐‘Šโก(๐‘ฅ).

  5. We have ended up with lnโก๐‘ก =๐‘Šโก(lnโก7) and we only need to exponentiate both sides to get ๐‘ก=๐‘’๐‘Šโก(lnโก7).(10)

  6. 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

W_ln_7 = sp.lambertw(np.log(7), k=0)
print("W(ln 7) = ", W_ln_7)

t = np.exp(W_ln_7)
print("t = ", t)

Three points merit explanation:

  1. the natural logarithm is invoked by np.log;

  2. the integer ๐‘˜ =0 denotes the principal value, since complex logarithms are involved; and

  3. 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)
Figure 9: The real solution to t^t = 7 is given above.

Problem Three: Exponential Towers

The third problem involves Equation 11 which is also illustrated in Figure 10. It equates the expression, ๐‘ฅ raised to itself indefinitely, to the number 4: ๐‘ฅ๐‘ฅ๐‘ฅ๐‘ฅ๐‘ฅ๐‘ฅ๐‘ฅ๐‘ฅ๐‘ฅโ‹…โ‹…โ‹…โ‹…=4(11)

Figure 10: This equation shows a power tower equation, discussed fully in the text.

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 ๐‘ฅ values continue without end. Such an expression is formally called a tetration when the number of iterations is finite. Such expressions were known to Euler who studied them, and their properties of convergence.

When I first came across Equation 11, I was merely intrigued by its form. A little pottering around the subject, however, revealed that:

  1. Euler was familiar with it;

  2. there was a small real interval for which it converged to a real value; and

  3. 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 ๐‘ฅโข๐‘–โข๐‘›โก[1๐‘’๐‘’,๐‘’1๐‘’] =[0.065988,1.444668]. I am in awe of the poetic beauty of the result: ๐‘’ to some power of ๐‘’ defines the interval of convergence!

One other preliminary: Donald Knuth introduced the up-arrow notation for repeated but finite exponentiation. Tetration, for example, is denoted by 2 โ†‘โ†‘4 =2 โ†‘(2 โ†‘(2 โ†‘2)) =2222 =216 =65,536. Note that exponentiation associates to the left: 23โข2 =2(3โข2) =29 =512

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: ๐‘ฅ๐‘ฅ๐‘ฅ๐‘ฅ๐‘ฅ๐‘ฅ๐‘ฅ๐‘ฅ๐‘ฅโ‹…โ‹…โ‹…โ‹…=4=๐‘ฅ4; transposing the constant๐‘ฅ4โˆ’4=0๐‘ฅ2โˆ’22==0(๐‘ฅ2+2)โข(๐‘ฅ2โˆ’2)=0(12) Following on from Equation 12 we may assert that

  1. Factorizing: (๐‘ฅ2 +2) =(๐‘ฅ โˆ’๐‘–โขโˆš2)โข(๐‘ฅ +๐‘–โขโˆš2) โŸน ๐‘ฅ =ยฑ๐‘–โขโˆš2.

  2. Factorizing: (๐‘ฅ2โข2) =(๐‘ฅ โˆ’โˆš2)โข(๐‘ฅ +โˆš2) โŸน ๐‘ฅ =ยฑโˆš2.

The four solutions are: ๐‘ฅ =ยฑโˆš2 and ๐‘ฅ =ยฑ๐‘–โขโˆš2. We will restrict ourselves to real solutions, which are the first two. Are they within the interval of convergence? We note that ๐‘ โข๐‘žโข๐‘Ÿโข๐‘กโข2 =1.414213 <1.444668 =๐‘’1๐‘’. So, the only real solution is ๐‘ฅ =โˆš2, as shown in Figure 11:

Figure 11: The real solution to the infinite exponential tower in Equation 11

Problem Four: Imaginary to Real

I would like to conclude with the equation ๐‘–โˆ’๐‘–=โˆš๐‘’๐œ‹(13) stated at the start of the blog The exponential and logarithmic functions.

Before that, I want to compute the logarithm of a negative real number, lnโก(โˆ’1).3 We know that for real numbers, the logarithm maps โ„+ to โ„. So, lnโก(โˆ’1) makes a mockery of this function until we relax the conditions and treat ln as the complex logarithm function.

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 ๐œƒ in [0,๐œ‹] will give (โˆ’1) for the value of ๐‘’๐‘–โข๐œƒ? The real part is โˆ’1 which equals cosโก๐œƒ giving us ๐œƒ =๐œ‹. Moreover, sinโก๐œ‹ =0 giving us a zero imaginary part as required. So, we my write lnโก(โˆ’1)=lnโก(๐‘’๐‘–โข๐œ‹)=๐‘–โข๐œ‹. So, lnโก(โˆ’1) =๐‘–โข๐œ‹. How could the complex logarithm of a negative real number be purely imaginary? But, because Eulerโ€™s formula has worked its magic, that is simply how it is.

Now for Equation 13. The angles 0,๐œ‹2,๐œ‹,3โข๐œ‹2, and ๐œ‹ are nodal on the four quadrants of the complex plane and in the Euler formula. Can you hazard a guess what value of ๐œƒ will evaluate to ๐‘–? The Cartesian point (0,1) on the complex plane corresponds to (1,๐œ‹2) in polar form. So, ๐‘– =๐‘’๐‘–โข๐œ‹2 where we are taking the principal value. Let us use this in Equation 13 where ๐‘’๐‘ง is written as expโก(๐‘ง) to avoid double superscripts: ๐‘–โˆ’๐‘–=expโก[๐‘–โก๐œ‹2]โˆ’๐‘–;take logarithms on both sideslnโก(๐‘–โˆ’๐‘–)=lnโก(expโก[๐‘–โก๐œ‹2])โˆ’๐‘–=โˆ’๐‘–โก[๐‘–โก๐œ‹2];note that ๐‘–โก(โˆ’๐‘–)=1=๐œ‹2;take exponentials on both sidesexpโก[lnโก(๐‘–โˆ’๐‘–)]=expโก[๐œ‹2]๐‘–โˆ’๐‘–=๐‘’๐œ‹2=[๐‘’๐œ‹]12=โˆš๐‘’๐œ‹ and we are done. The solution is illustrated in Figure 12.

Figure 12: This is the principal value solution to the equation i^{-i} = \sqrt{e^\pi} put up by Professor Benjamin Peirce on his blackboard at Harvard University. We have something purely imaginary on the LHS and something purely real on the RHS, courtesy of Eulerโ€™s formula.

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

  1. 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].

  2. A short, crisp, but complete YouTube video on the complex logarithm function that is worth watching is by TheMathCoach [13].

  3. 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

[1]
Higher Mathematics. 2025. Math Olympiad Question for Advanced Students. YouTube. Retrieved 3 June 2025 from https://www.youtube.com/watch?v=OgR02nRu2-g
[2]
Richard P Feynman, Robert Leighton, and Matthew Sands. 2015. The Feynman Lectures on Physics, Vol 1: Mainly Mechanics, Radiation, and Heat: Chapter 22: Algebra (New Millennium ed.). Basic Books.
[3]
blackpenredpen. 2021. Can 1^x=2?. YouTube. Retrieved 24 June 2025 from https://www.youtube.com/watch?v=9wJ9YBwHXGI
[4]
Ben Grossmann. 2023. does 1^z = 2 have any solutions? Retrieved 24 June 2025 from https://math.stackexchange.com/a/4797807/19098
[5]
Math Beast. 2025. Oxford entrance exam question | How to solve for "t" ?. YouTube. Retrieved 24 June 2025 from https://www.youtube.com/watch?v=GXLFYrr7lVk&t=1s
[6]
Istvรกn Mezล‘. 2022. The Lambert W Function: Its Generalizations and Applications (1st ed.). CRC Press.
[7]
Eric W Weisstein. 2015. Lambert W-Function. Wolfram MathWorldโ€”A Wolfram Resource. Retrieved 27 June 2025 from https://mathworld.wolfram.com/LambertW-Function.html
[8]
Free X. 2014. Convergence of tetration sequence. Mathematics StackExchange. Retrieved 28 June 2025 from https://math.stackexchange.com/questions/890319/convergence-of-tetration-sequence
[9]
Vladimir Reshetnikov. 2014. Convergence of power towers. Mathematics StackExchange. Retrieved 28 June 2025 from https://math.stackexchange.com/questions/800862/convergence-of-power-towers
[10]
Bumblebee. 2015. How can I prove the convergence of a power-tower?. Mathematics StackExchange. Retrieved 28 June 2025 from https://math.stackexchange.com/questions/1089458/how-can-i-prove-the-convergence-of-a-power-tower
[11]
Jeremy Orloff. 2020. Complex Variables with Applications. The Function log(z) - Mathematics LibreTexts. Retrieved 12 June 2025 from https://tinyurl.com/complex-log
[12]
Steve Brunton. 2023. Complex Analysis L04: The Complex Logarithm, Log(z). YouTube. Retrieved 12 June 2025 from https://www.youtube.com/watch?v=CpKD9aYEdms
[13]
TheMathCoach. 2017. Retrieved 24 June 2025 from https://www.youtube.com/watch?v=s_MY2ByjvUs
[14]
Xander Gouws. 2019. The Complex Logarithm. YouTube. Retrieved 24 June 2025 from https://www.youtube.com/watch?v=SYxyemNSSm8

  1. 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.โ†ฉ๏ธŽ

  2. We will not here explore the existence or validity of complex solutions.โ†ฉ๏ธŽ

  3. These final problems will definitely be relaxing, compared to the previous ones.โ†ฉ๏ธŽ

Copyright ยฉ 2006 โ€“ 2025, R (Chandra) Chandrasekhar. All rights reserved.