For which real number x is the following equation true?
x + e x = 0
Give your answer to 3 decimal places.
Bonus: If that was too easy, find some complex solutions.
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.
It is also the negative of the omega constant
You sure made work of it :)
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.
Oh, I didn't know that multivariate Newton Raphson method exists! Thanks for teaching me something new! =D
I think it would be more interesting if you posted the bouns question as standalone problem. What do you think?
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.
This is only for the real solutions.
First, do the substitution x = − u
Doing this makes our original equation from x + e x = 0 to − u + e − u = 0
Rearranging the terms gives, e − u = u
Taking a natural log on both sides gives, l n ( u ) = − u
Plotting the graphs gives the solution u = 0 . 5 6 7
And hence x = − 0 . 5 6 7
Problem Loading...
Note Loading...
Set Loading...
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 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 and B each time. The particular random starting pair determines which solution the algorithm converges to. The Python code is attached for reference.