Finding where functions peak and valley

I spent three years as a teaching assistant for real analysis before I ever got comfortable explaining this to undergraduates without fumbling through the edge cases. The Definition Of Extremes In Math sounds straightforward on paper but trips up everyone who hasn't actually worked through the counterexamples by hand. Let me walk through what happens when you try to apply it outside of textbook problems. An extreme point of a function is where the output reaches a local maximum or local minimum relative to its neighbors. More precisely, f has a local maximum at c if f(c) f(x) for all x in some open interval around c. The local minimum flips the inequality. That's the clean definition you'll see in any first-year calculus book. The catch is that most students miss the part about open intervals. A closed interval endpoint can be an extreme point even if the derivative doesn't vanish there. I watched a student lose points on a qualifying exam because he only checked where f'(x) = 0 and forgot to evaluate the boundary. The answer key had three critical points and two boundary points, and he wrote down just the critical ones.

Global extremes work the same way but without the "relative to neighbors" restriction. f attains a global maximum at c if f(c) f(x) for every x in the domain. Simple enough, except domains are rarely as nice as [a, b] in practice.

How to actually find them in practice

Start by finding all critical points where the derivative is zero or undefined. Then check the boundary of your domain. Compare all candidate values. The largest is your global maximum, the smallest is your global minimum. That's the algorithm. The part nobody tells you is that step two kills you more often than step one. When your domain isn't closed and bounded, the extreme value theorem doesn't guarantee anything exists at all. Take f(x) = x on the open interval (0, 1). The function gets arbitrarily close to 0 and 1 but never reaches them. There are no global extremes. Students keep writing "the extremes are 0 and 1" and then wondering why the professor marked it wrong. Here's something my grading experience taught me that textbooks gloss over. Sometimes a function has no critical points inside the domain but still has an extreme at a boundary point where the function simply stops being defined. Consider f(x) = ln(x) on (0, e]. The derivative is 1/x, which is never zero. The function has no interior critical points. But the global maximum sits right at x = e, which is a boundary point. You have to know to look there.

Get the Full Details

PPT - Understanding Ratios and Proportions in Mathematics PowerPoint Presentation - ID:6564997
PPT - Understanding Ratios and Proportions in Mathematics PowerPoint Presentation - ID:6564997

I once spent an afternoon debugging a numerical optimization script because the function had a cusp at the solution point. The derivative was undefined there, so my code skipped it entirely. The cusp was actually a global minimum. Adding a check for non-differentiable points fixed the bug in about twenty minutes.

Common pitfalls that cost points

Confusing critical points with extreme points is the big one. f'(c) = 0 doesn't guarantee an extreme. The function f(x) = x³ has a critical point at x = 0, but it's an inflection point, not a maximum or minimum. The derivative changes sign nowhere near zero, so the function just keeps increasing through that point. You need a sign change in the derivative or a comparison of nearby values to confirm an extreme. Another trap: assuming extreme points must be differentiable. They don't have to be. Absolute value functions, cusps, corners—all of these can host extreme points where the derivative simply doesn't exist. The definition never required differentiability. It only required the function value to be greater than or equal to (or less than or equal to) neighboring values. When dealing with piecewise functions, check each piece separately, then verify the transition points. The derivative test fails at transition points because the function might not even be continuous there. I've seen students apply Fermat's theorem to piecewise functions without checking continuity first, which is like trying to use a ruler that's been cut in half.

Constrained optimization adds another layer. Lagrange multipliers find candidates, but they don't tell you whether you found a maximum, minimum, or saddle point. The bordered Hessian test handles that, but it's easy to mess up the sign conventions. I recommend verifying with direct substitution whenever possible instead of trusting the second derivative test blindly.

Unit - 7 Geometry (RED) - ISD High School's Math Site
Unit - 7 Geometry (RED) - ISD High School's Math Site

When the standard method breaks down

Extremes don't always exist. Functions can be unbounded above or below. f(x) = e^x on the real line has no global maximum. f(x) = 1/x on (0, 1) has no global minimum because it goes to negative infinity as x approaches zero from the right. The extreme value theorem only applies to continuous functions on closed, bounded intervals. Outside that setting, you're on your own. Sometimes the domain itself creates surprises. Consider a function defined on the rational numbers only. Every point is isolated in a topological sense, so the notion of "neighboring values" becomes problematic. Analysis on such domains requires rethinking everything from the ground up, and most introductory courses skip it entirely. If you're working with multivariable functions, the situation gets worse fast. Critical points can be maxima, minima, or saddle points, and distinguishing between them requires the second derivative test with the Hessian determinant. Even then, when the determinant equals zero, the test is inconclusive and you have to analyze the function manually. I once graded a midterm where half the class got the Hessian calculation wrong and the other half didn't know what to do when it was zero.

Numerical methods approximate extremes rather than finding them exactly. Gradient descent, Newton's method, simulated annealing—all of these search for good candidates but can miss the true global extreme, especially in functions with multiple local optima. If you need guaranteed accuracy, stick to analytical methods whenever your function allows it.

A note on terminology

Some texts use "extremum" instead of "extreme." They mean the same thing. A function has an extremum at a point where it attains a local or global maximum or minimum. Plural is extrema. The adjective is extreme. This is standard across most mathematics departments, though you might encounter regional variations in older publications. The distinction between strict and non-strict extremes matters in some contexts. A strict local maximum requires f(c) > f(x) for all nearby x c. Non-strict allows equality. Most introductory courses treat them interchangeably, but advanced analysis courses sometimes care about which version you're claiming. If you're preparing for an exam, practice with functions that have corners and cusps. Test yourself on open domains. Try to construct examples where the derivative is zero but no extreme exists. These are the questions that separate students who memorized the algorithm from students who actually understand the definition.

Relative Extrema - Definition, Derivative Tests, Graph, Examples
Relative Extrema - Definition, Derivative Tests, Graph, Examples