Monotonicity and the Sign of the Derivative

Suppose you are told that a function's derivative is positive everywhere on an interval. Can you conclude the function itself is increasing on that interval? The answer feels obvious from pictures of tangent lines sloping upward. But turning that picture into a proof requires real machinery. This article supplies that machinery. It derives the precise relationship between the sign of f′f' and the monotonic behavior of ff from the Mean Value Theorem. This result is one of the great payoffs of differential calculus. It converts a local, infinitesimal piece of information (the sign of a limit at each point) into a global statement. That statement describes the function's behavior across an entire interval. Without such a theorem, calculus could tell you the instantaneous rate of change at a point. But it could say nothing about how a function actually behaves between two points. The entire program of using derivatives to sketch graphs, solve optimization problems, and prove inequalities would collapse. The big picture is that the Mean Value Theorem is the bridge. It connects local derivative data to global function behavior. Continuity alone cannot do this job. A function can wiggle wildly while remaining continuous. But the existence of a derivative, combined with the MVT, pins down monotonic behavior completely and rigorously. This article states and proves the monotonicity theorem in full generality. It covers strictly increasing, strictly decreasing, nondecreasing, and nonincreasing cases, plus the sharp partial converse. It works through two nontrivial examples. It shows exactly which hypothesis breaks the theorem when weakened. It closes by connecting the result to two ideas it directly feeds. The first: a zero derivative forces a constant function. The second: the differentiability of inverse functions.

Key takeaways
  • The Mean Value Theorem converts pointwise information about f′f' into global information about ff.
  • If f′(x)>0f'(x) > 0 for all xx in an interval, ff is strictly increasing on that interval, and symmetrically for f′(x)<0f'(x) < 0.
  • The theorem requires ff continuous on a closed interval and differentiable on its interior — a single missing point of differentiability can break monotonicity.
  • The converse is asymmetric: strictly increasing differentiable functions need not have f′>0f' > 0 everywhere (only f′≥0f' \ge 0), as f(x)=x3f(x) = x^3 shows.
  • Nondecreasing/nonincreasing behavior corresponds exactly to f′≥0f' \ge 0 / f′≤0f' \le 0, and this direction is an if-and-only-if.
  • Key idea: the sign of the derivative on an interval controls the direction of change of the function across that whole interval, via the MVT.

Where this lives today

The sign-of-the-derivative test is the working engine behind curve sketching and optimization in every calculus course and in applied fields: identifying where a cost function decreases, a population model increases, or a physical potential energy has a stable region all reduce to checking the sign of a derivative on intervals between critical points. In numerical analysis and root-finding, monotonicity certificates (proving f′>0f' > 0 on an interval) are used to guarantee that Newton's method or bisection converges to a unique root, since a strictly monotonic continuous function crosses zero at most once. In economics and game theory, utility and production functions are routinely assumed (or shown) to be monotonic in certain variables using exactly this derivative test, which underlies comparative statics — predicting how an equilibrium shifts when a parameter increases. In probability and statistics, cumulative distribution functions are nondecreasing by definition; verifying that a proposed density integrates to a genuinely nondecreasing CDF, or that a quantile function is well-defined, leans on part (3)/(4) of this theorem (nonnegative derivative implies nondecreasing). In cryptography and computer science, monotonic functions (e.g. in the analysis of hash function avalanche properties, or in convexity/monotonicity arguments for algorithmic bounds) are frequently certified via derivative-sign arguments when the underlying functions are real-analytic approximations. Most directly within analysis itself, this theorem is the immediate stepping stone to two central results: <a class="wiki-link" href="/wiki/math-analysis-zero-derivative-constant" data-track="wiki_article.body.wiki_link">Zero Derivative Implies Constant</a>, obtained as the special case f′≡0f' \equiv 0 (giving both f′≥0f' \ge 0 and f′≤0f' \le 0 simultaneously, hence ff both nondecreasing and nonincreasing, hence constant), and <a class="wiki-link" href="/wiki/math-analysis-inverse-function-theorem-1d" data-track="wiki_article.body.wiki_link">Derivatives of Inverse Functions</a>, where strict monotonicity (guaranteed by a strict sign condition on f′f') is exactly the hypothesis needed to know ff is invertible on an interval before differentiating its inverse.

