Solve for x logarithm question

  • Thread starter Thread starter Ascleipus
  • Start date Start date
  • Tags Tags
    Logarithm
Click For Summary

Homework Help Overview

The problem involves solving the equation log(x) = -4x + 5, where the logarithm has a base of 10. Participants are exploring various methods to approach this equation, which presents challenges due to the presence of the variable x both inside and outside the logarithm.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Problem interpretation, Assumption checking

Approaches and Questions Raised

  • Participants discuss converting the logarithm to natural logarithm and suggest using the Lambert W function for a potential solution. There are also mentions of numerical methods, including the Newton-Raphson method and iterative approximation techniques.

Discussion Status

The discussion is active, with various participants offering different approaches and questioning the algebraic complexity of the problem. Some participants express uncertainty about the algebraic solution, while others provide iterative methods for numerical approximation.

Contextual Notes

There is a recognition that the problem may not have a straightforward algebraic solution, and participants are considering the implications of this on their approaches. The original poster's context and the classification of the problem under "Precalculus Mathematics" are also noted as points of interest.

Ascleipus
Messages
21
Reaction score
0

Homework Statement


The problem asks to solve for x

log(x)=-4x+5 (the log has base 10 - not natural log)


Homework Equations





The Attempt at a Solution


log(x)=-4x+5

10^-4x+5=x

log(10^-4x+5)=log(x)
-4x+5*log(10)=log(x)
-4x+5=log(x)

seems at first to be a simple enough question to solve, however I only end up with a circular solution bringing me back to the original question when i take the log of this to bring down the exponent (of course)


Any help would be appreciated :)
 
Physics news on Phys.org
You could try writing $$log_{10}x=\frac{ln x}{ln10} $$
 
There isn't going to be any simple "algebraic" way to solve that because you have the unknown, x, both inside and outside the logarithm. The first thing I would do is use CAF123's suggestion to change to natural logarithm: ln(x)/ln(10)= -4x+ 5 so that ln(x)= (-4/ln(10))x+ 5/ln(10). Now take the exponential of both sides:
x= e^{(-4ln(10))x}e^{5/ln(10)}

xe^{(4/ln(10))x}= e^{5/ln(10)}

Now let y= (4/ln(10))x so that x= (ln(10)/4)y and the equation becomes
(ln(10)/4)ye^y= 5^{5/ln(10)}

ye^y= \frac{5^{5/ln(10)}}{ln(10)/4}

and therefore
y= W\left(\frac{5^{5/ln(10)}}{ln(10)/4)}\right)
where "W" is Lambert's W function (http://en.wikipedia.org/wiki/Lambert_W_function) which is defined as the inverse function to f(x)= xe^x
(I told you there was no simple "algebraic" solution!)

Since we defined y= (4/ln(10))x, we have, finally,
x= ln(10)\frac{W\left(\frac{5^{5/ln(10)}}{ln(10)/4)}\right)}{4}
May you have joy of it!

Since this was posted under "Precalculus Mathematics", where in the world did you get this problem?
 
HallsofIvy said:
There isn't going to be any simple "algebraic" way to solve that because you have the unknown, x, both inside and outside the logarithm. The first thing I would do is use CAF123's suggestion to change to natural logarithm: ln(x)/ln(10)= -4x+ 5 so that ln(x)= (-4/ln(10))x+ 5/ln(10).

Should that be ##ln(x) = ln(10)[5 - 4x]?## Instead of taking the exponential of both sides, I then said ##ln(x) = 5ln(10) - 4x ln(10)\,\Rightarrow ln(x) = ln \left(\frac{10^5}{10^{4x}} \right)##. I now take exp to get ##x10^{4x} = 10^5.##
 
it will be easier to solve this question using Newton-Raphson method. :)
 
CAF123 said:
Should that be ##ln(x) = ln(10)[5 - 4x]?## Instead of taking the exponential of both sides, I then said ##ln(x) = 5ln(10) - 4x ln(10)\,\Rightarrow ln(x) = ln \left(\frac{10^5}{10^{4x}} \right)##. I now take exp to get ##x10^{4x} = 10^5.##
Yes, I messed that up. Thanks for catching it. But that still has no "algebraic" solution. In order to use the W function, you will need to convert to "e". 10^{4x}= e^{ln(10^{4x}}= e^{4xln(10)} so the equation is the same as xe^{4xln(10)}= 10^5.

Let y= 4x ln(10) so that x= y/(4 ln(10)). The equation becomes, in terms of y, \frac{ye^y}{4ln(10}= 10^5. ye^y= 400000 ln(10), y= W\left(40000 ln(10)\right).

Then x= \frac{W\left(40000 ln(10)\right)}{4 ln(10)}
 
Ascleipus said:

Homework Statement


The problem asks to solve for x

log(x)=-4x+5 (the log has base 10 - not natural log)

You can solve the equation numerically by iteration.
Rewrite it as

x=(5-log(x))/4,

Get the next approximation from a previous one by xk+1=(5-log(xk))/4.

Using x1=1, substitute and get the next approximation: x2=1.25. Substitute again, now you get x3=1.227 ...
 
ehild said:
You can solve the equation numerically by iteration.
Rewrite it as

x=(5-log(x))/4,

Get the next approximation from a previous one by xk+1=(5-log(xk))/4.

Using x1=1, substitute and get the next approximation: x2=1.25. Substitute again, now you get x3=1.227 ...
Well, sure, if you want to do it the easy way!
 

Similar threads

Replies
10
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
17
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 8 ·
Replies
8
Views
4K
Replies
38
Views
7K
Replies
4
Views
3K