To Iterate or Not to Iterate?

Calculus Level 3

For which real number x x is the following equation true?

x + e x = 0 \Large{x + e^{x}=0}

Give your answer to 3 decimal places.

Bonus: If that was too easy, find some complex solutions.


The answer is -0.567.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Steven Chase
Sep 9, 2016

As far as I can tell, this problem has to be solved using an iterative approach. Newton's method is a great way to do it, and there is a good Brilliant page on the subject.

Newton's Method

Here's what the result looks like in Excel:

To me, it's a much more interesting exercise to find the complex solutions. There is a multivariate version of Newton's Method that I have used to find complex solutions. Instead of a single derivative, the method employs a matrix of partial derivatives, known as a Jacobian matrix.

Here's a plot of the A + B i A+Bi solutions in the complex plane. Note that the single real-valued solution is included. This plot was obtained by running the iterative multivariate algorithm numerous times, with different random starting values for A A and B B each time. The particular random starting pair determines which solution the algorithm converges to. The Python code is attached for reference.

It is also the negative of the omega constant

Shaun Leong - 4 years, 9 months ago

You sure made work of it :)

Peter van der Linden - 4 years, 9 months ago

Log in to reply

Indeed. Although the majority of the solution dealt with the more interesting general case. The question, as stated, was rather trivial.

Steven Chase - 4 years, 9 months ago

Oh, I didn't know that multivariate Newton Raphson method exists! Thanks for teaching me something new! =D

Pi Han Goh - 4 years, 9 months ago

I think it would be more interesting if you posted the bouns question as standalone problem. What do you think?

Pi Han Goh - 4 years, 9 months ago

Log in to reply

I like that idea. I thought about doing that, but there are many solutions in general. Maybe the answer could be the solution that has the smallest absolute value but is not purely real.

Steven Chase - 4 years, 9 months ago

Log in to reply

Yeahh, that workssss

Pi Han Goh - 4 years, 9 months ago
Mrunang Kothari
Apr 11, 2020

This is only for the real solutions.

First, do the substitution x = u x = - u

Doing this makes our original equation from x + e x = 0 x + e^{x} = 0 to u + e u = 0 -u + e^{-u} = 0

Rearranging the terms gives, e u = u e^{-u} = u

Taking a natural log on both sides gives, l n ( u ) = u ln(u) = - u

Plotting the graphs gives the solution u = 0.567 u = 0.567

And hence x = 0.567 \boxed{x = -0.567}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...