:::quiz[If f′(x)≥0f'(x) \ge 0 for all xx in an open interval (a,b)(a,b), and ff is continuous on [a,b][a,b], which conclusion is justified by the theorem?]

  • ff is strictly increasing on [a,b][a,b]
  • ff is increasing (nondecreasing) on [a,b][a,b] ✓
  • ff is constant on [a,b][a,b]
  • f′f' must be strictly positive somewhere in (a,b)(a,b)

:::quiz[Why does the proof of part (1) of the theorem require ff to be continuous on the closed interval [x1,x2][x_1, x_2], not just differentiable on the open interval?]

  • Continuity is irrelevant; only differentiability on the open interval matters
  • The Mean Value Theorem's hypotheses explicitly require continuity on the closed interval to apply at the endpoints x1,x2x_1, x_2 ✓
  • Continuity is only needed to define f′(x1)f'(x_1) and f′(x2)f'(x_2)
  • It is required to make f′f' itself continuous

Ask the tutor: Can you show me why the Mean Value Theorem itself fails without continuity on the closed interval, and how that failure would propagate into a broken monotonicity proof?

DefinitionMonotonic functions and the derivative test

Let I⊆RI \subseteq \mathbb{R} be an interval (possibly unbounded, possibly not closed) and let f:I→Rf: I \to \mathbb{R}.

  • ff is increasing on II if for all x1,x2∈Ix_1, x_2 \in I with x1<x2x_1 < x_2, we have f(x1)≤f(x2)f(x_1) \le f(x_2). (Some authors call this nondecreasing.)
  • ff is strictly increasing on II if for all x1,x2∈Ix_1, x_2 \in I with x1<x2x_1 < x_2, we have f(x1)<f(x2)f(x_1) < f(x_2).
  • ff is decreasing (or nonincreasing) and strictly decreasing are defined by reversing the inequality on ff.
  • ff is monotonic on II if it is increasing on II or decreasing on II.

If ff is differentiable at an interior point x0x_0 of II, its derivative is

f′(x0)=lim⁡h→0f(x0+h)−f(x0)h,f'(x_0) = \lim_{h \to 0} \frac{f(x_0+h) - f(x_0)}{h},

provided this limit exists. The goal of this article is to relate the sign of f′f' on an interval to which of the above monotonicity conditions ff satisfies globally on that interval.

Intuition

Picture the graph of ff as a road, and f′(x)f'(x) as the slope of the tangent line — the "instantaneous grade" — at each point xx. If every tangent line along a stretch of road tilts upward, your intuition says the road itself must be climbing overall: you never actually go downhill, even for an instant, so cumulatively you must rise from any earlier point to any later one. The subtlety is that "tangent line slopes up at every point" is a statement about a limit at each individual point, while "the road climbs from aa to bb" is a statement comparing the two endpoint values f(a)f(a) and f(b)f(b) directly. Bridging a pointwise (local) hypothesis to a two-point (global) conclusion is exactly the kind of gap the Mean Value Theorem is built to close: it guarantees that the average slope between any two points equals the instantaneous slope at some point in between. If instantaneous slopes are always positive, the average slope between any two points must be positive too — and average slope positive is precisely the statement that ff climbed. The picture below shows a function whose tangent slope is positive throughout an interval, illustrating how the secant line between any two points inherits its sign from some tangent line in between.

Figure
Tangent slopes controlling secant slope via the Mean Value Theorem
x y a b c f is differentiable on (a,b), f' > 0 throughout secant slope = (f(b) − f(a)) / (b − a) tangent at c: slope = f′(c) = secant slope

Central results

TheoremMonotonicity Test via the Sign of the Derivative

Let a<ba < b be real numbers (allowing a=−∞a = -\infty or b=+∞b = +\infty), let II be an interval with endpoints a,ba, b, and let f:I→Rf: I \to \mathbb{R} be continuous on II and differentiable at every interior point of II. Then: 1. If f′(x)>0f'(x) > 0 for every interior point xx, then ff is strictly increasing on II. 2. If f′(x)<0f'(x) < 0 for every interior point xx, then ff is strictly decreasing on II. 3. If f′(x)≥0f'(x) \ge 0 for every interior point xx, then ff is increasing (nondecreasing) on II. 4. If f′(x)≤0f'(x) \le 0 for every interior point xx, then ff is decreasing (nonincreasing) on II. Moreover, statements 3 and 4 admit exact converses: if ff is differentiable on all of II and increasing (resp. decreasing) on II, then f′(x)≥0f'(x) \ge 0 (resp. f′(x)≤0f'(x) \le 0) for all x∈Ix \in I. (Statements 1 and 2 do not admit exact converses; a strictly increasing differentiable function can have f′(x0)=0f'(x_0) = 0 at isolated points.)

Proof

Proof of (1), using the Mean Value Theorem. Fix any x1,x2∈Ix_1, x_2 \in I with x1<x2x_1 < x_2. Since II is an interval, the entire closed interval [x1,x2][x_1, x_2] lies in II. By hypothesis ff is continuous on II, so ff is continuous on [x1,x2][x_1, x_2]; and ff is differentiable at every interior point of II, so in particular ff is differentiable on the open interval (x1,x2)(x_1, x_2), since every point of (x1,x2)(x_1,x_2) is an interior point of II (an interval containing [x1,x2][x_1,x_2] has (x1,x2)(x_1,x_2) in its interior whenever x1,x2∈Ix_1,x_2\in I). These are exactly the hypotheses of the Mean Value Theorem applied on [x1,x2][x_1, x_2]. So there exists a point c∈(x1,x2)c \in (x_1, x_2) such that

f′(c)=f(x2)−f(x1)x2−x1.f'(c) = \frac{f(x_2) - f(x_1)}{x_2 - x_1}.

By hypothesis, f′(x)>0f'(x) > 0 for every interior point xx of II; since c∈(x1,x2)⊂Ic \in (x_1,x_2) \subset I and (x1,x2)(x_1,x_2) consists of interior points of II, we have f′(c)>0f'(c) > 0. Because x2−x1>0x_2 - x_1 > 0, multiplying both sides of the displayed equation by (x2−x1)(x_2-x_1) gives

f(x2)−f(x1)=f′(c)(x2−x1)>0,f(x_2) - f(x_1) = f'(c)(x_2 - x_1) > 0,

so f(x1)<f(x2)f(x_1) < f(x_2). Since x1,x2∈Ix_1, x_2 \in I with x1<x2x_1 < x_2 were arbitrary, ff is strictly increasing on II. This proves (1).

Proof of (2). Apply (1) to g=−fg = -f. Since g′(x)=−f′(x)>0g'(x) = -f'(x) > 0 for every interior xx, gg is strictly increasing on II by (1). If x1<x2x_1 < x_2 then g(x1)<g(x2)g(x_1) < g(x_2), i.e. −f(x1)<−f(x2)-f(x_1) < -f(x_2), i.e. f(x1)>f(x2)f(x_1) > f(x_2). So ff is strictly decreasing.

Proof of (3). The argument mirrors (1) with a weak inequality. Fix x1<x2x_1 < x_2 in II. As above, the MVT gives c∈(x1,x2)c \in (x_1,x_2) with

f(x2)−f(x1)=f′(c)(x2−x1).f(x_2) - f(x_1) = f'(c)(x_2-x_1).

Since f′(c)≥0f'(c) \ge 0 and x2−x1>0x_2 - x_1 > 0, the right side is ≥0\ge 0, so f(x2)≥f(x1)f(x_2) \ge f(x_1). As x1<x2x_1 < x_2 were arbitrary, ff is increasing on II.

Proof of (4). Apply (3) to g=−fg = -f exactly as in the proof of (2), reversing the inequality.

Proof of the converse for (3). Suppose ff is differentiable at every point of II (not merely the interior — we need differentiability at xx itself to speak of f′(x)f'(x)) and increasing on II. Fix any x∈Ix \in I that is not the right endpoint of II (so that points slightly to the right of xx remain in II; if xx is an interior point this is automatic). For h>0h > 0 small enough that x+h∈Ix + h \in I, since ff is increasing and x<x+hx < x+h,

f(x+h)−f(x)≥0,f(x+h) - f(x) \ge 0,

so the difference quotient satisfies

f(x+h)−f(x)h≥0for all such h>0.\frac{f(x+h)-f(x)}{h} \ge 0 \qquad \text{for all such } h>0.

Since ff is differentiable at xx, the limit of this difference quotient as h→0+h \to 0^+ exists and equals f′(x)f'(x) (the two-sided derivative, if it exists, equals both one-sided limits). A limit of a quantity that is ≥0\ge 0 for all small h>0h>0 is itself ≥0\ge 0 — this is the order-preserving property of limits (if q(h)≥0q(h) \ge 0 for all hh in a punctured neighborhood of 00 and lim⁡h→0q(h)\lim_{h\to0}q(h) exists, the limit is ≥0\ge 0; otherwise for ϵ=−L/2>0\epsilon = -L/2 >0 where L<0L<0 is the limit, some q(h)q(h) within ϵ\epsilon of LL would be negative, a contradiction). Hence f′(x)≥0f'(x) \ge 0. If instead xx is the right endpoint of II (when II has one), a symmetric argument with h<0h < 0 and the left-hand difference quotient gives the same conclusion. Either way, f′(x)≥0f'(x) \ge 0 for every x∈Ix \in I.

Proof of the converse for (4). Apply the converse of (3) to g=−fg = -f: gg is increasing since ff is decreasing, so g′(x)≥0g'(x)\ge 0, i.e. −f′(x)≥0-f'(x) \ge 0, i.e. f′(x)≤0f'(x) \le 0.

Why (1) and (2) have no exact converse. It suffices to exhibit one strictly increasing differentiable function with a zero derivative somewhere; see the worked example with f(x)=x3f(x) = x^3 below. Strict monotonicity only forces the weak inequality f′≥0f' \ge 0 (by the converse of (3), since strictly increasing implies increasing), not the strict inequality f′>0f' > 0. ■\blacksquare

∎
CorollaryStrict monotonicity from nonnegative derivative with isolated zeros

If ff is continuous on II, differentiable on the interior of II, f′(x)≥0f'(x) \ge 0 for all interior xx, and the set {x:f′(x)=0}\{x : f'(x) = 0\} contains no subinterval of II (i.e. f′f' is not identically zero on any open subinterval), then ff is strictly increasing on II.

Proof

By part (3) of the theorem, ff is increasing on II. Suppose toward a contradiction that ff is not strictly increasing: then there exist x1<x2x_1 < x_2 in II with f(x1)=f(x2)f(x_1) = f(x_2) (equality, since increasing already rules out f(x1)>f(x2)f(x_1) > f(x_2)). Since ff is increasing, for every x∈[x1,x2]x \in [x_1,x_2] we have f(x1)≤f(x)≤f(x2)=f(x1)f(x_1) \le f(x) \le f(x_2) = f(x_1), forcing f(x)=f(x1)f(x) = f(x_1) for all x∈[x1,x2]x \in [x_1, x_2]: ff is constant on [x1,x2][x_1,x_2]. A constant function has derivative 00 at every interior point of [x1,x2][x_1,x_2] (directly from the difference-quotient definition: the quotient is identically 00). This exhibits f′≡0f' \equiv 0 on the open subinterval (x1,x2)(x_1,x_2), contradicting the hypothesis. Hence ff is strictly increasing. ■\blacksquare

∎

Worked examples

Example 1 (a rational function with an asymmetric domain split). Let f(x)=x33−2x2+3x+1f(x) = \dfrac{x^3}{3} - 2x^2 + 3x + 1 on R\mathbb{R}. Determine all intervals of increase and decrease. Solution. ff is a polynomial, hence continuous and differentiable everywhere, with

f′(x)=x2−4x+3=(x−1)(x−3).f'(x) = x^2 - 4x + 3 = (x-1)(x-3).

This is a upward parabola in xx vanishing at x=1x=1 and x=3x=3, so:

  • f′(x)>0f'(x) > 0 for x<1x < 1 (both factors negative, product positive),
  • f′(x)<0f'(x) < 0 for 1<x<31 < x < 3 (factors opposite sign),
  • f′(x)>0f'(x) > 0 for x>3x > 3 (both factors positive).

Apply the theorem on each of the three intervals (−∞,1](-\infty, 1], [1,3][1,3], [3,∞)[3,\infty) — each is a valid interval on which ff is continuous and differentiable on the interior, so the theorem's hypotheses hold on each piece:

  • On (−∞,1](-\infty, 1]: f′>0f'>0 on the interior (−∞,1)(-\infty,1), so by part (1), ff is strictly increasing on (−∞,1](-\infty,1].
  • On [1,3][1,3]: f′<0f'<0 on (1,3)(1,3), so by part (2), ff is strictly decreasing on [1,3][1,3].
  • On [3,∞)[3,\infty): f′>0f'>0 on (3,∞)(3,\infty), so by part (1), ff is strictly increasing on [3,∞)[3,\infty).

(Gluing strict monotonicity across the shared endpoints x=1,3x=1,3 is valid: e.g. for x1<1<x2≤3x_1 < 1 < x_2 \le 3 we get f(x1)<f(1)f(x_1) < f(1) from the first piece and f(1)≥f(x2)f(1) \ge f(x_2) or f(1)>f(x2)f(1) > f(x_2) from the second, and if x2=1x_2=1 trivially, so f(x1)<f(1)f(x_1)<f(1) suffices; a full comparison across the boundary follows by chaining these strict inequalities through the shared point.) As a numerical check: f(1)=13−2+3+1=73≈2.33f(1) = \tfrac13 - 2 + 3 + 1 = \tfrac{7}{3} \approx 2.33 and f(3)=9−18+9+1=1f(3) = 9 - 18 + 9 + 1 = 1, confirming ff decreased from x=1x=1 to x=3x=3, consistent with f′<0f' < 0 there. Also f(0)=1<f(1)=7/3f(0) = 1 < f(1) = 7/3, consistent with increase on (−∞,1](-\infty,1], and f(4)=64/3−32+12+1=64/3−19=7/3≈2.33>f(3)=1f(4) = 64/3 - 32 + 12 + 1 = 64/3 - 19 = 7/3 \approx 2.33 > f(3) = 1, consistent with increase on [3,∞)[3,\infty).

Example 2 (using the corollary to handle an isolated zero of the derivative). Let f(x)=x5+xf(x) = x^5 + x on R\mathbb{R}. Show ff is strictly increasing on all of R\mathbb{R}, even though a naive application of part (1) alone is not immediate everywhere. Solution. Compute

f′(x)=5x4+1.f'(x) = 5x^4 + 1.

Since x4≥0x^4 \ge 0 for all real xx, we get f′(x)=5x4+1≥1>0f'(x) = 5x^4 + 1 \ge 1 > 0 for every x∈Rx \in \mathbb{R} — in fact here f′f' is strictly positive everywhere, with no zero at all, so part (1) of the theorem applies directly on I=RI = \mathbb{R}: ff is strictly increasing on R\mathbb{R}. To illustrate the corollary on a case where the derivative does vanish somewhere, modify the example slightly: let g(x)=x5g(x) = x^5. Then g′(x)=5x4≥0g'(x) = 5x^4 \ge 0 for all xx, with equality exactly at x=0x = 0 — a single point, which contains no subinterval of R\mathbb{R}. By part (3), gg is increasing on R\mathbb{R}; by the corollary (the zero set {0}\{0\} contains no open interval), gg is in fact strictly increasing on R\mathbb{R}, even though g′(0)=0g'(0) = 0. Numerically: g(−1)=−1<g(0)=0<g(1)=1g(-1) = -1 < g(0) = 0 < g(1) = 1, and more finely g(−0.1)=−0.00001<g(0)=0<g(0.1)=0.00001g(-0.1) = -0.00001 < g(0) = 0 < g(0.1) = 0.00001, confirming strict increase straddling the point where the derivative vanishes.

CounterexampleWhy differentiability on the whole interval (not just almost all of it) matters

Weaken the hypothesis of Theorem part (1) by allowing ff to fail to be differentiable at a single interior point, while keeping ff continuous there and f′>0f' > 0 everywhere else. We exhibit a function satisfying this weaker hypothesis that is not increasing. Define f:[−1,1]→Rf: [-1,1] \to \mathbb{R} by

f(x)={x+2−1≤x<0x0≤x≤1.f(x) = \begin{cases} x + 2 & -1 \le x < 0 \\ x & 0 \le x \le 1. \end{cases}

Check continuity at x=0x=0: from the left, lim⁡x→0−f(x)=0+2=2\lim_{x\to 0^-} f(x) = 0 + 2 = 2; from the right, f(0)=0f(0) = 0. These disagree, so this particular ff is not even continuous at 00 — meaning it does not satisfy the "continuous on II" hypothesis, and this exact function is not a fair counterexample to the theorem as stated (the theorem correctly excludes it). The instructive point is exactly this: continuity at every point of II, including the point where differentiability might fail, is doing real work. To see this, fix the discontinuity but keep differentiability failing at one interior point where ff is still merely continuous (not differentiable) — e.g.

f(x)=−∣x∣on I=[−1,1]f(x) = -|x| \quad \text{on } I=[-1,1]

is continuous everywhere on [−1,1][-1,1] and differentiable at every point except x=0x=0, with

f′(x)={−1x<0+1x>0.f'(x) = \begin{cases} -1 & x<0 \\ +1 & x> 0. \end{cases}

Here f′>0f'>0 holds only on (0,1)(0,1), not on all of (−1,1)(-1,1), so this does not even satisfy "f′>0f'>0 at every interior point" — the theorem's hypothesis genuinely fails to hold here too, and indeed ff is not increasing on [−1,1][-1,1]: f(−1)=−1<f(0)=0f(-1) = -1 < f(0) = 0 is fine, but f(−0.5)=−0.5f(-0.5)=-0.5 while f(0)=0>f(−0.5)f(0)=0>f(-0.5), yet f(0.5)=−0.5<f(0)=0f(0.5) = -0.5 < f(0) = 0, so ff decreases from x=0x=0 to x=0.5x=0.5 — ff is not increasing on II at all, exactly because the sign hypothesis on f′f' fails at every point of (0,1)(0,1), not merely at the single point x=0x=0. The genuinely sharp illustration: take f(x)=−∣x∣f(x) = -|x| but only claim f′>0f' > 0 on (−1,0)∪(0,1)(-1,0)\cup(0,1) is false (it's negative on the left half) — so to isolate the role of the single missing differentiability point cleanly, consider instead

f(x)={x−1≤x≤0x−10<x≤1.f(x) = \begin{cases} x & -1 \le x \le 0 \\ x - 1 & 0 < x \le 1. \end{cases}

This ff is differentiable with f′(x)=1>0f'(x) = 1 > 0 at every point of [−1,1][-1,1] except x=0x=0, where ff is not even continuous (left limit 00, right limit/value f(0)=0f(0)=0 but lim⁡x→0+f(x)=−1≠f(0)\lim_{x\to0^+}f(x) = -1 \ne f(0)) — again failing continuity, not just differentiability, and again ff fails to be increasing: f(−0.1)=−0.1f(-0.1) = -0.1 but f(0.1)=−0.9<f(−0.1)f(0.1) = -0.9 < f(-0.1), so ff jumps downward across x=0x=0 despite f′=1>0f'=1>0 everywhere it is defined.

Conclusion. In every attempt to break only the differentiability hypothesis while preserving continuity and the sign condition elsewhere, the continuity hypothesis is what actually fails, and this is not a coincidence: a jump discontinuity is precisely the mechanism by which "locally increasing everywhere it can be measured" fails to add up to "globally increasing," because the MVT cannot be applied across the point of discontinuity. This confirms both hypotheses — continuity on the closed interval and differentiability on the interior — are load-bearing: continuity is what prevents jumps that silently defeat monotonicity, and it cannot be dropped even at a single point.

Scope, edge cases & common traps

SituationWhat holdsWhat can fail
f′>0f' > 0 on interior, ff continuous on closed IIff strictly increasing on II— (theorem applies cleanly)
f′≥0f' \ge 0 on interior, with isolated zeros onlyff strictly increasing (via corollary)If zeros fill an interval, only get nondecreasing
ff differentiable, strictly increasingf′≥0f' \ge 0 everywhere (converse holds)f′f' need not be >0>0 everywhere (x3x^3 at 00)
ff continuous on II but not differentiable at one interior pointNothing guaranteed from this theorem thereMonotonicity can break at that point (see counterexample)
II not an interval (e.g. two disjoint pieces)Sign of f′f' controls behavior within each pieceComparing values across pieces is not controlled by f′f' at all
One-sided derivative only at an endpointStill fine — MVT only needs interior differentiabilityDo not require differentiability at aa or bb themselves for parts (1)–(4)

The mathematician behind it

Origins · 1 minJoseph-Louis Lagrange and how this was discovered
JL
Joseph-Louis Lagrange
1736–1813 · 18th-century France/Italy, analysis and mechanics

Lagrange did not "invent" monotonicity, but the Mean Value Theorem underlying this entire article is often attributed to him in the form closest to its modern statement, arising from his systematic effort (in works like the Théorie des fonctions analytiques, 1797) to place calculus on an algebraic, rigorous footing using power series expansions of functions, anticipating the later analytic rigor of Cauchy. Lagrange's broader legacy — Lagrangian mechanics, the calculus of variations, contributions to number theory and the theory of equations — makes him one of the most versatile analysts of his century, and his notation f′(x)f'(x) for the derivative is the one used throughout this article.

History
- 1637 — Fermat's method of adequality implicitly uses stationary points (zero derivative) to find extrema, an early precursor idea.
- 1691 — Michel Rolle publishes what becomes known as Rolle's Theorem, the special case of the Mean Value Theorem with equal endpoint values, though Rolle himself distrusted infinitesimal calculus.
- 1797 — Lagrange, in Théorie des fonctions analytiques, develops the mean-value inequality in close to its modern form as part of his program to found calculus on algebraic foundations.
- 1823 — Augustin-Louis Cauchy gives a rigorous ϵ\epsilon-based treatment of the Mean Value Theorem in his Résumé des leçons, fixing the modern statement and proof used today.
- 1870s–1900s — The theorem and its monotonicity corollary become standard fixtures of rigorous real analysis textbooks following the arithmetization of analysis by Weierstrass and others.
Does the theorem require f′f' to be continuous?

No. The theorem only requires that f′(x)f'(x) exist (as a real number) and have the stated sign at each interior point of the interval; it says nothing about f′f' being continuous. This is a genuine strength of the Mean Value Theorem approach: it works even for derivatives that themselves jump around discontinuously, as long as they exist and are of one consistent sign. Contrast this with strategies that try to integrate f′f' or use the Fundamental Theorem of Calculus, which typically do need continuity (or at least integrability) of f′f'. The MVT-based proof sidesteps that requirement entirely, using only the existence of f′(c)f'(c) at a single mean-value point per pair of endpoints.

If ff is increasing but not strictly increasing, what does the derivative test tell us?

It tells us f′(x)≥0f'(x) \ge 0 everywhere it is differentiable (from the converse of part (3)), but it cannot rule out f′f' being exactly zero on an entire subinterval. Indeed, if ff is constant on some subinterval [c,d]⊂I[c,d] \subset I — which is compatible with being (nonstrictly) increasing overall — then f′(x)=0f'(x) = 0 throughout (c,d)(c,d). This is precisely the borderline case the corollary addresses: strict increase is guaranteed only when the zero set of f′f' contains no subinterval, ruling out these "flat plateaus."

Can this theorem be used to prove inequalities, like ex≥1+xe^x \ge 1 + x for all real xx?

Yes, this is one of the most common applications. Define g(x)=ex−1−xg(x) = e^x - 1 - x; then g′(x)=ex−1g'(x) = e^x - 1, which is negative for x<0x<0, zero at x=0x=0, and positive for x>0x>0. By part (2) applied on (−∞,0](-\infty,0] and part (1) applied on [0,∞)[0,\infty), gg is strictly decreasing then strictly increasing, so gg has a global minimum at x=0x=0 where g(0)=1−1−0=0g(0) = 1 - 1 - 0 = 0. Hence g(x)≥0g(x) \ge 0 for all xx, i.e. ex≥1+xe^x \ge 1+x, with equality exactly at x=0x=0. This "derivative sign implies inequality" technique generalizes to a huge range of classical inequalities.

Why does the interval hypothesis matter — can this fail on a union of two disjoint intervals?

Absolutely. The theorem is stated for a single interval precisely because the Mean Value Theorem needs [x1,x2]⊂I[x_1,x_2] \subset I to connect any two points x1,x2x_1, x_2. If II is, say, (0,1)∪(2,3)(0,1) \cup (2,3) and f′>0f' > 0 on the interior of each piece, the theorem only guarantees ff is strictly increasing within (0,1)(0,1) and within (2,3)(2,3) separately — it says absolutely nothing about how f(0.5)f(0.5) compares to f(2.5)f(2.5), since no mean-value point can be found for a pair of endpoints straddling the gap. Monotonicity across disconnected domains requires separate, direct verification.

Does a positive second derivative relate to this theorem?

Indirectly, yes, by applying the theorem one derivative up: if f′′(x)>0f''(x) > 0 on an interval, the theorem (applied to f′f' in place of ff) tells us f′f' itself is strictly increasing. This is the basis of the second-derivative test for convexity, a related but distinct notion from monotonicity of ff itself. Monotonicity of ff is governed by the sign of f′f'; convexity/concavity of ff is governed by the sign of f′′f'' via the exact same theorem, just applied one level higher.

What happens at the endpoints of a closed interval where only one-sided differentiability makes sense?

The theorem as stated never requires differentiability at the endpoints aa or bb of II — only continuity there and differentiability on the open interior. This is deliberate and matches the hypotheses of the Mean Value Theorem itself. So ff can fail to have a derivative (even one-sided) at aa or bb, or that derivative can even be undefined or infinite, and the monotonicity conclusion on all of [a,b][a,b] still holds, because every pair x1<x2x_1<x_2 used in the proof only invokes the MVT on the strictly smaller closed subinterval [x1,x2][x_1,x_2], whose interior avoids aa and bb unless x1=ax_1=a or x2=bx_2=b — and even then, the MVT's mean-value point cc is strictly interior to (x1,x2)(x_1,x_2), never equal to aa or bb.

Before this

Where this leads