Maxima and Minima — Optimizing Real Situations

Learn maxima and minima with clear explanations, worked examples, and practice problems.

CBSE JEE-MAIN NEET 10 min read

Maxima and minima problems are asking a single question: at what input does a function reach its highest or lowest value? That might sound simple, but the technique — using derivatives — is one of the most widely applied ideas in mathematics. Engineers minimise material costs, physicists minimise energy, economists maximise profit, doctors minimise drug dosage. Calculus handles all of these through the same method.

Key Terms

Local maximum: A point x=ax = a where f(a)f(x)f(a) \geq f(x) for all xx in some neighbourhood around aa. The function is higher here than at nearby points.

Local minimum: A point x=ax = a where f(a)f(x)f(a) \leq f(x) for all xx in some neighbourhood around aa. The function is lower here than at nearby points.

Global (absolute) maximum: The highest value the function attains over its entire domain.

Global (absolute) minimum: The lowest value over the entire domain.

Critical point: A point where f(x)=0f'(x) = 0 or f(x)f'(x) does not exist. Every local max/min is a critical point, but not every critical point is a local max/min (could be an inflection point).

Inflection point: A point where the function changes concavity (from concave up to concave down or vice versa). f(x)=0f''(x) = 0 at an inflection point, but this alone doesn’t make it a max or min.

Methods: Finding Maxima and Minima

Method 1 — First Derivative Test

Step 1: Find f(x)f'(x) and solve f(x)=0f'(x) = 0 to get critical points.

Step 2: For each critical point x=cx = c, check the sign of f(x)f'(x) on either side:

Sign of f(x)f'(x)Conclusion
++ \to - (positive left, negative right)Local maximum at x=cx = c
+- \to + (negative left, positive right)Local minimum at x=cx = c
No sign changeInflection point (neither max nor min)

The logic: if ff' changes from ++ to -, the function was increasing then decreasing — it peaked at cc. If ff' changes from - to ++, it was decreasing then increasing — it bottomed out at cc.

Method 2 — Second Derivative Test

After finding a critical point x=cx = c where f(c)=0f'(c) = 0:

  • If f(c)>0f''(c) > 0: local minimum (curve is concave up, like a bowl)
  • If f(c)<0f''(c) < 0: local maximum (curve is concave down, like a hill)
  • If f(c)=0f''(c) = 0: inconclusive — use the first derivative test instead

The second derivative test is faster in computation but fails when f(c)=0f''(c) = 0.

Solved Examples

Example 1 — Basic (CBSE Class 12)

Find the local maxima and minima of f(x)=x33x+2f(x) = x^3 - 3x + 2.

Step 1: f(x)=3x23=3(x21)=3(x1)(x+1)f'(x) = 3x^2 - 3 = 3(x^2 - 1) = 3(x-1)(x+1)

Critical points: x=1x = 1 and x=1x = -1.

Step 2: Second derivative test: f(x)=6xf''(x) = 6x

At x=1x = -1: f(1)=6<0f''(-1) = -6 < 0local maximum

f(1)=(1)33(1)+2=1+3+2=4f(-1) = (-1)^3 - 3(-1) + 2 = -1 + 3 + 2 = 4

At x=1x = 1: f(1)=6>0f''(1) = 6 > 0local minimum

f(1)=13+2=0f(1) = 1 - 3 + 2 = 0

Answer: Local max at (1,4)(-1, 4); local min at (1,0)(1, 0).

Example 2 — Application: Maximise area (CBSE Class 12 / JEE Main)

A farmer has 200 m of fencing to enclose a rectangular field. Find the dimensions that maximise the area.

Set up: Let length = xx, width = yy. Constraint: 2x+2y=2002x + 2y = 200, so y=100xy = 100 - x.

Area: A=xy=x(100x)=100xx2A = xy = x(100 - x) = 100x - x^2

Differentiate: dAdx=1002x\frac{dA}{dx} = 100 - 2x

Critical point: 1002x=0    x=50100 - 2x = 0 \implies x = 50

Check: d2Adx2=2<0\frac{d^2A}{dx^2} = -2 < 0 → maximum ✓

Answer: x=y=50x = y = 50 m. A square gives maximum area: A=50×50=2500A = 50 \times 50 = 2500 m².

This is a classic result: among all rectangles with fixed perimeter, the square has maximum area.

Example 3 — Minimum surface area of cylinder (JEE Main level)

Find the dimensions of a cylinder with volume V=πr2h=1000πV = \pi r^2 h = 1000\pi cm³ that has minimum total surface area.

Surface area: S=2πr2+2πrhS = 2\pi r^2 + 2\pi r h

From the volume constraint: h=1000/r2h = 1000/r^2

Substituting: S=2πr2+2πr1000r2=2πr2+2000πrS = 2\pi r^2 + 2\pi r \cdot \frac{1000}{r^2} = 2\pi r^2 + \frac{2000\pi}{r}

dSdr=4πr2000πr2\frac{dS}{dr} = 4\pi r - \frac{2000\pi}{r^2}

Setting =0= 0: 4πr=2000π/r2    r3=500    r=50037.944\pi r = 2000\pi/r^2 \implies r^3 = 500 \implies r = \sqrt[3]{500} \approx 7.94 cm

h=1000/r2=1000/5002/315.87h = 1000/r^2 = 1000/500^{2/3} \approx 15.87 cm

Notice: h=2rh = 2r (height equals diameter) — the optimal cylinder has height equal to diameter. This is a classic result examiners test.

Second derivative: d2Sdr2=4π+4000π/r3>0\frac{d^2S}{dr^2} = 4\pi + 4000\pi/r^3 > 0 → minimum ✓

Example 4 — Hard (JEE Main level)

A window is in the shape of a rectangle surmounted by a semicircle. If the perimeter is 10 m, find the dimensions for maximum area.

Let the rectangle have width 2r2r (so the semicircle has radius rr) and height hh.

Perimeter: 2r+2h+πr=10    h=102rπr2=5rπr22r + 2h + \pi r = 10 \implies h = \frac{10 - 2r - \pi r}{2} = 5 - r - \frac{\pi r}{2}

Area = rectangle + semicircle:

A=2rh+πr22=2r(5rπr2)+πr22A = 2r \cdot h + \frac{\pi r^2}{2} = 2r\left(5 - r - \frac{\pi r}{2}\right) + \frac{\pi r^2}{2} A=10r2r2πr2+πr22=10r2r2πr22A = 10r - 2r^2 - \pi r^2 + \frac{\pi r^2}{2} = 10r - 2r^2 - \frac{\pi r^2}{2} dAdr=104rπr=10r(4+π)\frac{dA}{dr} = 10 - 4r - \pi r = 10 - r(4 + \pi)

Setting =0= 0: r=104+π107.141.40r = \frac{10}{4 + \pi} \approx \frac{10}{7.14} \approx 1.40 m

h=5r(1+π/2)=51.40(1+1.57)=53.60=1.40h = 5 - r(1 + \pi/2) = 5 - 1.40(1 + 1.57) = 5 - 3.60 = 1.40 m

So h=rh = r — the height of the rectangle equals the radius of the semicircle.

Exam-Specific Tips

CBSE Class 12: Application problems (area, volume, perimeter constraints) are standard 5–6 mark questions. The examiner requires: (1) setting up the function, (2) differentiating, (3) finding critical point, (4) proving it’s max/min using second derivative. All four steps must be shown. Verify with d2y/dx2>0d^2y/dx^2 > 0 or <0< 0 — don’t just state the answer.

JEE Main: Optimisation problems appear as MCQs or numerical questions (1–4 marks). Speed matters. Master the setup: identify what to maximise/minimise, express it as a function of one variable using the constraint, differentiate, solve. Second derivative verification is rarely asked for in MCQs — just check the sign intuitively.

Common Mistakes to Avoid

Mistake 1 — Not checking the boundary. For a function on a closed interval [a,b][a, b], the global max/min might be at an endpoint, not a critical point. Always evaluate f(a)f(a) and f(b)f(b) in addition to the critical points, then compare all values.

Mistake 2 — Forgetting the domain. A critical point outside the physically meaningful domain is invalid. If rr is a radius, it must be positive. If xx is a length, it must satisfy 0<x<0 < x < maximum possible value.

Mistake 3 — Assuming f(c)=0f''(c) = 0 means inflection point. f(c)=0f''(c) = 0 means the second derivative test is inconclusive — it could still be a max, min, or inflection point. Use the first derivative test to determine the nature of the critical point.

Mistake 4 — Setting derivative of constraint equal to zero. The constraint is a fixed equation (like perimeter = 200). Don’t differentiate it to find critical points — it’s used to eliminate one variable. Only differentiate the objective function (area, volume, cost) after substitution.

Mistake 5 — Not verifying with the second derivative. In CBSE, showing that d2y/dx2d^2y/dx^2 has the correct sign is required for full marks. Many students find the critical point and write the answer without proving it’s actually a maximum or minimum. This costs marks.

Practice Questions

Q1. Find the dimensions of a rectangle with perimeter 28 cm that has maximum area.

Let length = xx, width = 14x14 - x. Area =x(14x)=14xx2= x(14-x) = 14x - x^2. dA/dx=142x=0    x=7dA/dx = 14 - 2x = 0 \implies x = 7. d2A/dx2=2<0d^2A/dx^2 = -2 < 0 (maximum). Rectangle is a square with side 7 cm. Area = 49 cm².

Q2. Find the local maxima and minima of f(x)=sinx+cosxf(x) = \sin x + \cos x on [0,2π][0, 2\pi].

f(x)=cosxsinx=0    tanx=1    x=π/4f'(x) = \cos x - \sin x = 0 \implies \tan x = 1 \implies x = \pi/4 or 5π/45\pi/4. f(x)=sinxcosxf''(x) = -\sin x - \cos x. At x=π/4x = \pi/4: f=sin(π/4)cos(π/4)=2<0f'' = -\sin(\pi/4) - \cos(\pi/4) = -\sqrt{2} < 0 → local max, f(π/4)=2f(\pi/4) = \sqrt{2}. At x=5π/4x = 5\pi/4: f=2>0f'' = \sqrt{2} > 0 → local min, f(5π/4)=2f(5\pi/4) = -\sqrt{2}.

Q3. A box with a square base and no top is to be made from a square piece of cardboard by cutting equal squares from each corner. If the cardboard is 12 cm × 12 cm, find the size of the cut that maximises the volume.

Let cut size = xx cm. Base side = 122x12 - 2x, height = xx. Volume V=(122x)2xV = (12-2x)^2 \cdot x. Expand: V=x(14448x+4x2)=144x48x2+4x3V = x(144 - 48x + 4x^2) = 144x - 48x^2 + 4x^3. dV/dx=14496x+12x2=12(128x+x2)=12(x2)(x6)=0dV/dx = 144 - 96x + 12x^2 = 12(12 - 8x + x^2) = 12(x-2)(x-6) = 0. Critical points: x=2x = 2 or x=6x = 6 (reject x=6x = 6 as it gives zero base). At x=2x = 2: d2V/dx2=96+24x=96+48=48<0d^2V/dx^2 = -96 + 24x = -96 + 48 = -48 < 0 → maximum. Cut = 2 cm. Max volume = (124)2×2=64×2=128(12-4)^2 \times 2 = 64 \times 2 = 128 cm³.

Q4. Prove that f(x)=x33x2+3x+7f(x) = x^3 - 3x^2 + 3x + 7 has no local maxima or minima.

f(x)=3x26x+3=3(x22x+1)=3(x1)20f'(x) = 3x^2 - 6x + 3 = 3(x^2 - 2x + 1) = 3(x-1)^2 \geq 0 for all xx. f(x)=0f'(x) = 0 only at x=1x = 1. Since ff' doesn’t change sign (it’s always 0\geq 0), x=1x = 1 is an inflection point, not a max or min. The function is monotonically non-decreasing — no local extrema.

FAQs

Is every critical point a maximum or minimum? No. A point where f(x)=0f'(x) = 0 is only a candidate. It could be a local max, local min, or an inflection point (like x=0x = 0 for f(x)=x3f(x) = x^3, where f(0)=0f'(0) = 0 but neither max nor min).

What if the second derivative is zero at a critical point? The second derivative test is inconclusive. Switch to the first derivative test: check the sign of ff' just to the left and right of the critical point.

Can a function have a global max without a local max? On a closed interval, the global max must occur either at a local max or at an endpoint. On an open interval or infinite domain, a function might not attain its global max at all (e.g., f(x)=xf(x) = x on (0,1)(0, 1) has no maximum).

Why does the derivative equal zero at a max/min? At a smooth maximum, the tangent to the curve is horizontal — the function is momentarily flat before turning downward. A horizontal tangent has slope zero, so f(x)=0f'(x) = 0. This is only true for smooth functions; a corner (non-differentiable point) can also be a max/min.

When should I use the first vs second derivative test? Use the second derivative test when it’s easy to compute f(c)f''(c) and you’re sure it won’t be zero. Use the first derivative test when f(c)=0f''(c) = 0, or when checking sign changes is faster than computing ff''.