JustToThePoint English Website Version
JustToThePoint en español

Monotonic Functions and Local Extrema

“Mr. Smith, could you explain to us what recursion is all about?” The professor in Introduction to Programming asked an apathetic student. “I don’t know the question, but sex, money, or both is definitely the answer, and God, justice, our values, and love are just the excuses,” I replied. “You shall not pass,” the teacher was far from amused, Apocalypse, Anawim, #justtothepoint.

image info

Recall

Definition. A function f is a rule, relationship, or correspondence that assigns to each element x in a set D, x ∈ D (called the domain) exactly one element y in a set E, y ∈ E (called the codomain or range).

Monotonic Functions

Intuitively, a function is monotonic on an interval if it never changes its general direction on that interval: it either always goes up (or stays flat) as you move from left to right, or always goes down (or stays flat).

A monotonic function is a function that maintains a consistent direction of change on an interval of its domain: it is either entirely nondecreasing (monotone increasing) or entirely nonincreasing (monotone decreasing) on that interval. More precisely, let f be a real-valued function defined on some interval $I \subseteq \mathbb{R}$. f increases (or is nondecreasing) on an interval I if ∀a, b ∈ I, b > a ⟹ f(b) >= f(a). If, moreover, ∀a, b ∈ I, b > a ⟹ f(b) > f(a), the function f is said to be strictly increasing on I.

Increasing (nondecreasing): the function never goes down as you move from left to right along the x-axis, the graph either raises or stay flat. Strictly increasing: the function always goes up (strictly rises) as you move to the right; it never stays constant on any nontrivial interval.

Conversely, f decreases (or is nonincreasing) on an interval I if ∀a, b ∈ I, b > a ⟹ f(b) <= f(a). If ∀a, b ∈ I, b > a ⟹ f(b) < f(a), the function is said to be strictly decreasing on I.

Graphically, as you move from left to right along the x-axis, the graph either goes down or stays flat; for strictly decreasing, it always goes down.

Finally, f is said to be constant on an interval I if ∀a, b ∈ I, f(a) = f(b). In other words, the graph is a horizontal line on that interval.

Examples

Monotonicity and the derivative

If f is differentiable on I, monotonicity can often be detected via the derivative:

Intuition

🧠 These results are consequences of the Mean Value Theorem. They make precise the intuition that a positive derivative means sloping upwards, the curve always climbs. Similarly, a negative derivative means sloping downwards, the curve always descends. Furthermore, a zero slope means the curve is flat.

Remarks

  1. Zero derivative at a single point does not imply the function is constant unless it holds everywhere, e.g., $f(x)=x^3$ has f’(0) =0, but the function is not constant near (in any neighborhood of) 0. However, if $f'(x) = 0, \forall x \in I$, then f is constant on I, e.g., f(x) = 7.
  2. Strict monotonicity requires strict inequalities. If $f'(x) \geq 0$ but equals 0 on a subinterval, the function may be flat there (nondecreasing but not strictly increasing).
    Example A, f(x) = $e^x$ (f′(x) > 0 everywhere) is strictly increasing everywhere —no flat sections, no pauses. Each x-value maps to a unique, larger y-value than any previous x. The graph is a smooth curve that constantly rises from left to right.
    Example B, $f(x) = \begin{cases} x, &x\leq 0 \\\\ 0, &0 < x < 1 \\\\ 1, &x > 1 \end{cases}$
    For x < 0: f is strictly increasing. For 0 < x < 1, f is completely flat (constant). For x > 1: f is strictly increasing again. Why is it not strictly increasing?: $f(0.2) = f(0.8) = 0$ even though $0.2 < 0.8$. The function “pauses” on the interval (0, 1).
  3. Differentiability is crucial. A function can be monotone without being differentiable everywhere for example, f(x) = ∣x∣ is increasing on [0, ∞) but not differentiable at x = 0), but derivative tests for monotonicity only applies when differentiability holds (the function is differentiable at every point).

Local Extrema

We now turn to the study of local maxima and local minima, also called local extrema.

Informally, these are peaks and valleys of the graph when you look in a small neighborhood – the “highest” or “lowest” nearby point even if they are not the highest or lowest values on the entire domain.

Local extrema are the largest or smallest values locally, that is, in some interval around a point. More formally, they are points on the graph where the function reaches a maximum or minimum value within a small neighborhood around that point.

A critical point of a function f(x) is a point c in the domain where the derivative is zero (f’(c) = 0) or does not exists. Local extrema can only occur at critical points or at endpoints.

Let $D \subseteq \mathbb{R}$ be the domain of a function f and let c ∈ D.

