Usually, we solve an equation by finding one unknown. But what happens when we ask for all pairs of numbers that give the same output?
The obvious answer is x = y. For a function that rises to one peak and then falls, however, there is a second, surprisingly structured family of solutions. We will first uncover its general geometry and then find exact solutions for f(x) = xne−x.
1. The general principle: matching heights
Suppose f is continuous on an interval [a,b], strictly increasing on [a,c], and strictly decreasing on [c,b]. Its unique maximum occurs at c. A horizontal line below the peak may meet the graph at two points, one on each side. These points have equal function values.
More precisely, let L = f([a,c]) ∩ f([c,b]) be the common range of the two monotone branches. For every height in L below f(c), there is exactly one corresponding point on each side of c. Thus the equation f(x) = f(y) has the diagonal solutions y = x and, wherever both branches share the same height, a second family of solutions.
Define the partner map σ by exchanging the two points at the same height, and set σ(c) = c. It has three important properties:
- It is decreasing: moving up the left branch moves the partner backward along the right branch.
- It is an involution: σ(σ(x)) = x. Exchanging partners twice returns to the starting point.
- It has one fixed point: σ(c) = c.
If f is differentiable and its derivative is nonzero at the paired points away from c, implicit differentiation of f(x) = f(σ(x)) gives
2. Why the solution curves cross
In the (x,y)-plane, the trivial solutions form the diagonal y = x. The nontrivial partners form a decreasing curve symmetric about that diagonal, since f(x) = f(y) is unchanged when x and y are exchanged.
There is a particularly elegant fact at the peak. If f is twice differentiable near c, f′(c) = 0, and f″(c) < 0, Taylor expansion gives
Equal heights on opposite sides therefore have displacements that are asymptotically equal in magnitude and opposite in sign. Hence σ′(c) = −1, and the partner curve crosses y = x at a right angle. This conclusion requires the stated nondegeneracy assumption; a unique maximum alone is not enough.
3. A family with an exact answer
Consider, for any real n > 0 and x > 0,
Its derivative is f′n(x) = xn−1e−x(n−x). Thus it rises until x = n and falls afterward, reaching its unique maximum at x = n. We seek all positive pairs satisfying
Taking natural logarithms and rearranging gives
For a nontrivial pair, write y = kx with k > 0 and k ≠ 1. We obtain the complete parameterization of the nontrivial positive solutions:
Every k > 1 gives x < n < y; replacing k by 1/k swaps x and y. As k tends to 1, both coordinates tend to n. The diagonal y = x supplies all remaining solutions.
4. Exact points: choose the ratio first
Instead of choosing x and solving a transcendental equation for y, choose a simple ratio k = y/x. The formulas immediately produce exact points involving logarithms.
| Ratio k | x/n | y/n |
|---|---|---|
| 2 | ln 2 | 2 ln 2 |
| 3 | (ln 3)/2 | 3(ln 3)/2 |
| 4 | (ln 4)/3 | 4(ln 4)/3 |
| e | 1/(e−1) | e/(e−1) |
| 1/2 | 2 ln 2 | ln 2 |
These are exact solutions for every n > 0 after multiplying both coordinates by n. For instance, k = 2 gives (x,y) = (n ln 2, 2n ln 2).
5. Graphs for n = 1, 2, and 3
The first graph shows the three unimodal functions. Their peaks move to x = 1, 2, and 3 respectively; their heights differ, so we normalize each curve by its maximum to compare their shapes.
Next we graph the solution pairs in the (x,y)-plane. The diagonal is common to all three equations. The colored curves are the nontrivial partners, crossing the diagonal at (n,n).
Example A: x e−x = y e−y
The nontrivial curve passes through (1,1). Choosing k = 2 gives the exact pair (ln 2, 2 ln 2), approximately (0.6931, 1.3863). Indeed, the two sides both equal (ln 2)/2. Choosing k = 3 gives ((ln 3)/2, (3 ln 3)/2), approximately (0.5493, 1.6479).
Example B: x2 e−x = y2 e−y
The curves now cross at (2,2). Choosing k = 2 gives (2 ln 2, 4 ln 2), approximately (1.3863, 2.7726). Both function values are exactly (ln 2)2. Choosing k = 3 gives (ln 3, 3 ln 3), approximately (1.0986, 3.2958).
Example C: x3 e−x = y3 e−y
The curves cross at (3,3). Choosing k = 2 gives (3 ln 2, 6 ln 2), approximately (2.0794, 4.1589). Both function values are (27/8)(ln 2)3. Choosing k = 3 gives ((3 ln 3)/2, (9 ln 3)/2), approximately (1.6479, 4.9438).
Try it yourself
- For n = 4, find the exact pair of distinct positive numbers satisfying f4(x) = f4(y) with y = 2x.
- Prove that replacing k by 1/k swaps the two coordinates in the parameterization.
Solutions to the practice problems
Try each problem yourself before opening its solution.
Problem 1. For n = 4, find x and y when y = 2x.
We need x4e−x = y4e−y with y = 2x and x > 0.
Substitute y = 2x and divide by x4e−2x:
ex = 24 = 16.
Therefore x = 4 ln 2 and y = 8 ln 2. Both values are on opposite sides of the maximum x = 4, since 4 ln 2 < 4 < 8 ln 2.
Problem 2. Show that replacing k by 1/k exchanges x and y.
Recall x(k) = n ln k/(k − 1) and y(k) = nk ln k/(k − 1).
Replace k with 1/k:
x(1/k) = n ln(1/k)/(1/k − 1) = n(−ln k)/((1 − k)/k) = nk ln k/(k − 1) = y(k).
Similarly, y(1/k) = (1/k)x(1/k) = n ln k/(k − 1) = x(k).
Thus k and 1/k describe the same unordered pair of inputs, with the two coordinates reversed.
Continue exploring: the scaled solution curves for every n turn out to be one and the same curve, and the Lambert W function gives the partner of any x directly. See Beyond the Peak: Exact Equal-Value Pairs and the Lambert W Function.
Further Reading: Two Examples of Unimodal Functions
The general theory developed here applies to many familiar functions. Two particularly interesting examples are:
- When Does x^(1/x) = y^(1/y)? — On the positive real axis, the function x^(1/x) increases to its unique maximum at x = e and then decreases. Its equal-value pairs illustrate the two branches of a unimodal function.
- When Does x cos(x) = y cos(y)? — On the interval [0, π/2], the function x cos(x) has a unique maximum. The equation x cos(x) = y cos(y) therefore produces a decreasing nontrivial solution curve, just as predicted by the general theory.
These two examples show that the same geometric structure appears in both exponential-type and trigonometric functions.

Leave a Reply