The natural logarithm refuses negative inputs, yet calculus keeps meeting quantities like that make sense on both sides of zero. Putting an absolute value inside the logarithm gives a logarithm that also accepts negative inputs. The input first becomes its distance from zero, and only that positive distance reaches the logarithm. The result is a graph with two separate pieces, one on each side of a forbidden point.
Key terms
The function ln of absolute x
Definition The function is the composition of the absolute value with the natural logarithm. To evaluate it at a real number , first compute , then apply . It is defined exactly for those with .
In plain words Strip the sign off the input, then take the natural logarithm of what is left.
Example Two inputs with the same distance from zero give the same output.
The order matters. The expression applies the logarithm first and is a different function, defined only for .
Positive argument and the nonzero domain
Definition The natural logarithm is defined exactly when its argument satisfies . For the argument is , and holds precisely when . So the domain of is
In plain words The absolute value makes every negative input positive, so negatives are now allowed. Zero stays zero, and is undefined, so is still excluded.
Example At the argument is , so is defined. At the argument is and there is no output. Near zero the outputs fall without bound. For instance , and as from either side, so the line is a vertical asymptote.
Piecewise description
Definition Since for and for ,
No case is written for , because the function is not defined there.
In plain words On the right of zero it is the ordinary natural logarithm. On the left it is the natural logarithm of the positive number .
Example At use the second case.
The second case never feeds a negative number to the logarithm, because whenever .
Two branches
Definition The graph of consists of two disconnected branches, one over and one over . The right branch is the graph of and is increasing on . The left branch is the graph of and is decreasing on . The zeros are and . The range is all real numbers, because for every real the two inputs and both give output .
In plain words You draw the familiar logarithm curve on the right, then a second curve on the left that falls as it moves toward zero. The pen has to lift at .
Example Exact points are easy to build from powers of .
Reading the left half from top to bottom, moves toward zero and the output drops from to , so the left branch decreases. On the right half moves away from zero and the output climbs.
Even symmetry
Definition A function is even when is in its domain whenever is, and for every in the domain. The function is even, because its domain is symmetric about and
Its graph is symmetric about the -axis.
In plain words The left branch is the mirror image of the right branch across the -axis.
Example Reflecting the point on the right branch gives , and indeed . This also explains why one branch increases and the other decreases. A mirror reverses left and right, so a curve that rises as you move right becomes one that rises as you move left, which means it falls as increases.
Absolute value inside a logarithm
Definition For a function , the expression is defined exactly at the inputs in the domain of with . In particular, for a real number the function is the graph of shifted units to the right. Its domain is all , its vertical asymptote is , its zeros are and , and its graph is symmetric about the line .
In plain words Find where the inside is zero and remove that point. Everywhere else the absolute value turns the inside into a positive distance.
Example Consider . The inside is zero at , so the domain is and the line is the asymptote. The zeros solve , so
Points at equal distance from match, for example .
Logarithmic identity with absolute values
Definition For every real ,
This follows from the power law applied to the positive number , since . The shorter form is correct only for . More generally, for nonzero real numbers and ,
In plain words When you pull an even power out of a logarithm, an absolute value has to appear, or you lose the negative half of the domain.
Example At the left side is . The correct right side is . The careless form is undefined, so writing would wrongly throw away every negative input. Looking ahead, this matters in calculus. There you will learn that the slope of at any is , on both sides of zero, so the absolute value is exactly what keeps the negative inputs.
Check yourself
- Find the domain and the zeros of .
Show the answer
The inside is zero at , so the domain is all . The zeros solve , which gives or , so or .
- Evaluate and exactly.
Show the answer
The absolute values are and , so the outputs are and .
- A student simplifies to and then says the expression is undefined at . What went wrong, and what is the correct value?
Show the answer
The rewrite is valid only for . The original is defined at , and the correct identity gives