Finding local and global maxima and minima of a function of one variable: critical points, the first and second derivative tests, closed-interval extrema, concavity and simple optimisation problems.
has a local maximum at if for all near , and a local minimum if near . A global (absolute) maximum or minimum compares with every in the domain.
A critical point is an interior point where or does not exist. Fermat's theorem: if has a local extremum at an interior point and exists, then .
The converse is false. has but no extremum at . And has a minimum at where does not exist. So:
every interior extremum is a critical point,
not every critical point is an extremum.
Points where are also called stationary points. A function can have many local maxima; the global maximum is the largest of them (or an endpoint value).
Increasing and decreasing: if on an interval, is strictly increasing there; if , strictly decreasing. A strictly increasing function on an interval has no interior extremum.
2. The first, second and higher derivative tests
First derivative test at a critical point (works even where is awkward):
Sign of left of → right of
Result
→
local maximum
→
local minimum
no change
no extremum
Second derivative test at a stationary point ():
: local maximum.
: local minimum.
: the test fails. Use the first derivative test or the higher test.
Higher derivative test: suppose and .
even: extremum, a maximum if and a minimum if .
odd: no extremum (a point of inflection).
Example: at has first non-zero derivative (even order), so it is a minimum. at has first non-zero derivative of order 5 (odd), so there is no extremum.
3. Global extrema on a closed interval
Extreme value theorem: a function continuous on a closed interval attains both a global maximum and a global minimum on it.
Method (closed interval):
Find the critical points of that lie inside . Drop those outside.
Evaluate at these points and at the endpoints and .
The largest value is the global maximum; the smallest is the global minimum.
No second derivative test is needed: just compare values. The extremum is often at an endpoint, where need not be zero, so never skip the endpoints.
On an open interval or on all of a global extremum may not exist. For example has a local maximum at , but no global maximum on because . Check the behaviour as (or at the open ends) before calling a local extremum global.
If has only one critical point in an interval and it is a local minimum, it is also the global minimum on that interval (and likewise for a maximum).
4. Concavity and points of inflection
is concave up (convex) where : the graph bends upward and lies above its tangents. It is concave down where .
A point of inflection is where the concavity changes, that is, where changes sign. is needed (when exists) but is not enough: has and no inflection, since does not change sign.
For a cubic the single point of inflection is at , exactly midway between the local maximum and minimum when they exist.
The picture links all the tests: at a local maximum the curve is concave down, at a local minimum it is concave up, and the inflection point separates the two.
Optimisation recipe for word problems:
Name the quantity to optimise and write it in terms of one variable, using the constraint to remove the others.
Note the allowed range of the variable (lengths positive, and so on).
Set the derivative to zero, then confirm max or min with or by comparing endpoint values.
A useful shortcut: for positive with fixed sum , the product is largest at (AM–GM).
$f(x) = x^3 - 6x^2 + 9x + 1$: local maximum at $x = 1$, local minimum at $x = 3$, inflection at $x = 2$.
Formulas to remember
Critical point
Second derivative test
Inflection of a cubicFor
Vertex of a quadraticMinimum if , maximum if
Bound on a sinusoid
AM–GMFor ; equality when
Common mistakes
Forgetting the endpoints when asked for the global maximum or minimum on a closed interval.
Calling every point with f'(x) = 0 an extremum; x^3 at 0 is the standard counter-example.
Stopping when f''(c) = 0 instead of using the first derivative test or the first non-zero higher derivative.
Missing critical points where f' does not exist, such as the corner of |x|.
Including critical points that lie outside the given interval.
Reporting the x-value when the question asks for the maximum value of f, or the reverse.
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: Find critical points inside the interval.
Try it on paper first.
Example 3: An open box of largest volume
numerical
Equal squares of side are cut from the corners of a sheet and the sides folded up to make an open box. Find for maximum volume and that volume.
Step 1: Write the volume in one variable and note its range.
Try it on paper first.
Example 4: When the second derivative test fails
conceptual
Classify the stationary point at for and for .
Step 1: Try the second derivative test.
Try it on paper first.
Previous year questions
2 official GATE CSE questions on this topic, newest first.
10 questions: up to 2 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 CSE syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.