Maxima and minima
Every hill and every dip on a smooth curve gives itself away the same way: right at the top of a hill or the bottom of a dip, the tangent line goes momentarily flat. That single geometric fact — the tangent flattening out — is the seed of an entire method for finding where a function is largest or smallest, and it is the mathematical engine behind every "best possible" question you will ever meet: the cheapest box, the fastest route, the maximum profit. This article builds that method from the ground up. It defines stationary points, local versus absolute extrema, and the two standard tests (first-derivative and second-derivative) used to classify a critical point, then walks through fully worked examples on both an open-ended cubic and a closed-interval quadratic, and closes with the traps that cost the most marks in "Applications of Derivatives."
At a smooth local maximum or minimum the derivative vanishes, , and the sign of around (or the sign of ) tells you whether that flat point is a peak, a valley, or neither.
The core idea
Stationary (critical) points. A point in the domain of is called a stationary point (or critical point) if . This syllabus restricts attention to differentiable functions, so every critical point here is a genuine flat-tangent point — no corners or vertical tangents to worry about.
Local versus absolute extrema. has a local maximum at if for every in some small neighbourhood of — it only has to beat its immediate neighbours, not the whole function. A local minimum is defined the same way with . An absolute (global) maximum or minimum, by contrast, is the largest or smallest value of over its entire domain, or over a specified closed interval . Absolute extrema are found by comparing the values of at all interior critical points against the values of at the two endpoints and — a local extremum is only a candidate, and the endpoints must always be checked too.
The first-derivative test. At a critical point , look at the sign of just to the left and just to the right of :
where: the sign change from positive to negative means was rising just before and falling just after — exactly the shape of a peak. The mirror case, negative-to-positive, gives a local minimum, and no sign change at all (positive on both sides, or negative on both sides) means is neither a maximum nor a minimum — typically a point of inflection with a momentarily flat tangent.
The second-derivative test. This is the faster shortcut once a critical point is found:
where: measures concavity at — negative concavity means the curve bends downward like a dome (a peak), positive concavity means it bends upward like a bowl (a valley). If the test is silent and gives no information either way; you must fall back on the first-derivative test at that point. The two tests are not competitors so much as a fast-then-slow pair: try the quick single evaluation first, and only do the more laborious sign-tracking of on both sides of if turns out to be zero.
The goal of this derivation is to establish the necessary condition every student uses without always seeing why it is true: if a differentiable function has a local maximum or local minimum at an interior point , then the derivative must equal exactly zero, so that hunting for extrema always starts by solving . The argument uses nothing beyond the definition of the derivative as a limit and the definition of local maximum.
Step 1. Suppose has a local maximum at . By definition, there is some small neighbourhood of in which for every nearby, so throughout that neighbourhood.
Step 2. Consider the derivative from the right, using with small. The difference quotient is . The numerator is (from Step 1) and , so the whole quotient is . Taking the limit as , the right-hand derivative satisfies .
Step 3. Now consider the derivative from the left, using with small. The difference quotient is . The numerator is again , but now it is divided by , so the quotient is . Taking the limit as , the left-hand derivative satisfies .
Step 4. Since is given to be differentiable at , the left-hand and right-hand derivatives must be equal to the single value . Step 2 forces and Step 3 forces ; the only number satisfying both is . The identical argument with the inequality reversed proves the same conclusion for a local minimum. This is exactly why every extremum search on this syllabus begins with solving — it is a necessary condition, though Worked example below shows it is not by itself sufficient, since not every critical point turns out to be an extremum.
Worked example
Find the local maximum and minimum values of , and also determine the absolute maximum and minimum of the same expression on the closed interval .
Step 1 — Differentiate and locate critical points of . , so gives or . These are the only candidates for a local extremum, by the necessary condition proved above.
Step 2 — Classify each critical point with the second-derivative test. . At : , so has a local maximum there. At : , so has a local minimum there.
Step 3 — Compute the actual extreme values. , and . So has a local maximum value of at and a local minimum value of at .
Step 4 — Now find absolute extrema of on . First find interior critical points: , which lies inside . Evaluate at this critical point and at both endpoints: , , .
Step 5 — Compare all three candidate values. The set of values is , so the absolute maximum is at and the absolute minimum is at . Notice the absolute maximum sits at an endpoint, not at the interior stationary point — the reason absolute-extrema questions always require checking endpoints, never just critical points.
Common traps
- Assuming every critical point is automatically a local maximum or minimum — some are points of inflection with a horizontal tangent, where does not change sign at all.
- Forgetting to check the interval endpoints when hunting for absolute extrema on a closed interval, as Worked example Step 5 shows directly.
- Misapplying the second-derivative test when — this is inconclusive, not automatically "neither," and demands falling back on the first-derivative test.
- Confusing "local" with "absolute": a local maximum only has to beat its immediate neighbours, and need not be the largest value of the function anywhere else.
Ask the tutor: stuck on whether a stationary point is a maximum, a minimum, or neither — ask the AI tutor to walk the sign-change analysis with you on your own function.
If f'(c)=0, does that always mean x=c is a local max or min?
No. is only a necessary condition, established by the derivation above, not a guarantee. Classic example: has , but is increasing on both sides of , so it is neither a local maximum nor a local minimum there — it is a point of inflection with a momentarily flat tangent. Always follow up a stationary point with the first- or second-derivative test before declaring it an extremum.
When should I use the first-derivative test instead of the second-derivative test?
Use the second-derivative test first, since it is usually a single quick computation of . Switch to the first-derivative test only when , because the second-derivative test genuinely gives no information in that case — it is not evidence of "neither max nor min," it simply fails to decide. The first-derivative test always works, even when the second-derivative test is silent, because it directly tracks whether is increasing or decreasing on each side of .
Why do absolute extrema need endpoint checks but local extrema don't?
A local extremum only compares against its immediate neighbours, so it is entirely a statement about the interior behaviour of the curve near , and endpoints of an interval are irrelevant to that local comparison. An absolute extremum, however, asks for the single largest or smallest value across the whole interval, including its boundary — and a closed interval's endpoints are legitimate points in the domain that a stationary-point search never visits, since need not be zero there. Worked example Step 5 shows exactly this: the absolute maximum of occurred at the endpoint , not at the interior critical point .