Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Derivatives as Functions






From a Single Slope to an Entire Function


The derivative at a point f(a)f'(a) is a number—one slope at one location. But the definition works at every point where the limit exists, and letting the input vary produces a new function f(x)f'(x) that maps each xx to the slope of ff at that xx.

This shift in perspective is fundamental. The derivative function ff' has its own domain, its own graph, its own behavior. It can be continuous or discontinuous, positive or negative, increasing or decreasing. It can itself be differentiated, producing higher-order derivatives.

Understanding ff' as a function—not just a computation applied at isolated points—connects the local information encoded in slopes to global information about the shape of ff.



The Derivative Function Defined


Fix a function ff and consider the limit

f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}


evaluated not at a single point aa but at a variable xx. Wherever this limit produces a finite value, f(x)f'(x) is defined. The result is a function ff' whose input is xx and whose output is the slope of ff at xx.

The domain of ff' is a subset of the domain of ff. Every point where ff is differentiable belongs to the domain of ff'; every point where the limit fails—corners, cusps, vertical tangents, discontinuities—is excluded. For a polynomial, the domains of ff and ff' coincide. For f(x)=xf(x) = |x|, the domain of ff is all reals, but x=0x = 0 is missing from the domain of ff'.

Computing the Derivative Function from the Definition


Applying the limit definition with xx as a free variable produces an expression in xx—the derivative function in closed form.

For f(x)=x2f(x) = x^2:

f(x)=limh0(x+h)2x2h=limh02xh+h2h=limh0(2x+h)=2xf'(x) = \lim_{h \to 0} \frac{(x+h)^2 - x^2}{h} = \lim_{h \to 0} \frac{2xh + h^2}{h} = \lim_{h \to 0} (2x + h) = 2x


The result f(x)=2xf'(x) = 2x is a function: input xx, output the slope of the parabola at that xx. At x=3x = 3, the slope is 66. At x=1x = -1, the slope is 2-2.

Once differentiation rules are established, this limit computation becomes unnecessary for standard functions. But the limit definition remains the foundation—every rule is proven from it, and nonstandard functions may require returning to it directly.

Graphing f' from f


The graph of ff' can be read directly from the graph of ff without computing any formula.

Where ff is increasing, ff' is positive—the graph of ff' lies above the xx-axis. Where ff is decreasing, ff' is negative—the graph of ff' lies below the xx-axis. Where ff has a local extremum, ff' crosses zero (or is undefined).

Steep sections of ff correspond to large values of f|f'|. Flat sections of ff correspond to ff' near zero. A straight segment of ff with constant slope corresponds to ff' being constant—a horizontal segment on the graph of ff'.

Where ff is concave up, the slope is increasing, so ff' is an increasing function on that interval. Where ff is concave down, ff' is decreasing. Inflection points of ff—where concavity changes—correspond to local extrema of ff'.

Graphing f from f'


The reverse problem—reconstructing ff from ff'—is possible up to a vertical shift.

Where ff' is positive, ff is rising. Where ff' is negative, ff is falling. Where ff' crosses zero from positive to negative, ff has a local maximum. Where ff' crosses zero from negative to positive, ff has a local minimum.

The magnitude of ff' controls steepness: large positive values of ff' mean ff is climbing steeply; values of ff' near zero mean ff is nearly flat. Where ff' is increasing, ff is concave up. Where ff' is decreasing, ff is concave down.

The one piece of information ff' does not determine is the vertical position. The derivative of f(x)=x2f(x) = x^2 and the derivative of g(x)=x2+5g(x) = x^2 + 5 are identical: both equal 2x2x. The graph of ff can be shifted vertically by any constant without changing ff'. This ambiguity is resolved only when a specific function value is known—an initial condition.

The Relationship Between f and f'


The derivative function ff' encodes the shape of ff completely, up to vertical translation. The correspondence runs in both directions:

Zeros of ff' correspond to horizontal tangents on ff—local extrema or plateaus. Sign changes of ff' correspond to direction changes of ff. Extrema of ff' correspond to inflection points of ff, where the bending direction reverses.

If ff' is itself a smooth, well-behaved function, then ff is smooth as well. If ff' has jumps or singularities, those indicate abrupt changes in the slope of ff—corners, cusps, or worse.

This relationship extends to higher-order derivatives. The function ff'' relates to ff' in the same way that ff' relates to ff: the second derivative is the derivative of the derivative, and the correspondence between zeros, sign changes, and extrema repeats at each level.

The Derivative as Rate of Change


When ff models a quantity that varies with input xx, the derivative function f(x)f'(x) models how fast that quantity changes at each value of xx.

In kinematics, if s(t)s(t) is position as a function of time, then s(t)s'(t) is velocity—a function that gives the speed and direction of motion at every instant. The velocity function can be graphed, analyzed for zeros (stops), sign changes (reversals), and extrema (maximum speed). Differentiating again yields s(t)s''(t), acceleration, which is itself a function of time.

In economics, if C(x)C(x) is the cost of producing xx units, then C(x)C'(x) is the marginal cost—the rate at which cost changes per additional unit. The marginal cost function reveals whether production costs are accelerating or stabilizing.

In each context, the derivative function provides a running commentary on how the original quantity evolves—not at a single frozen moment, but across the entire domain.

Continuity of the Derivative


A natural question: if ff is differentiable everywhere, must ff' be continuous?

The answer is no. Consider f(x)=x2sin(1/x)f(x) = x^2 \sin(1/x) for x0x \neq 0 and f(0)=0f(0) = 0. This function is differentiable at every real number, including x=0x = 0, yet ff' oscillates near the origin and is discontinuous there. Differentiability of ff does not guarantee continuity of ff'.

However, derivatives satisfy a strong structural constraint. Darboux's theorem states that ff' always has the intermediate value property: if ff' takes values AA and BB on an interval, it takes every value between AA and BB somewhere on that interval. This means ff' cannot have jump discontinuities. The only discontinuities possible for a derivative are oscillatory ones—the kind seen in the example above.

Functions whose derivatives are continuous everywhere form the class C1C^1. Most functions encountered in standard calculus belong to C1C^1 or higher smoothness classes, but the distinction matters in theoretical work and in the study of differentiability.