Example · High school

The graph of $f(x) = \abs{x}$.

Terms

TermThis exampleWhy
one sided derivative $f_{+}^{\prime}(0) = 1$ and $f_{-}^{\prime}(0) = -1$ At $0$, the one-sided derivatives of $\abs{x}$ are $1$ and $-1$, because the difference quotient $\abs{h} / h$ is $1$ for every $h > 0$ and $-1$ for every $h < 0$.
dini derivative $D^{+} f(0) = D_{+} f(0) = 1$ and $D^{-} f(0) = D_{-} f(0) = -1$ At $0$, the right Dini derivatives of $\abs{x}$ are both $1$, and the left Dini derivatives are both $-1$, because the difference quotient $\abs{h} / h$ is constant on each side of $0$, so its $\limsup$ and $\liminf$ agree on each side.
clarke generalized directional derivative $f^{\circ}(0; v) = \abs{v}$ The Clarke generalized directional derivative of $\abs{x}$ at $0$ is $\abs{v}$, because the difference quotient $(\abs{t v} - 0) / t = \abs{v}$ at $y = 0$ is the largest of the difference quotients $(\abs{y + t v} - \abs{y}) / t$, which are at most $\abs{v}$.
clarke generalized gradient $\partial f(0) = [-1, 1]$ The Clarke generalized gradient of $\abs{x}$ at $0$ is $[-1, 1]$, the convex hull of the nearby derivatives $\pm 1$.
subdifferential $\partial f(0) = [-1, 1]$ The subdifferential of $\abs{x}$ at $0$ equals its Clarke generalized gradient, because $\abs{x}$ is convex.
weak derivative $f^{\prime}(x) = \operatorname{sign}(x)$ The weak derivative of $\abs{x}$ is $\operatorname{sign}(x)$, because $\operatorname{sign}(x)$ satisfies the integration-by-parts formula for $\abs{x}$. The value of $\operatorname{sign}(x)$ at the single point $0$ does not matter.
idempotent ✓ $x \mapsto \abs{x}$ is idempotent, because $\abs{\abs{x}} = \abs{x}$.
convex function ✓ The function $x \mapsto \abs{x}$ is convex, because the segment between two points on its V-shaped graph lies on or above the graph.
differentiable ✗ $x \mapsto \abs{x}$ is not differentiable at $0$, because it has a corner there.
continuously differentiable ✗ $f(x) = \abs{x}$ is not continuously differentiable, because $f$ has no derivative at $0$, so the derivative is not a continuous function on all of $\reals$.
smooth ✗ $f(x) = \abs{x}$ is not smooth, because it is not even differentiable at $0$.
analytic ✗ $f(x) = \abs{x}$ is not analytic, because it is not even differentiable at $0$.
constant ✗ $x \mapsto \abs{x}$ is not constant.

Distinctions using this example

All examples · All distinctions · All definitions · Notation