I'm a little rusty, cant solve x+e^x=b

Click For Summary
SUMMARY

The discussion centers on solving the equation x + e^x = 4, where the user expresses difficulty in finding an analytical solution. The approximate solution is identified as x ≈ 1.0737, achieved through numerical methods or graphing tools. The Lambert W function is introduced as a method for obtaining an analytical solution, leading to the expression x = 4 - W(e^4). The user also mentions using Desmos for graphing and expresses interest in further mathematical concepts relevant to their studies in software engineering.

PREREQUISITES
  • Understanding of exponential functions and their properties
  • Familiarity with the Lambert W function and its applications
  • Basic skills in numerical approximation methods, such as Newton's method
  • Experience with graphing calculators or software like Desmos
NEXT STEPS
  • Study the properties and applications of the Lambert W function
  • Learn about numerical methods for root-finding, including Newton's method
  • Explore graphing techniques using Desmos or similar software
  • Review calculus concepts related to exponential growth and decay
USEFUL FOR

Students in mathematics, software engineering, or any field requiring calculus knowledge, particularly those interested in solving transcendental equations and applying numerical methods.

allamid06
Messages
5
Reaction score
0

Homework Statement


Hi, I'm new here. I'm really rusty, I resume my career this year, and I'm reading 'the spivak book', (for Calculus 1).
Making some exercises, I get curious about how to solve this: x+e^x=4
I would love if someone could give me any trick

Homework Equations

The Attempt at a Solution

 
Physics news on Phys.org
Welcome to PF!

I don't think there is an analytical way to solve for x in this example. I did graph it and found that x=1.0737... approximately.

You could find this by trying different values of x like 0,1,2... And then narrowing in the values. You could also uses a Newtons approximation formula or a graphing calculator to get the result.

Try doing it on a graphics calculator or using some graphing software like freemat on a PC or Mac.
 
  • Like
Likes   Reactions: allamid06
For an "analytical solution", you can first write the equation as e^x= 4- x, then divide both sides by e^x to get (4- x)e^{-x}= 1. Now, let y= 4- x so that -x= y- 4. In terms of y, the equation is ye^{y- 4}= ye^y(e^{-4})= 1. Multiply both sides of the equation by e^4 to get ye^y= e^4.

Finally, apply the "Lambert W function", which is defined as "the inverse function to f(x)= xe^x", to both sides of the equation getting y= W(e^4). Since x= 4- y, the solution to the original equation is x= 4- W(e^4).
 
Last edited by a moderator:
  • Like
Likes   Reactions: allamid06
HallsofIvy said:
For an "analytical solution", you can first write the equation as e^x= 4- x, then divide both sides by e^x to get (4- x)e^{-x}= 1. Now, let y= 4- x so that -x= y- 4. In terms of y, the equation is ye^{y- 4}= ye^y(e^{-4})= 1. Multiply both sides of the equation by e^4 to get ye^y= e^4.

Finally, apply the "Lambert W function", which is defined as "the inverse function to f(x)= xe^x', to both sides of the equation getting y= W(e^4). Since x= 4- y, the solution to the original equation is x= 4- W(e^4).

Thanks Hallsoflvy, and thanks jedishrfu. First of all, I will get the Hallsoflvy answer, because, I'm pretending to use anything but the first cap, of the Spivak.
By the other part, Hallsoflvy, I did that, but then I realize, that Lambert W function was too over the first cap of the book. Anyway I really like the way you explain me that method.
To be honest, the original problem was x+3^{x}<4. I use desmos.com a lot, to graph these things. I could solve this by seeing that 3^{x}=3 only if x=1, and since 3^{x} rises, (by "common sense"), 3^{x}<3 when x>1 and at the same time I can add these and get x+3^{x}<1+3. I could apply the same to show x+3^{x}>4 when 1>x.
But when I was doing this, I just get curious about how would I find the root, in this case. And then I went (don't know why) to x+e^{x}=b thinking it would be easier.
PD:Thanks for your time. Since I study software engineer, I will be more interested in Calculus, Discrete Maths,
Probability and Statistics etc. But also I will have Pysics I. What I'm saying is that I hope to be useful in this community, and I hope, there where place to my questions.
Also I'm from Uruguay, my apologies for my english. -I can understand you but I'm not really good writing-
 

Similar threads

Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
9K
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
Replies
4
Views
6K