Search Authority

Mastering Derivatives: How to Take the Derivative of Absolute Value Easily

Calculus becomes clearer once you understand how to handle the absolute value function. This guide shows you a reliable process for taking the derivative of expressions that inv...

Mara Ellison
Mastering Derivatives: How to Take the Derivative of Absolute Value Easily

Calculus becomes clearer once you understand how to handle the absolute value function. This guide shows you a reliable process for taking the derivative of expressions that involve |x|.

Instead of memorizing a single rule, you will learn to break the problem into simpler pieces. The table below summarizes the core steps and expected outcomes for common situations.

Input form Rewrite strategy Derivative rule Result example
f(x) = |x| Piecewise: x if x ≥ 0, −x if x Power combined with sign f'(x) = x/|x| for x ≠ 0
f(x) = |g(x)| Piecewise based on g(x) Chain rule with sign factor f'(x) = g'(x) · g(x)/|g(x)| where defined
Inside products or quotients Treat as |u| and apply product/quotient rule Combine with chain rule d/dx [x|x|] handled by cases or sign factor
At points where g(x) = 0 Check left and right derivatives Look for corner or cusp |x| has no derivative at x = 0

Rewrite Absolute Value as Piecewise Cases

The most direct way to differentiate expressions with absolute value is to split them into piecewise definitions. For any real number u, |u| equals u when u ≥ 0 and −u when u

Once the function is expressed piecewise, you can differentiate each piece separately using basic power, product, or chain rules. Remember that the derivative is generally undefined where the inside expression changes sign, typically at the point where u = 0.

Apply Chain Rule with the Sign Function

For smooth calculation away from zeros, you can use a compact formula. The derivative of |u| with respect to x is u'/|u| * u, which simplifies to u' · sign(u) when u ≠ 0. Here sign(u) captures the direction of u without its magnitude.

This approach is efficient for computation and programming, but it still depends on u being nonzero. At zeros of the inside expression, you must analyze limits from the left and right to determine whether a derivative exists.

Handle Products and Composite Functions

When absolute value appears inside products, quotients, or nested functions, combine the piecewise insight with standard calculus tools. Use product rule or quotient rule while carefully tracking the sign of the inner expression at each stage.

For example, to differentiate x|x|, you treat it as x · |x| and apply product rule, or use the piecewise split. The result will be linear on each side of zero, but the behavior exactly at zero must be checked separately for smoothness.

Check Differentiability at Critical Points

Not every continuous absolute value function is differentiable. At points where the inside expression equals zero, compare the left-hand and right-hand derivatives. If they differ, the function has a corner and the derivative does not exist at that point.

Visualizing the graph helps in these situations. A sharp cusp or corner corresponds to an undefined derivative, while a smooth transition indicates that the derivative exists and matches from both sides.

Key Takeaways for Differentiating Absolute Value

  • Split |u| into cases based on the sign of u before differentiating.
  • Use the compact formula u' · sign(u) only where u ≠ 0.
  • Apply product, quotient, and chain rules carefully around absolute value terms.
  • Always check points where the inside expression is zero for corners or cusps.
  • Graphical intuition helps confirm whether the derivative exists at critical points.

FAQ

Reader questions

How do I differentiate |3x − 6| with respect to x?

The derivative is 3 when 3x − 6 > 0, and −3 when 3x − 6 < 0. At x = 2, where 3x − 6 = 0, the derivative is undefined because of a corner.

Can I use the chain rule directly on |g(x)| without splitting into cases?

Yes, away from zeros of g(x), you can apply d/dx |g(x)| = g'(x) · g(x)/|g(x)|. You must still check points where g(x) = 0 separately to confirm differentiability.

What happens to the derivative of |x² − 4| at x = 2 and x = −2?

At x = 2 and x = −2, the expression inside the absolute value is zero. The left and right derivatives differ at these points, so the derivative of |x² − 4| does not exist there.

How is the derivative of |sin x| computed in practice?

For x where sin x ≠ 0, the derivative is cos x · sign(sin x). At multiples of π, where sin x = 0, the derivative is undefined due to cusps in the graph.

Related Reading

More pages in this topic cluster.

Who Designed the Nike Logo? The Story Behind the Swoosh

The Nike swoosh is one of the most recognizable symbols in the world, but few people know the story behind its creation. This piece explores who designed the Nike logo, why it h...

Read next
What is the World's Hottest Pepper? 🌶️🔥

When people ask about the world's hottest pepper, they usually mean the variety that currently holds the Guinness World Record and pushes the boundaries of capsaicin heat. Peppe...

Read next
Jon Huertas in This Is Us:角色, 出演时期与剧情影响详解

Jon Huertas 在《这就是我们》中饰演成年 Kevin Pearson,这一角色从2016年首播持续至2022年最终季,构成了剧集核心家庭叙事的重要组成部�...

Read next