Local and global maxima and minima of a function of one variable: critical points, the first, second and higher derivative tests, the closed interval method, concavity and points of inflection.
has a local (relative) maximum at if for all near ; a local minimum if near .
A global (absolute) maximum on a set is a point where for every ; similarly for a global minimum. A global extremum at an interior point is also local; one at an endpoint need not be.
Fermat's theorem: if has a local extremum at an interior point and exists, then .
So local extrema can occur only at critical points: interior points where (stationary points) or where does not exist (e.g. has a minimum at 0 with no derivative there).
The converse fails: does not guarantee an extremum. has but is increasing through 0, so 0 is a point of inflection, not an extremum. Every critical point must therefore be tested.
2. Tests for a local maximum or minimum
First derivative test (works even when is messy or fails to exist at ): look at the sign of just left and right of .
Sign of : left → right
Conclusion
→
local maximum
→
local minimum
no change
no extremum
A root of of even multiplicity does not change the sign, so it is not an extremum.
Second derivative test at a stationary point ():
→ local maximum;
→ local minimum;
→ the test fails; use the first derivative test or the higher-order test.
Higher-order test: if and , then for even there is an extremum (maximum if , minimum if ); for odd there is no extremum, it is a point of inflection. Example: at 0 has , a minimum; at 0 has with odd, no extremum.
f(x) = x³ − 6x² + 9x + 1: f′ = 3(x − 1)(x − 3). Local maximum at x = 1 (f″ < 0), local minimum at x = 3 (f″ > 0), inflection at x = 2 where f″ changes sign
3. Global extrema: the closed interval method
Extreme value theorem: a function continuous on a closed, bounded interval attains a global maximum and a global minimum there.
Closed interval method:
Find the critical points of inside .
Evaluate at those points and at the endpoints and .
The largest value is the global maximum, the smallest the global minimum.
No derivative test is needed: just compare values. Endpoints are often where the answer lies.
Open or unbounded domains: a global extremum may not exist. Check the limits at the ends. For example, on has no maximum or minimum; on has neither. If a continuous on an interval has exactly one critical point and it is a local minimum, it is the global minimum on that interval (same for maximum).
Useful inequality: for , , with equality at (AM–GM).
4. Concavity, inflection points and convexity
is convex (concave up) on an interval if there: the graph lies above its tangents and below its chords.
is concave (concave down) if .
A point of inflection is where the concavity changes, i.e. changes sign. is necessary (when exists) but not sufficient: has but is convex everywhere, so 0 is not an inflection point.
At a stationary point
Shape nearby
Result
cup
local minimum
cap
local maximum
changes sign
S-bend
inflection, no extremum
Why convexity matters in optimisation: for a convex function, every local minimum is a global minimum, and any stationary point is a global minimum. This is why loss functions such as squared error are easy to minimise. For a strictly convex function the global minimiser, if it exists, is unique.
For a cubic (): it has exactly one inflection point, at , and either two local extrema (if has two distinct real roots) or none.
Formulas to remember
Stationary point
Second derivative test
Higher-order test even: extremum (min if ); odd: inflection, no extremum
Global extrema on [a, b] are the critical points inside
Inflection point of a cubicFor
AM–GM minimum
Common mistakes
Forgetting the endpoints when finding a global maximum or minimum on a closed interval.
Treating every point with as an extremum; at 0 is not one.
Concluding "no extremum" when ; the test only fails, so use the first derivative or higher-order test.
Missing critical points where does not exist, such as the corner of .
Calling a point an inflection just because without checking that changes sign ( at 0).
Answering with the location when the question asks for the maximum or minimum value , or the other way round.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Local extrema of a cubic
numerical
Find the local maximum and minimum values of .
Step 1: Find the critical points.
Try it on paper first.
Example 2: Global extrema on a closed interval
numerical
Find the global maximum and minimum of on .
Step 1: List the candidates.
Try it on paper first.
Example 3: Maximum of x e^(−x)
numerical
Find the maximum value of for .
Step 1: Differentiate and solve f′(x) = 0.
Try it on paper first.
Example 4: When the second derivative test fails
conceptual
At , classify the stationary point of , and .
Step 1: Try the second derivative test first.
Try it on paper first.
Previous year questions
5 official GATE DA questions on this topic, newest first.
10 questions: up to 4 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE DA syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.