UNIHIVE

Study Hub UNIPORT MTH 224

MTH 224 · Mathematical Methods 1

Maxima, minima and saddle points

Critical points and the second derivative test for functions of two variables.

Our notes

2 min read

Critical points

At a smooth maximum or minimum, the surface is flat: fₓ = 0 and f_y = 0 at the same point.

These are critical points, and not all of them are maxima or minima.

The second derivative test

At a critical point, compute:

D = fₓₓ f_yy − (fₓᵧ)²

ConditionResult
D > 0 and fₓₓ > 0Minimum
D > 0 and fₓₓ < 0Maximum
D < 0Saddle point
D = 0Test fails

Worked example 1

f(x, y) = x² + y² − 4x + 6y.

  • fₓ = 2x − 4 = 0 → x = 2
  • f_y = 2y + 6 = 0 → y = −3
  • fₓₓ = 2, f_yy = 2, fₓᵧ = 0, D = 4 > 0
  • Minimum at (2, −3), f = 4 + 9 − 8 − 18 = −13

Check by completing the square: (x − 2)² + (y + 3)² − 13. The least value is −13, at (2, −3). Correct.

Worked example 2

f(x, y) = x³ + y³ − 3xy.

  • fₓ = 3x² − 3y = 0 → y = x²
  • f_y = 3y² − 3x = 0 → x = y²
  • Substitute: x = x⁴ → x(x³ − 1) = 0 → x = 0 or x = 1
  • Critical points: (0, 0) and (1, 1)

Second derivatives: fₓₓ = 6x, f_yy = 6y, fₓᵧ = −3.

PointDResult
(0, 0)0 − 9 = −9Saddle
(1, 1)36 − 9 = 27, fₓₓ = 6Minimum, f = −1

Check near (1, 1): f(1.1, 1) = 1.331 + 1 − 3.3 = −0.969, more than −1. f(0.9, 1) = 0.729 + 1 − 2.7 = −0.971, more than −1. That fits.

Worked example 3: production

A workshop makes two goods. Profit is π = 40x + 30y − x² − y² − xy, with x and y in hundreds of units (practice figures).

  • π_x = 40 − 2x − y = 0
  • π_y = 30 − 2y − x = 0

Solve: from the second, x = 30 − 2y. Then 40 − 2(30 − 2y) − y = 0 → −20 + 3y = 0 → y = 20/3 and x = 50/3.

D = (−2)(−2) − (−1)² = 3 > 0, and π_xx = −2 < 0: maximum.

π = 40(50/3) + 30(20/3) − (2500/9) − (400/9) − (1000/9) = 2600/3 − 3900/9 = 2600/3 − 1300/3 = 1300/3 ≈ 433.3.

Check: π at the point equals half of 40x + 30y, for a quadratic of this kind: (40(50/3) + 30(20/3))/2 = (2600/3)/2 = 1300/3. Correct.

Least squares: a key application

To fit y = mx + c to data, minimise the sum of squared errors, S(m, c) = Σ(yᵢ − mxᵢ − c)². Setting ∂S/∂m = 0 and ∂S/∂c = 0 gives the normal equations of regression, used in statistics courses.

Closed regions

On a closed, bounded region, a continuous function has a highest and a lowest value. Compare the values at interior critical points with those on the boundary.

Exams usually ask: find and classify critical points; solve a profit or dimensions problem; find extreme values on a boundary.

Common mistake: finding one critical point and stopping. Solve fₓ = 0 and f_y = 0 fully: in nonlinear systems, there are often several solutions.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MTH 224 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.