Solving Logs: Step-by-Step Guide

  • Context: High School 
  • Thread starter Thread starter elemis
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around methods for solving logarithmic equations, specifically the equations log x = 5 - x and log x = 3x - 3. Participants explore various approaches, including numerical methods, graphical solutions, and the use of the Lambert W function.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants suggest solving the equations numerically and recommend using graphing calculators to find intersections.
  • Others propose using the Lambert W function, noting its applicability to certain types of equations, but express uncertainty about its effectiveness for the given equations.
  • A participant mentions that the equations can be graphed to find where they intersect and discusses the implications of the logarithmic function's domain.
  • There is a discussion about the limitations of calculators in handling the Lambert W function and the potential for using fixed point iteration methods as an alternative.
  • Some participants express skepticism about the feasibility of isolating x in terms of the Lambert W function for these specific equations.
  • There are references to using software like Mathematica to explore solutions, with varying levels of confidence in its results.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method for solving the equations. Multiple competing views remain regarding the applicability of the Lambert W function and the effectiveness of numerical versus graphical methods.

Contextual Notes

Participants note that the equations are defined for x > 0, and some express uncertainty about the behavior of the logarithmic function in relation to the proposed methods. There are also discussions about the limitations of calculators and software in solving these types of equations.

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
Anyone ?
 
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:
Basic rule, only trivial "cook book" equations can be "solved" explicitly, so Newton's method is always the way to go in general.
 
  • #10
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.
 
  • #11
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:
 
  • #12
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.
 
  • #13
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:
 
  • #14
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:
  • #15
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.
 
  • #16
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.
 
  • #17
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:

Similar threads

  • · Replies 44 ·
2
Replies
44
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 48 ·
2
Replies
48
Views
5K