5
$\begingroup$

Canadian economist Mike Moffat asks on Twitter:

Math nerd Q: Is there a way to solve $e^x + x = 5$ for $x$, without using a numerical method?

  • 0
    @Chris: Yes! YES! That's *precisely* what annoys me about people who say "I don't want to use a numerical method"; even using the humble square root function of your computing environment is a bleeding numerical method! You said it, dude!2011-08-04

5 Answers 5

6

Write $y=5-x$. Then $ye^y=e^5$. Using the Lambert W function, this gives $x=5-W(e^5)$.

5

Yes, write it as $e^x =(5-x)$, then $e^5 e^{x-5} = (5-x)$ then $e^5 =(5-x)e^{5-x}$. Denote $y=5-x$. Equation becomes $e^5 = y*e^y$ which is an implicit equation defining Lambert W function. The $ y = W(e^5)$ and $x = 5- W(e^5)$.

$W(e^5)$ is approximately $3.69$ hence $x = 1.31$, see Wolfram-Alpha

1

Write $y = 5-x$, giving

$e^{5-y} = y$

and hence

$y e^y = e^5$

This can be inverted using the Lambert W function to give

$y = W(e^5)$

and hence

$x = 5 - W(e^5)$

0

Rewrite the equation and take the natural log:

$ e^x=5-x $. Then $ x=ln(5-x) $. Or $ x=ln(5)+ln(1-\frac{x}{5}) $. Linearizing the second RHS term gives: $ ln(1-\frac{x}{5})\approx-\frac{x}{5}+O(x^2) $. Hence an approximate answer for x is obtained by: $ x\approx ln(5)-\frac{x}{5} $, yielding: $ x\approx\frac{5}{6}\cdot ln(5)=1.34 $. Compared to the answer obtained by the Lambert W-function this answer is about 2% off.

  • 0
    OP asks for non numerical solution.2018-03-14
-2

Step 1. Transform the equation $e^x+x=5$ into $e^x=5-x$

Step 2. Write each side of the new equation as function : $y_1=e^x$ and $y_2=5-x$

Step 3. Graph these two functions in Desmos Graphing Calculator (you find its application in internet)

Step 4. Find the intersection of the two graphs. It has an $x$ and $y$ value.

Step.5 The $x$-value is the solution of our equation : $x=1.307$ (approximately)