Logarithm problem that I'm stuck on

Click For Summary

Homework Help Overview

The problem involves solving the equation ln(x) = 5 - x, which is situated within the context of logarithmic functions and numerical methods for finding solutions.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the lack of an analytical solution and suggest numerical methods, including iterative approaches and the use of the Lambert W function. There are attempts to clarify the relationship between the functions involved and the implications of their slopes.

Discussion Status

There is ongoing exploration of numerical methods and the Lambert W function as potential tools for finding solutions. Participants are sharing insights and approaches without reaching a definitive conclusion.

Contextual Notes

Participants note the necessity of numerical solutions and the constraints posed by the nature of the equation, including the use of initial guesses and iterative methods.

Rectifier
Gold Member
Messages
313
Reaction score
4
The problem statement
ln(x) = 5 -x
Solve for x.

The attempt at a solution
ln x = 5 - x \\ e^{ln x} = e^{5 - x} \\ e^{ln x} = \frac{e^5}{e^x} \\ x e^x = e^5
Here is the place where I get stuck.
 
Physics news on Phys.org
There is no analytical solution. You have to solve it numerically, e.g. ##x_{n+1}=5-\ln(x_n)## starting with ##x_0=5##.
 
In addition to what DrDu said already, the formal solution to the problem is given in terms of the Lambert W function. As indicated in the previous post, you will have to find the solutions to this numerically.
 
##5 = x + ln(x)##

Consider:
##y = 5##
and
##y = x + ln(x)##

Take an educated guess at a solution.

##y_n = x_n + ln(x_n)##
_
Consider the slope of the tangent line to this function at ##x_n##.

The slope of the tangent line of this function at ##x_n## is approximately equal to the slope of the secant line of this function between ##x_n## and ##x_{n+1}##.

Let ##y_{n+1} = 5##.

Find your new ## x_{n+1}##.

Repeat iteratively.

Within 3 iterations (by hand), I converged on the solution.
 
The "Lambert W function" that Orodruin referred to is defined as the inverse function to f(x)= xe^x. So, immediately, x= W(e^5).
 

Similar threads

Replies
12
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K