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

Click For Summary
Using absolute value signs around the arguments of logarithmic functions, such as ln|x| and log|x|, is generally more inclusive, allowing for definitions across both positive and negative values of x. When differentiating, the derivative of ln|x| is indeed 1/|x|, which accommodates both domains, while ln(x) is only valid for positive x. Some participants noted they typically omit absolute values unless generalizing to negative x. The discussion clarified that while the integral of 1/x is expressed as ln|x| + C, this notation reflects the need to cover both positive and negative cases. Ultimately, using absolute values enhances the generality of logarithmic expressions.
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:
Thread 'Problem with calculating projections of curl using rotation of contour'
Hello! I tried to calculate projections of curl using rotation of coordinate system but I encountered with following problem. Given: ##rot_xA=\frac{\partial A_z}{\partial y}-\frac{\partial A_y}{\partial z}=0## ##rot_yA=\frac{\partial A_x}{\partial z}-\frac{\partial A_z}{\partial x}=1## ##rot_zA=\frac{\partial A_y}{\partial x}-\frac{\partial A_x}{\partial y}=0## I rotated ##yz##-plane of this coordinate system by an angle ##45## degrees about ##x##-axis and used rotation matrix to...

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
Replies
5
Views
2K
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
11K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 7 ·
Replies
7
Views
4K
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
2
Views
1K