MHB Do you need absolute value around argument for log and ln?

find_the_fun
Messages
147
Reaction score
0
When I learned about derivatives I was taught to put the absolute value sign around the argument for ln and log. For example [math]\log{|x|}[/math] and [math]\ln{|x|}[/math] instead of [math]log(x)ln(x)[/math]. Does this make a difference? Should both brackets and the straight lines be used?

When taking the derivative what is the effect on the absolute sign? For example if I write [math]\ln{|x|}[/math] would it be incorrect if I didn't write [math]\frac{1}{|x|}[/math]
 
Physics news on Phys.org
find_the_fun said:
When I learned about derivatives I was taught to put the absolute value sign around the argument for ln and log. For example [math]\log{|x|}[/math] and [math]\ln{|x|}[/math] instead of [math]log(x)ln(x)[/math]. Does this make a difference? Should both brackets and the straight lines be used?

It is merely more general.
I don't usually use absolute value signs myself.
That is, until I may want to generalize my result to negative x, but usually there is no reason to.

When taking the derivative what is the effect on the absolute sign? For example if I write [math]\ln{|x|}[/math] would it be incorrect if I didn't write [math]\frac{1}{|x|}[/math]

Yes. Assuming that you mean by $\ln|x|$ a function that is defined both for positive x and for negative x, that means that the derivative must be $\frac {1}{|x|}$, which is also defined both for positive and negative x.
You can only leave out the absolute value signs if you limit your domain to positive x.


EDIT: My mistake. See Prove It[/color]'s comment below. The absolute signs should not be there.Btw, there is a catch.
The indefinite integral of $\frac {1}{x}$ is often denoted as $\ln|x| + C$.
But this is not quite correct.
That is because the integration constant can be different for positive x and for negative x.
 
I like Serena said:
It is merely more general.
I don't usually use absolute value signs myself.
That is, until I may want to generalize my result to negative x, but usually there is no reason to.
Yes. Assuming that you mean by $\ln|x|$ a function that is defined both for positive x and for negative x, that means that the derivative must be $\frac {1}{|x|}$, which is also defined both for positive and negative x.

Ah, no, this should be stricken from the record.

The derivative of \displaystyle \begin{align*} \ln{(x)} \end{align*} is \displaystyle \begin{align*} \frac{1}{x} \end{align*}. Notice how here we have that \displaystyle \begin{align*} x > 0 \end{align*} in order for the logarithm to be defined.

Notice too that the derivative of \displaystyle \begin{align*} \ln{(-x)} \end{align*} is also \displaystyle \begin{align*} \frac{1}{x} \end{align*}. Don't believe me, use the Chain Rule. Notice that here we have \displaystyle \begin{align*} x < 0 \end{align*} for the logarithm to be defined.

Thus, if we go in reverse, we have \displaystyle \begin{align*} \int{\frac{1}{x}\,dx} = \ln{(x)} \end{align*} IF \displaystyle \begin{align*} x > 0 \end{align*} and \displaystyle \begin{align*} \ln{(-x)} \end{align*} IF \displaystyle \begin{align*} x < 0 \end{align*}.

That sounds an awful lot like the definition of an absolute value to me...

So to summarise \displaystyle \begin{align*} \int{\frac{1}{x}\,dx} = \ln{|x|} + C \end{align*}There is NO reason (and in fact it is completely incorrect) to put \displaystyle \begin{align*} \frac{1}{|x|} \end{align*}.
 
Prove It said:
Ah, no, this should be stricken from the record.

My mistake.
I'll put an EDIT note in my previous post.
As I said, I don't usually use those absolute signs.
 
On the other hand, y = ln |x| has two branches, one on the +x axis and one on the -x axis. y = ln(x) only has the branch on the +x side. I think that makes it rather different.

[math]\int \frac{1}{x}~dx = ln |x| + C[/math]
is defined on all values of x (except for x = 0, of course) not just the +xs.

-Dan

Sorry ProveIt. I missed your post somehow.
 
Last edited by a moderator:
Back
Top