Free Mathematics Class 12 CBSE notes · practise this chapter with an AI quiz

← All study notes

How to Fold a Square Sheet Into the Biggest Possible Open Box

Tell local maxima and minima from absolute extreme values and find critical points, classify them with the first and second derivative tests, and solve optimisation problems, including absolute extrema on a closed interval.

How do derivatives find the best possible value?

Engineers want the strongest beam from the least material; a shopkeeper wants the price that brings the most profit. These questions ask for a maximum or minimum.

This part covers local and absolute extrema with critical points, the first derivative test, the second derivative test, and optimisation problems.

How do local maxima and minima differ from absolute maximum and minimum values, and what are critical points?

A local maximum or minimum is the highest or lowest value near a point, an absolute maximum or minimum is the greatest or least value over the whole domain or interval, and critical points — where f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist — are the only interior points where local extrema can occur.

Critical points.
If ff has a local extremum at an interior point cc and f′(c)f'(c) exists, then f′(c)=0f'(c) = 0. So the candidates are points where f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist.

Worked example — not an extremum. f(x)=x3f(x) = x^3 has f′(0)=0f'(0) = 0, but ff keeps increasing through 00, so x=0x = 0 is neither a maximum nor a minimum — it is a point of inflection.

An everyday example. A hilly trek passes many local peaks, but only one of them is the highest point of the whole route — the absolute maximum.

The substance. A local maximum can be lower than a local minimum elsewhere — local means best only nearby.

How does the first derivative test classify critical points?

At a critical point cc, if f′f' changes from positive to negative as xx increases through cc, ff has a local maximum; if it changes from negative to positive, a local minimum; and if it does not change sign, neither.

Geometrically, the graph rises before a peak and falls after it.

Worked example.
f(x)=x3−3x2−9x+5f(x) = x^3 - 3x^2 - 9x + 5 has f′(x)=3(x−3)(x+1)f'(x) = 3(x - 3)(x + 1), with critical points x=−1x = -1 and x=3x = 3.

- Through x=−1x = -1, f′f' changes from ++ to −- — a local maximum, with f(−1)=−1−3+9+5=10f(-1) = -1 - 3 + 9 + 5 = 10
- Through x=3x = 3, f′f' changes from −- to ++ — a local minimum, with f(3)=27−27−27+5=−22f(3) = 27 - 27 - 27 + 5 = -22

An everyday example. A cyclist riding over a flyover feels the road change from uphill to downhill exactly at the top — the sign change of the slope.

The substance. The first derivative test also works where f′f' does not exist, such as ∣x∣|x| at 00, where the second derivative test cannot be used.

How does the second derivative test find local maxima and minima?

If f′(c)=0f'(c) = 0 and f′′(c)<0f''(c) < 0, ff has a local maximum at cc; if f′(c)=0f'(c) = 0 and f′′(c)>0f''(c) > 0, a local minimum; and if f′′(c)=0f''(c) = 0, the test fails and another method is needed.

Why it works.
f′′(c)<0f''(c) < 0 means f′f' is decreasing near cc; since f′(c)=0f'(c) = 0, f′f' goes from positive to negative, giving a peak. f′′(c)>0f''(c) > 0 gives a valley.

Worked example. For f(x)=x3−3x2−9x+5f(x) = x^3 - 3x^2 - 9x + 5, f′′(x)=6x−6f''(x) = 6x - 6.

f′′(−1)=−12<0⇒local maximum at x=−1f''(-1) = -12 < 0 \Rightarrow \text{local maximum at } x = -1

f′′(3)=12>0⇒local minimum at x=3f''(3) = 12 > 0 \Rightarrow \text{local minimum at } x = 3

An everyday example. A bowl sitting upright curves up and holds water at its lowest point, while an upturned bowl curves down with its highest point on top — like f′′>0f'' > 0 at a minimum and f′′<0f'' < 0 at a maximum.

The substance. f′′(c)=0f''(c) = 0 does not mean there is no extremum — it only means this test cannot decide.

How do you solve optimisation problems and find absolute extrema on a closed interval?

Express the quantity to be optimised as a function of one variable, find its critical points and apply a derivative test; on a closed interval [a,b][a, b], compare the values at the critical points and at both endpoints to find the absolute maximum and minimum.

Worked example 1 — the open box.
Equal squares of side xx cm are cut from the corners of an 1818 cm square sheet, and the sides are folded up.

V=x(18−2x)2⇒V′(x)=(18−2x)(18−6x)V = x(18 - 2x)^2 \Rightarrow V'(x) = (18 - 2x)(18 - 6x)

V′(x)=0V'(x) = 0 at x=3x = 3, since x=9x = 9 leaves no box. With V′′(x)=24x−144V''(x) = 24x - 144, V′′(3)=−72<0V''(3) = -72 < 0, a maximum:

V(3)=3(12)2=432 cm3V(3) = 3(12)^2 = 432 \text{ cm}^3

Worked example 2 — a closed interval. Find the absolute extrema of f(x)=2x3−15x2+36x+1f(x) = 2x^3 - 15x^2 + 36x + 1 on [1,5][1, 5].

f′(x)=6(x−2)(x−3)f(1)=24,  f(2)=29,  f(3)=28,  f(5)=56f'(x) = 6(x - 2)(x - 3) \qquad f(1) = 24, \; f(2) = 29, \; f(3) = 28, \; f(5) = 56

The absolute maximum is 5656 at x=5x = 5, and the absolute minimum is 2424 at x=1x = 1.

An everyday example. A farmer fencing a rectangular plot beside a canal with a fixed length of wire uses exactly this method to enclose the largest area.

The substance. Absolute extrema on a closed interval often sit at the endpoints, which is why the endpoints must always be checked.
Exam tip

What earns full marks on maxima and minima?

State which test you are using, show the sign or value that decides it, and give word-problem answers with units.

- Critical points: f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist
- First derivative test: ++ to −- maximum; −- to ++ minimum; no change, neither
- Second derivative test: f′′(c)<0f''(c) < 0 maximum; f′′(c)>0f''(c) > 0 minimum; f′′(c)=0f''(c) = 0 inconclusive
- Optimisation: one-variable function, derivative, test, answer in context

The trap. Ignoring the endpoints of a closed interval. The absolute maximum or minimum may lie at an endpoint, where f′f' need not be zero.
Did you know

Why are the cells of a honeycomb hexagonal?

Bees build their comb from wax, which takes a lot of energy to make. Dividing a flat surface into equal cells using the least total wall length is an optimisation problem.

Among the regular shapes that tile a flat surface with no gaps — triangles, squares and hexagons — hexagons enclose a given area with the shortest perimeter. So hexagonal cells hold the most honey for the least wax.

It is nature's own answer to exactly the kind of question solved in this lesson: getting the most from the least.
Exam relevance

How are maxima and minima tested in JEE Main?

Maxima and minima complete Application of Derivatives in JEE Main, and they bring together algebra, geometry and calculus.

What gets asked. Local and absolute extreme values of polynomial, trigonometric and exponential functions, optimising areas and volumes such as boxes, cones inscribed in spheres and nearest points on curves, and conditions on a parameter for a function to have extrema.

Question types. Numerical-value questions on maximum or minimum values, and multiple-choice questions on critical points.

The trap that costs marks. Concluding there is no extremum when f′′(c)=0f''(c) = 0, instead of switching to the first derivative test.
Key takeaways

What must you be able to do from this part?

- Extrema: local means best nearby, absolute means best overall; candidates are critical points where f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist
- First derivative test: ++ to −- gives a maximum, −- to ++ a minimum; x3−3x2−9x+5x^3 - 3x^2 - 9x + 5 has a maximum 1010 at x=−1x = -1 and a minimum −22-22 at x=3x = 3
- Second derivative test: f′′(c)<0f''(c) < 0 maximum, f′′(c)>0f''(c) > 0 minimum, f′′(c)=0f''(c) = 0 inconclusive
- Optimisation: an 1818 cm sheet makes a largest box of 432432 cm3^3; on [a,b][a, b], compare critical values with endpoint values

Two positive numbers add up to 2020. Find them if their product is to be as large as possible, and confirm your answer with the second derivative test.

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Application of Derivatives — Part 2Create a free account
← Back to all articles