Definition. f is said to have a local or relative maximum at c if there exists an interval (a, b) containing c ($c \in (a, b)$) such that f(c) ≥ f(x) $∀ x \in (a, b) ∩ D$. That is, in some neighborhood around c, the value f(c) is at least as large as the nearby values of the function (the maximum value).

Definition. f is said to have a local or relative minimum at c if there exists an interval (a, b) containing c ($c \in (a, b)$) such that f(c) ≤ f(x) $∀ x \in (a, b) ∩ D$. Again, in some neighborhood around c, the value f(c) is less than or equal to all the nearby values of the function (the minimum value).

We say that f has a local extremum at c if c is either a local maximum or a local minimum. Equivalently, it is a point where the function changes its monotonicity within the domain: from increasing to decreasing (local maximum) or from decreasing to increasing (local minimum).

Suppose f is defined on an interval I, and $c \in I$ is a point where f attains a local maximum or minimum. Then one of the following must hold:

  1. Interior Point with Existing Derivative. f′(c) = 0 (critical point). Imagine you’re at a local maximum (you’re standing at the top of a hill). To the left of c, the function must be increasing (slopes positive). To the right of c, the function must be decreasing (slopes negative). At the peak itself, the slope flattens: f’(c) = 0. So the derivative must change sign from positive to negative around c, e.g., f(x) = $x^3-3x^2, f'(x) = 3x^2-6x = 3x(x-2) = 0 \leadsto x = 0, 2$. x = 2 is a local minimum; x=0 is not an extremum (it’s a saddle point). Not all critical points are extrema!
  2. Interior Point with Non-Existing Derivative, f′(c) does not exist (critical point). Typical cases: sharp corners, cusps, vertical tangents. Then, you could still have a peak or valley, e.g., f(x) = ∣x∣ at x = 0 the derivative does not exist, but f has a local minimum.
  3. c is an endpoint of the domain. A function can be a local maximum or minimum even if $f'(c)\neq 0$, e.g., f(x) = $x^2$ on [0, 2] has a minimum at x = 0 (endpoint, $f'(0) = 0$) and a maximum at x = 2 (endpoint, $f'(2) = 4 \ne 0$).

Necessary condition: If f has a local extremum at an interior point (c is inside the domain, not at a boundary) where f' exists, then f'(c) = 0. However, a point where f’(c) = 0 (critical point) is not sufficient (does not guarantee) to be a local extremum, e.g., f(x) = $x^3-3x^2$, x = 0 is not a local extremum. Critical points may be a local maximum (peak), a local minimum (valley) or neither (inflection/saddle), e.g., $f(x)=x^3$ has f’(0) = 0, but no extremum at x = 0. This is a saddle point (or stationary point of inflection). Furthermore, extrema can occur at non-differentiable points (e.g., f(x) = |x| has a local minimum at x = 0, but f’(0) does not exist; f(x) = $\sqrt[3]{x^2}$ has a minimum at x = 0, but the derivative is undefined) or endpoints.

Conclusion: 💡Local extrema can only occur where the function stops rising or falling —either because the derivative is zero, the derivative doesn't exist, or you're at the edge of the domain.

How to Find Local Extrema (Practical Method)

Given f defined on an interval [a, b]:

  1. Find all critical points in (a,b). Solve f′(x) = 0. Find where f′(x) does not exist.
  2. Include endpoints: x = a and x = b.
  3. Evaluate f(x) at all these candidate points.
  4. Compare values: The largest is the absolute maximum; the smallest is the absolute minimum. Others may be local extrema.

Bibliography

This content is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
  1. NPTEL-NOC IITM, Introduction to Galois Theory.
  2. Algebra, Second Edition, by Michael Artin.
  3. LibreTexts, Calculus. Abstract and Geometric Algebra, Abstract Algebra: Theory and Applications (Judson).
  4. Field and Galois Theory, by Patrick Morandi. Springer.
  5. Michael Penn, and MathMajor.
  6. Contemporary Abstract Algebra, Joseph, A. Gallian.
  7. YouTube’s Andrew Misseldine: Calculus. College Algebra and Abstract Algebra.
  8. MIT OpenCourseWare 18.01 Single Variable Calculus, Fall 2007 and 18.02 Multivariable Calculus, Fall 2007.
  9. Calculus Early Transcendentals: Differential & Multi-Variable Calculus for Social Sciences.
Bitcoin donation

JustToThePoint Copyright © 2011 - 2025 Anawim. ALL RIGHTS RESERVED. Bilingual e-books, articles, and videos to help your child and your entire family succeed, develop a healthy lifestyle, and have a lot of fun. Social Issues, Join us.

This website uses cookies to improve your navigation experience.
By continuing, you are consenting to our use of cookies, in accordance with our Cookies Policy and Website Terms and Conditions of use.