← Back to learning objective

Differentiability of |ln(x)| at x = 1

Consider the function f(x)=∣ln⁡(x)∣f(x) = |\ln(x)|, defined for x>0x > 0. Note that ln⁡(1)=0\ln(1) = 0, so f(1)=0f(1) = 0, and near x=1x=1 the function behaves like ln⁡(x)\ln(x) for x≥1x \ge 1 and like −ln⁡(x)-\ln(x) for 0<x≤10 < x \le 1.

Use the limit definition of the derivative, f′(1)=lim⁡x→1f(x)−f(1)x−1,f'(1) = \lim_{x \to 1} \frac{f(x) - f(1)}{x-1}, to determine whether f(x)=∣ln⁡(x)∣f(x) = |\ln(x)| is differentiable at x=1x = 1. You should compute the one-sided limits as x→1+x \to 1^+ and x→1−x \to 1^- separately.

Differentiability of |ln(x)| at x = 1 graph

Based on your computation, state whether ff is differentiable at x=1x=1, and if it is not, identify what feature of the graph (corner, cusp, vertical tangent, or discontinuity) causes the failure.

Hint

Near x=1x=1, split into cases: for x≥1x \ge 1, f(x)=ln⁡(x)f(x) = \ln(x), and for 0<x≤10 < x \le 1, f(x)=−ln⁡(x)f(x) = -\ln(x). Compute lim⁡x→1+ln⁡(x)−0x−1\lim_{x\to 1^+}\frac{\ln(x)-0}{x-1} and lim⁡x→1−−ln⁡(x)−0x−1\lim_{x\to 1^-}\frac{-\ln(x)-0}{x-1} using known limits or L'Hopital's rule, then compare the two one-sided results.

Step-by-step solution

For xx slightly greater than 11, f(x)=ln⁡(x)f(x) = \ln(x), so the right-hand limit is lim⁡x→1+ln⁡(x)−0x−1\lim_{x\to 1^+} \frac{\ln(x) - 0}{x - 1}. This is exactly the limit definition of the derivative of ln⁡(x)\ln(x) at x=1x=1, which equals 1/1=11/1 = 1. For xx slightly less than 11, f(x)=−ln⁡(x)f(x) = -\ln(x), so the left-hand limit is lim⁡x→1−−ln⁡(x)−0x−1=−lim⁡x→1−ln⁡(x)x−1=−1\lim_{x\to 1^-} \frac{-\ln(x) - 0}{x-1} = -\lim_{x\to 1^-}\frac{\ln(x)}{x-1} = -1.

Since the right-hand limit (11) and the left-hand limit (−1-1) of the difference quotient disagree, the two-sided limit lim⁡x→1f(x)−f(1)x−1\lim_{x\to 1}\frac{f(x)-f(1)}{x-1} does not exist. Therefore ff is not differentiable at x=1x=1. Graphically, this happens because the two linear pieces ln⁡(x)\ln(x) and −ln⁡(x)-\ln(x) meet at x=1x=1 with different slopes, producing a sharp corner (like the graph of ∣x∣|x| at 00) rather than a smooth tangent line.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap