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$ The one-sided derivatives of $-\abs{x}$ at $0$ are $-1$ from the right and $1$ from the left, because the difference quotient $-\abs{h} / h$ is $-1$ for every $h > 0$ and $1$ for every $h < 0$.
clarke generalized directional derivative $f^{\circ}(0; v) = \abs{v}$ The Clarke generalized directional derivative of $-\abs{x}$ at $0$ is $\abs{v}$, even though the one-sided directional derivative at $0$ is $-\abs{v}$, because the base point $y$ may move to the other side of the corner: for $y = -t v$, the difference quotient $(-\abs{y + t v} + \abs{y}) / t$ equals $\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 limits of the derivatives at nearby points: the derivative of $-\abs{x}$ is $-1$ for $x > 0$ and $1$ for $x < 0$, and the convex hull of $\setdef{-1, 1}$ is $[-1, 1]$. Unlike the subdifferential, the Clarke generalized gradient is defined for functions that are not convex, and it is the same for $-\abs{x}$ as for $\abs{x}$.
subdifferential $\partial f(0) = \emptyset$ The subdifferential of $x \mapsto -\abs{x}$ at $0$ is empty, because the function is concave with a corner at $0$, so no line through $(0, 0)$ lies below its graph.

All examples · All distinctions · All definitions · Notation