I don't understand $\ln$ properties when it comes to absolute value.

533 Views Asked by At

Let's say we have a function with absolute value like:

$f(x) = \ln\vert x\vert$ where $x$ is any real number except 0

Now, when we get rid of the absolute value, we get this:

$f(x) = \ln(x)$ where $x$ is positive

$f(x) = \ln(-x)$ where $x$ is negative

But here is the thing, $\ln$ properties allow us to do something like

$\ln(xy) = \ln(x) + \ln(y)$

So we apply this to the second form of function

$f(x) = \ln(-x)$ means

$f(x) = \ln(-1) + \ln(x)$

But $\ln$ is undefined for negative real numbers so I don't get it, how does this work?

3

There are 3 best solutions below

0
On

$\ln (xy)=\ln (x)+\ln (y)$ holds only for positive numbers $x$ and $y$. You cannot use negative numbers in this.

2
On

The absolute value is present exactly to avoid this.

When you write $f(x) = ln|x|$ It means that a negative number cannot come inside the bracket.

so when you apply the second form of function, x is a negative number and negative and negative cancel out. What you have done is similar to

$ln(1)=ln(-1*-1)=ln(-1)+ln(-1)$, which cannot be done, as the property is defined only for positive real numbers :~)

1
On

The equality $\ln (xy) = \ln x + \ln y$ only holds if all components are well defined, namely if $x,y >0$. The same happens in situations that do not involve the absolute value... For instance $\ln (x^2)$ is well defined for any $x \ne 0$, but the property $\ln(x^2) = 2 \ln x$ only holds for $x>0$.