Having trouble with this log equation `

  • Thread starter Thread starter Jeff Cook
  • Start date Start date
  • Tags Tags
    Log
AI Thread Summary
The discussion revolves around solving the equation log(A - B - C) = -C + A + B for C. Initial attempts to manipulate the equation led to confusion regarding logarithmic properties, particularly the incorrect application of log rules. Participants clarified that the equation can be simplified using natural logarithm properties, leading to a more manageable form. The conversation highlights the complexity of isolating C, suggesting that it may involve transcendental functions like Lambert's W function for a general solution. Ultimately, the discussion emphasizes the importance of correctly interpreting logarithmic equations and the potential for errors in initial formulations.
Jeff Cook
Messages
41
Reaction score
0
How would one go about solving for C in the following equation?

log ( A - B - C ) = -C + A + B

I have done this...

log ( A - B ) / log ( C ) = -C + A + B

Then...

C + ( log ( A - B ) / log ( C )) = A + B

But I am just shooting in the dark really. Where would one go from here? I would greatly appreciate any help with this.

Thanks,

Jeff
 
Physics news on Phys.org
Step 1 is wrong.

log ( A - B - C ) doesn't equal log ( A - B ) / log ( C )

log ( A - B ) / log ( C ) is actually log [(A-B)/C]


And I don't think the rest can be done.
 
theperthvan said:
Step 1 is wrong.

log ( A - B - C ) doesn't equal log ( A - B ) / log ( C )

log ( A - B ) / log ( C ) is actually log [(A-B)/C]

That is wrong too. The rule is log(A) - log(B) = Log(A/B).
 
I made an error, but I still have the question...

Okay, I made an error. I will step back to the original problem that I had but did not include.

In...

A - log ( e^(A-B) / e^(C)) = A - B - C

What is C? If it cannot be done, could speculate or explain why it can't?

Sorry about the confusion.

Again, any help with this would be greatly appreciated.

Thanks,

Jeff
 
Jeff Cook said:
Okay, I made an error. I will step back to the original problem that I had but did not include.

In...

A - log ( e^(A-B) / e^(C)) = A - B - C

What is C? If it cannot be done, could speculate or explain why it can't?

Sorry about the confusion.

Again, any help with this would be greatly appreciated.

Thanks,

Jeff

Use the rules of logs, starting with the one I posted above, this should simplify very easily.
 
Jeff Cook said:
Okay, I made an error. I will step back to the original problem that I had but did not include.

In...

A - log ( e^(A-B) / e^(C)) = A - B - C

What is C? If it cannot be done, could speculate or explain why it can't?

Sorry about the confusion.

Again, any help with this would be greatly appreciated.

Thanks,

Jeff

Well, first subtract A from both sides. Next note that \frac{e^{(A-B)}}{e^{C}}=e^{(A-B)}e^{-C}=e^{(A-B-C)} It should then simplify quite easily.
 
Got it...

Okay, thanks, guys.

J
 
and remember that log(e^x) = x
 
Natural Log That is. I don't always like it when people use log for log base e, using ln is quicker and more informative...
 
  • #10
Gib Z said:
Natural Log That is. I don't always like it when people use log for log base e, using ln is quicker and more informative...

Yes, same here.
 
  • #11
cristo said:
Well, first subtract A from both sides. Next note that \frac{e^{(A-B)}}{e^{C}}=e^{(A-B)}e^{-C}=e^{(A-B-C)} It should then simplify quite easily.

If by simplified he means to express C in closed form in terms of A and B then I'd like to see someone do it. It looks like a transendental equation to me.
 
  • #12
It looks like a tautology to me.
 
  • #13
tautology, how so?
 
  • #14
C=A/(ln10+1)-B

correct me if I'm wrong.
 
Last edited:
  • #15
correct me if I'm wrong.
You're wrong, just choose almost any two numbers for A and B and you'll find a counter-example. I tested your result with A=45 and B=3 and it definitely fails.
 
Last edited:
  • #16
Lambert's W function is defined as the inverse of the function f(x)= xex. It is, typically, the only way to solve an equation that has the unknown variable both as an exponent and not.
 
  • #17
uart said:
You're wrong, just choose almost any two numbers for A and B and you'll find a counter-example. I tested your result with A=45 and B=3 and it definitely fails.


I'm sorry but your example is correct.

when A=45 and B=3 -> c=10.6256898

In the original equation the left part is 31.3747102; the right part is 42-10.6256898 -> which is exactly 31.3747102.
 
  • #18
DanReit said:
I'm sorry but your example is correct.

when A=45 and B=3 -> c=10.6256898

In the original equation the left part is 31.3747102; the right part is 42-10.6256898 -> which is exactly 31.3747102.

No, the original equation was log( A - B - C ) = -C + A + B and those numbers definitely do not work in that equation.

BTW, which equation are you substituting them into?
 
  • #19
Jeff Cook said:
Okay, I made an error. I will step back to the original problem that I had but did not include.

In...

A - log ( e^(A-B) / e^(C)) = A - B - C

What is C? If it cannot be done, could speculate or explain why it can't?

Sorry about the confusion.

Again, any help with this would be greatly appreciated.

Thanks,

Jeff

Isn't that the original problem?

That is the equation I solved..
 
  • #20
Jeff Cook said:
In...

A - log ( e^(A-B) / e^(C)) = A - B - C

What is C?

The above simplifies to
B+C = \log \left( \frac{e^{(A-B)}} {e^C}\right) = \log \left( {e^{(A-B-C)}}\right) = A-(B+C)
Solving for C,
C=\frac A 2 - B

Your original post is
Jeff Cook said:
How would one go about solving for C in the following equation?

log ( A - B - C ) = -C + A + B

This is an entirely different problem. So which statement of the problem is correct?
 
Last edited:
  • #21
There was an error in the first equation, so I backed up.

In...

A - log ( e^(A-B) / e^(C)) = A - B - C

What is C?

This is the issue at hand.

Jeff
 
  • #22
Unless qualified with a base, 'log' usually means natural log. If that is what you meant by 'log', then C=\frac A 2 - B. If you meant the base 10 logarithm instead, then C=\frac A {1+ln 10}-B
 
  • #23
DanReit said:
Isn't that the original problem?

That is the equation I solved..

Whoops, I didn't notice that the poster had changed the original problem as given in the first post.:blushing:
 
Back
Top