Solving Logs: Step-by-Step Guide

  • Thread starter elemis
  • Start date
In summary, solving equations involving logarithms and exponentials can be done using the Lambert W function, but it may not always be the most efficient method. Other techniques such as graphing or using a graphing calculator can also be used to find solutions numerically. Additionally, the Lambert W function is not available on standard pocket calculators, but can be approximated using fixed point iteration for certain values.
  • #1
elemis
163
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
  • #2
Anyone ?
 
  • #3
Come now. Dont be shy :P
 
  • #4
You need to solve them numerically. Topics like this one belong in the homework forums.
 
  • #5
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.
 
  • #6
1. Get your graphing calculator.
2. Y1=5^-x, Y2=log(x)
3. Plot and use the intersect function of your calculator.
 
  • #7
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.
 
  • #8
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:
  • #9
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:

FAQ: Solving Logs: Step-by-Step Guide

What is a log?

A logarithm, or log, is the inverse function of exponentiation. It is used to solve for the exponent in an exponential equation.

Why do we use logs?

Logs are used to solve for the missing variable in an exponential equation, which can be difficult to do algebraically. They also help to condense large numbers into more manageable values.

How do you solve a log equation?

To solve a log equation, you can rewrite it in exponential form and then solve for the variable. Alternatively, you can use the properties of logarithms, such as the product, quotient, and power rules, to simplify the equation and solve for the variable.

What are the common mistakes when solving log equations?

Some common mistakes when solving log equations include forgetting to use the properties of logarithms, misunderstanding the order of operations, and not checking for extraneous solutions. It is important to double check your work and make sure you have followed all the necessary steps.

Can logs be negative?

Yes, logs can be negative. In fact, logarithms of fractions or decimals are often negative. However, the argument of a logarithm must always be positive. If the argument is negative, the logarithm is undefined.

Similar threads

Replies
5
Views
2K
Replies
44
Views
4K
Replies
1
Views
837
Replies
9
Views
1K
Replies
15
Views
3K
Back
Top