Local and global extrema of functions of one and two variables: critical points, first, second and higher derivative tests, end points, the rt − s² test with saddle points, and Lagrange multipliers.
For more than two variables, the signs of the Hessian's eigenvalues decide the nature of a critical point.
Concept notes
1. Local extrema of f(x): critical points and the first two tests
has a local maximum at if for all near , and a local minimum if near . A global (absolute) extremum compares against the whole domain.
If has a local extremum at an interior point and exists, then . Points where or does not exist are critical points; only they (and end points) can be extrema. The converse is false: has but no extremum at 0.
First derivative test. Look at the sign of just left and right of :
Sign change of
Result at
to
local maximum
to
local minimum
no change
neither
This test works even where does not exist, for example at 0 (a minimum).
Second derivative test. If :
: local maximum (curve bends down).
: local minimum (curve bends up).
: the test fails; use the higher-order test or the first derivative test.
2. Higher-order test and inflection points
If and , look at the order of the first non-zero derivative:
even: an extremum. Maximum if , minimum if .
odd: no extremum; is a stationary point of inflection.
Examples: at 0 has , a minimum. at 0 has , odd order, so no extremum.
A point of inflection is where the curve changes from concave up to concave down or back, so changes sign there. It need not be stationary: has inflection points at , where .
Standard results worth remembering:
Function
Extreme values
,
maximum at
,
maximum at
,
minimum 2 at
,
is largest at
3. Global extrema on a closed interval
A continuous function on a closed, bounded interval always attains a global maximum and a global minimum (extreme value theorem). They occur at critical points inside the interval or at the end points.
Procedure:
Find all critical points in .
Evaluate at each of them and at and .
The largest value is the global maximum; the smallest is the global minimum.
No derivative test is needed: just compare values. A local maximum need not be the global maximum, and an end point can be a global extremum even though there.
Example: on . , so the critical points are 1 and 3. Values: , , , . Global maximum 21 at the end point ; global minimum 1, reached at both and .
On an open interval or an unbounded domain, a global extremum may not exist ( on has neither), so check the limits at the ends.
f(x) = x³ − 6x² + 9x + 1 on [0, 5]: the local maximum at x = 1 is not the global maximum, which is at the end point x = 5.
4. Functions of two variables: the rt − s² test
For , a local extremum at an interior point needs
Solve these together to get the stationary points. At each one compute
Condition
Nature
,
local minimum
,
local maximum
saddle point (neither)
test fails; examine near the point
When , and have the same sign, so you can check either.
A saddle point is stationary but rises along some directions and falls along others, like at the origin.
More than two variables. Form the Hessian matrix of second partials. At a stationary point: positive definite (all eigenvalues positive, or all leading principal minors positive) gives a minimum; negative definite gives a maximum; eigenvalues of both signs give a saddle. The test is the case of this.
Level curves near a stationary point. Closed curves around the point: a minimum or a maximum. Hyperbolas with f above the saddle value (solid, +) on one pair of sides and below it (dashed, −) on the other: a saddle.
5. Constrained extrema: Lagrange multipliers
To find extrema of subject to , form
and solve together with . At the solution, is parallel to : the level surface of just touches the constraint surface.
The method gives candidate points; decide maximum or minimum from the physical meaning or by comparing values. With a closed and bounded constraint set, the largest and smallest values among the candidates are the global ones.
When to substitute instead. If the constraint is easy to solve for one variable (for example ), substitute and reduce to fewer variables. Lagrange multipliers are cleaner when the constraint is symmetric or hard to solve.
Useful shortcut (AM-GM). For positive numbers, , with equality when . So with a fixed sum the product is largest when all are equal, and with a fixed product the sum is smallest when all are equal.
Distance problems. To find the nearest point of a surface to a point, minimise the square of the distance; it has the same minimiser and avoids square roots.
Formulas to remember
Critical point
Second derivative test
Higher-order test
Two-variable test
Lagrange function
Sinusoidal sum
Common mistakes
Assuming means an extremum; at 0 is stationary but is neither a maximum nor a minimum.
Forgetting the end points when asked for a global extremum on a closed interval.
Stopping when and declaring a point of inflection; check higher derivatives, since has a minimum at 0.
Using only the sign of when ; a negative always means a saddle point.
Missing critical points where the derivative does not exist, such as the corner of .
Minimising the distance itself in Lagrange problems and getting messy roots; minimise the squared distance instead.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Global extrema on a closed interval
numerical
Find the global maximum and minimum of on .
Step 1: Find the critical points.
Try it on paper first.
Example 2: Stationary points of a two-variable function
numerical
Classify the stationary points of .
Step 1: Solve $f_x = f_y = 0$.
Try it on paper first.
Example 3: Nearest point on a plane
numerical
Find the point of the plane nearest to the origin, and its distance from the origin.
Step 1: Set up the Lagrange function with the squared distance.
Try it on paper first.
Example 4: When the second derivative test fails
conceptual
Classify the stationary points of .
Step 1: Find the stationary points.
Try it on paper first.
Previous year questions
1 official GATE EC question on this topic, newest first.
9 questions: up to 1 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 EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.