Solving Logs: Step-by-Step Guide

  • Context: High School 
  • Thread starter Thread starter elemis
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
16 replies · 3K views
elemis
Messages
162
Reaction score
1
Is there a general method for solving these kind of questions ?

How would you solve it ? With steps please.

log x= 5-x

log x=3x-3
 
Mathematics news on Phys.org
Come now. Dont be shy :P
 
You need to solve them numerically. Topics like this one belong in the homework forums.
 
Theaumasch said:
You need to solve them numerically. Topics like this one belong in the homework forums.

Please do explain further. At least solve and show me the steps.
 
1. Get your graphing calculator.
2. Y1=5^-x, Y2=log(x)
3. Plot and use the intersect function of your calculator.
 
They can be solved using the Lambert W function, but if you haven't heard of ths before then it won't really be of any help since that function is solved numerically anyway.
 
you could graph the two equations and try to see where they cross. Or you could try to find a zero of their difference by Newton's method. one trivial comment is that x > 0, since other wise log(x) is undefined. In fact since 5^(-x) > 0, and log(x) is only positive when x > 1, we know x > 1. in fact when x = 2, we have 5^(-x) = 1/25 = .04, and since log(2) is probably bigger than that (isn't it about .6? Anyway just looking at ln(1+x) = the integral of 1/(1+x) shows it is easily more than .5) then 1 < x < 2. so just get in there and start trying elementary estimates to get a feel for it. (I presume log means ln).
 
Last edited:
Mentallic said:
They can be solved using the Lambert W function, but if you haven't heard of ths before then it won't really be of any help since that function is solved numerically anyway.
Just like log, or exp, or sine and cosine.
 
HallsofIvy said:
Just like log, or exp, or sine and cosine.

Yes but at least most ordinary hand calculators have the other functions. I can't find my W function on mine :wink:
 
Mentallic said:
They can be solved using the Lambert W function, but if you haven't heard of ths before then it won't really be of any help since that function is solved numerically anyway.

I do not believe those two equations can be solved for x in terms of the Lambert-W function because the inverse functions work against any sort of isolation of x.
 
jackmell said:
I do not believe those two equations can be solved for x in terms of the Lambert-W function because the inverse functions work against any sort of isolation of x.

Oh yes you're right! How silly of me :redface:
 
Mentallic said:
Oh yes you're right! How silly of me :redface:

Hi Mentallic. To be fair, I first tried to solve them in Mathematica. Now, just because it couldn't do it is no guarantee but that did give me some confidence the W function could probably not be used here. I recommend to everyone here to try and get use to using Mathematica to confirm your work but not rely on it to much. :)
 
Last edited:
Mathematica is pretty damn good, so if you find that it doesn't give you an exact solution in terms of the function, it should make you start thinking that way too.

The W function accounts for equations of the form [tex]x=a^x[/tex] but not of [tex]x=a^{b^x}[/tex] which is what you would get from taking the exponential of both sides. I quickly skimmed over the questions and the W functions quickly came to mind. I should have taken a closer look at them though.
 
The Lambert W function is very useful for solving both log-linear and exp-linear equations such as :

[tex]ln(x) + ax = b[/tex]

or

[tex]e^x + ax = b[/tex]

For the log type the solution is :

[tex]x = \frac{1}{a} \, W\left(a e^b\right)[/tex]

And for the exp type the solution is :

[tex]x = \frac{b}{a} - W\left(\frac{1}{a} \, e^{b/a}\right)[/tex]

For more complicated log and exponential equations I find that sometimes I can manipulate them into a form that's amenable to the Lambert W function, but often not.
 
Re getting the Lambert W function on a standard pocket calculator.

I've found that Lambert W is pretty amenable to simple "fix point iteration", so if you can solve it fairly easily on most (non programmable) pocket calculators.

As you know the value of [itex]W(c)[/itex], for some constant "c", is the solution to [itex]x e^x = c[/itex]. To solve by fixed point iteration simply rearrange it into the form of x = f(x) in either of the most obvious ways. That is either of

1. [tex]\,\,\,\,\,x = \frac{c}{e^x}[/tex]

or

2. [tex]\,\,\,\,\,x = ln(\frac{c}{x})[/tex]

Rearrangement #1 converges under fixed point iteration for [itex]c<e[/itex] and rearrangement #2 converges for [itex]c>e[/itex].

Unfortunately the convergence of both is poor for arguments around e but with a simple "averaging" modification the second one does converge quote nicely around e. That is,

3. [tex]\,\,\,\,\,x = \frac{1}{2} \left( x + ln(\frac{c}{x}) \right)[/tex]

Rearrangement number #3 is best used for arguments "c" in the range of about [itex]1 < c < 10[/itex].
 
Last edited: