What Is The Derivative Of Absolute Value

5 min read

What Is the Derivative of Absolute Value

The derivative of absolute value is one of those topics in calculus that seems simple on the surface but carries important nuances that every math student should understand thoroughly. At its core, the derivative of |x| — the absolute value function — is the sign function, often written as sgn(x), which equals 1 when x is positive, −1 when x is negative, and is undefined at x = 0. Understanding this concept is essential because it bridges the gap between basic algebraic functions and the more advanced world of differential calculus, revealing how functions behave at their boundaries and turning points.


Introduction

Before diving into the derivative itself, it helps to build a solid foundation by revisiting the two concepts involved: absolute value and derivatives. That's why the absolute value function is one of the most commonly encountered functions in mathematics, appearing in everything from distance calculations to optimization problems. Meanwhile, the derivative is the fundamental building block of calculus, measuring how a function changes at any given point. Combining these two ideas leads to a fascinating result — one that challenges intuition and deepens our understanding of how calculus handles piecewise-defined functions.

This article will walk you through the definition, the step-by-step process of finding the derivative, the mathematical reasoning behind it, and why the function fails to be differentiable at a critical point.


What Is Absolute Value?

The absolute value of a real number x, denoted as |x|, represents the distance of that number from zero on the number line, regardless of direction. Because distance is always non-negative, the absolute value is always positive or zero. Mathematically, it is defined as a piecewise function:

  • |x| = x, when x ≥ 0
  • |x| = −x, when x < 0

This piecewise nature is crucial. Worth adding: it means the absolute value function is not a single smooth curve but rather two different linear expressions stitched together at the origin. Consider this: the graph of |x| forms a distinct V-shape, with the vertex sitting at (0, 0). The left arm of the V slopes downward with a slope of −1, and the right arm slopes upward with a slope of +1.

And yeah — that's actually more nuanced than it sounds.


What Is a Derivative?

The derivative of a function at a particular point measures the instantaneous rate of change — or equivalently, the slope of the tangent line — at that point. Formally, the derivative is defined using the limit:

f'(x) = lim(h → 0) [f(x + h) − f(x)] / h

If this limit exists, the function is said to be differentiable at that point. Worth adding: a key requirement for differentiability is that the function must be continuous at that point, and more importantly, the left-hand limit and the right-hand limit of the difference quotient must agree. If they do not agree, the derivative does not exist.


Finding the Derivative of |x| Step by Step

Now let us compute the derivative of f(x) = |x| using the piecewise definition and the formal limit process.

Case 1: When x > 0

For positive values of x, |x| = x. So f(x) = x The details matter here..

Using the definition:

f'(x) = lim(h → 0) [(x + h) − x] / h = lim(h → 0) h / h = 1

The derivative is simply 1 for all x > 0 Still holds up..

Case 2: When x < 0

For negative values of x, |x| = −x. So f(x) = −x.

Using the definition:

f'(x) = lim(h → 0) [−(x + h) − (−x)] / h = lim(h → 0) [−x − h + x] / h = lim(h → 0) −h / h = −1

The derivative is −1 for all x < 0.

Case 3: When x = 0

This is where things get interesting. We must check the left-hand derivative and the right-hand derivative separately.

Right-hand derivative:

lim(h → 0⁺) [|0 + h| − |0|] / h = lim(h → 0⁺) |h| / h = lim(h → 0⁺) h / h = 1

Left-hand derivative:

lim(h → 0⁻) [|0 + h| − |0|] / h = lim(h → 0⁻) |h| / h = lim(h → 0⁻) −h / h = −1

Since the left-hand derivative (−1) does not equal the right-hand derivative (1), the limit does not exist. Which means, the derivative of |x| at x = 0 is undefined That's the part that actually makes a difference..


The Result: The Sign Function

Putting all three cases together, the derivative of |x| can be expressed compactly using the sign function, denoted sgn(x):

d/dx |x| = sgn(x)

Where:

  • sgn(x) = 1 when x > 0
  • sgn(x) = −1 when x < 0
  • sgn(x) is undefined at x = 0

It's a clean and elegant result. The derivative tells us exactly how the absolute value function is changing at every point — increasing at a rate of 1 on the right side and decreasing at a rate of 1 on the left side, with a sharp corner at the origin where no unique tangent line can be drawn.


Why the Derivative Is Undefined at Zero

The inability to differentiate |x| at x = 0 is not a failure of calculus but rather a reflection of geometric reality. At the origin, the graph of |x| has a sharp corner or cusp. Also, imagine trying to place a single straight line that just touches the V at its tip — you cannot do it. Any line you draw will either match the left arm or the right arm, but never both simultaneously.

This concept is deeply connected to the idea of continuity versus differentiability. While |x| is perfectly continuous at x = 0 (there are no breaks or jumps), it is not smooth at that point. In mathematical terms, continuity is a necessary but not sufficient condition for differentiability. The absolute value function at the origin is the classic textbook example that demonstrates this principle Surprisingly effective..


Graphical Interpretation

If you visualize the graph of |x| alongside its derivative, the relationship becomes very intuitive:

  • For x > 0, the original function rises linearly, and the derivative is a horizontal line at y = 1.
  • For x < 0, the original function falls linearly, and the derivative is a horizontal line at y = −1.
  • At x = 0, the derivative has a jump discontinuity, shooting from −1 to 1 with a gap at the origin.

This jump discontinuity in the derivative corresponds precisely to the sharp corner in the original function. Worth mentioning that derivatives can have discontinuities, but only under specific conditions — and a jump discontinuity in the derivative is one that signals a corner

People argue about this. Here's where I land on it.

Out Now

Hot and Fresh

Explore a Little Wider

Others Also Checked Out

Thank you for reading about What Is The Derivative Of Absolute Value. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home