← back to MATH 102
Week 10Stewart §14.6, 14.763 min full read
7 concepts17 worked examples25 exercises3 exam-level6 figures
What are you here for?

10Directional derivatives, the gradient vector, and maximum and minimum values

You are on a hillside whose height above sea level is a function of your map position. Step due east and the ground rises at one rate; step due north and it rises at another; step northeast and you get a third number that is not the average of the first two. Somewhere there is a single compass bearing that is the steepest way up — and the contour lines printed on the map already know which way it points, because they always cross it at a right angle.

By the end you can take a rate of change in any direction, name the one direction of fastest increase and its size, and locate and classify every peak, valley, and pass of a surface.

In 60 seconds

Package both partial derivatives into one vector, the gradient: dot it with a unit direction to get any rate of change, and set it to zero to find the candidates for peaks and valleys.

Directional derivative
$$D_{\mathbf u}f=\nabla f\cdot\mathbf u=f_x a+f_y b$$

a rate of change is asked in a specific unit direction $\mathbf u=\langle a,b\rangle$

Steepest ascent
$$\max_{\mathbf u}D_{\mathbf u}f=|\nabla f|\ \text{at}\ \mathbf u=\tfrac{\nabla f}{|\nabla f|}$$

the fastest way to increase (or, with a minus sign, decrease) is asked

Tangent plane to a level surface
$$\nabla F(P)\cdot\langle x-x_0,y-y_0,z-z_0\rangle=0$$

a surface is given implicitly as $F(x,y,z)=k$

Critical point
$$\nabla f(a,b)=\mathbf 0\quad(f_x=0\ \text{and}\ f_y=0)$$

you are hunting local maxima, minima, or saddles

Second Derivatives Test
$$D=f_{xx}f_{yy}-(f_{xy})^{2}$$

a critical point must be classified as min, max, or saddle

Three most common mistakes
  1. Using the given direction vector without turning it into a first. $D_{\mathbf u}f$ is a rate per unit distance, so a direction $\langle 3,4\rangle$ must be divided by its length $5$; skipping this scales every answer.

  2. Reading $\nabla f=\mathbf 0$ as an extremum. It only makes the point a candidate — it can be a saddle. The Second Derivatives Test is what decides.

  3. Forgetting to square $f_{xy}$ in the discriminant, or concluding min-versus-max from $f_{xx}$ before checking that $D>0$.

The course lists a weekly quiz (10%) and homework (10%); both draw straight from the routines on this page. The reliable earners are a directional-derivative computation and a full classify-the-critical-points question — practise each to a finished number, not just a setup.

How much time do you have?
10 minutes

You walk in able to compute a directional derivative, name the steepest direction and its size, and set a gradient to zero to find critical points.

In 60 seconds, The gradient packages both partials, Steepest ascent and the level-curve angle, Critical points, Formula card
45 minutes

You add the two questions that carry the most marks: writing a tangent plane to an implicit surface, and running the Second Derivatives Test all the way to a verdict.

everything in the 10-minute path, The gradient is normal to a level surface, The Second Derivatives Test, Worked exam-style classification, Practice B, Practice C
full read

You cover absolute extrema on a closed region (interior plus boundary), the interleaved links back to the chain rule and tangent planes, and every trap in the mistake ledger.

all concepts in order, Absolute maxima and minima on a closed region, The four-rung ladder, Practice A through D, Mistake ledger, Self-audit
By the end of this section
  1. Compute the directional derivative $D_{\mathbf u}f$ of a function of two variables in a given direction, remembering to use a unit vector.

  2. Assemble the gradient vector $\nabla f$ and use the form $D_{\mathbf u}f=\nabla f\cdot\mathbf u$ to read off any directional derivative from one vector.

  3. Identify the direction of fastest increase and its magnitude $|\nabla f|$, and explain why the rate along a level curve is zero.

  4. Write the tangent plane and normal line to a level surface $F(x,y,z)=k$ using $\nabla F$ as the normal vector.

  5. Locate all critical points of a function of two variables by solving $f_x=0$ and $f_y=0$ together.

  6. Classify each critical point as a local minimum, , or using the Second Derivatives Test.

  7. Determine the and minimum of a continuous function on a closed, bounded region by comparing interior and boundary values.

Syllabus coverage
14.6

Directional derivatives and the gradient vector; direction of fastest change; gradient normal to level curves and surfaces; tangent planes to level surfaces

Spread over four concepts: the directional derivative itself, the gradient as its package, the steepest-ascent geometry, and the jump to three variables and level surfaces.

covered
14.7

Local maxima, minima, and saddle points; critical points; the Second Derivatives Test; absolute extrema on a closed bounded region

Three concepts: finding critical points, classifying them with the discriminant, and the closed-region procedure that mixes interior critical points with boundary work.

covered
Recall first
Partial derivatives

$f_x$ is the derivative of $f$ with $y$ held constant, $f_y$ with $x$ held constant. They are the rates of change of $f$ along the $x$- and $y$-directions only.

Every object in this section — the gradient, the critical-point equations, the discriminant — is built directly out of partial derivatives.

Dot product and length

$\mathbf a\cdot\mathbf b=a_1b_1+a_2b_2=|\mathbf a|\,|\mathbf b|\cos\theta$, and a unit vector is any $\mathbf u$ with $|\mathbf u|=1$, obtained as $\mathbf v/|\mathbf v|$.

The directional derivative is a dot product, and the $\cos\theta$ form is what makes the gradient the direction of steepest ascent.

Equation of a plane from a normal

The plane through $P_0=(x_0,y_0,z_0)$ with normal vector $\mathbf n=\langle a,b,c\rangle$ is $a(x-x_0)+b(y-y_0)+c(z-z_0)=0$.

The tangent plane to a level surface uses the gradient as this normal vector, so the plane's equation is immediate once you have the gradient.

Try it yourself first (3 questions)
1§10.0 — partials assemble into a gradient●○○○○

A warm-up on the one tool everything here is built from: the partial derivatives you met earlier this term.

Given
  • $f(x,y)=x^{2}y-y^{3}$

  • the point $(2,1)$

Find
  1. (a) Find $f_x$ and $f_y$, then evaluate both at $(2,1)$.

Hint 1/4

You are being asked for two ordinary derivatives: one treating $y$ as a constant, one treating $x$ as a constant.

Hint 2/4

$f_x$ holds $y$ fixed; $f_y$ holds $x$ fixed. Differentiate $x^{2}y-y^{3}$ each way.

Hint 3/4

$f_x=2xy$ and $f_y=x^{2}-3y^{2}$. At $(2,1)$: $f_x=2\cdot2\cdot1$ and $f_y=2^{2}-3\cdot1^{2}$.

Hint 4/4

So $f_x(2,1)=4$ and $f_y(2,1)=1$.

Show solution
Differentiate in each variable
$$f_x=2xy$$

hold $y$ constant; $\tfrac{d}{dx}(x^{2}y)=2xy$ and $y^{3}$ is a constant here

$$f_y=x^{2}-3y^{2}$$

hold $x$ constant; $x^{2}y$ has $y$-derivative $x^{2}$ and $-y^{3}$ gives $-3y^{2}$

Evaluate
$$f_x(2,1)=2(2)(1)=4$$

substitute $x=2,\,y=1$

$$f_y(2,1)=2^{2}-3(1)^{2}=1$$

substitute the same point

Answer $$\langle f_x,f_y\rangle(2,1)=\langle 4,1\rangle$$
Check

Units check: both are pure rates of change of $f$ per unit change in one variable, as expected for first partials.

2§10.0 — turning a direction into a unit vector●○○○○

A deliberate trap. Many first answers skip the one step this whole section depends on.

Given
  • the direction vector $\mathbf v=\langle 3,4\rangle$

Find
  1. (a) Is $\mathbf v$ a unit vector? If not, give the unit vector $\mathbf u$ pointing the same way.

Hint 1/4

A unit vector has length exactly $1$. First just measure the length of $\mathbf v$.

Hint 2/4

Length is $|\mathbf v|=\sqrt{v_1^{2}+v_2^{2}}$, and the unit vector is $\mathbf v/|\mathbf v|$.

Hint 3/4

$|\langle 3,4\rangle|=\sqrt{9+16}=5\neq1$, so $\mathbf v$ is not a unit vector. Divide by $5$.

Hint 4/4

$\mathbf u=\left\langle\tfrac{3}{5},\tfrac{4}{5}\right\rangle$.

Show solution
Measure and rescale
$$|\mathbf v|=\sqrt{3^{2}+4^{2}}=5$$

the $3$–$4$–$5$ triangle; $5\neq1$ so $\mathbf v$ is not yet a unit vector

$$\mathbf u=\tfrac{1}{5}\langle 3,4\rangle=\left\langle\tfrac35,\tfrac45\right\rangle$$

dividing by the length always produces length $1$

Answer $$\mathbf u=\left\langle\tfrac35,\tfrac45\right\rangle$$
Check

Check: $|\mathbf u|=\sqrt{(3/5)^{2}+(4/5)^{2}}=\sqrt{9/25+16/25}=\sqrt{25/25}=1.$

Skip this and every directional derivative comes out $|\mathbf v|$ times too big.

3§10.0 — the dot product you will lean on●○○○○

The two warm-ups above combine into the operation this whole section runs on.

Given
  • $\mathbf a=\langle 4,1\rangle$

  • $\mathbf u=\langle 3/5,4/5\rangle$

Find
  1. (a) Compute the dot product $\mathbf a\cdot\mathbf u$.

Hint 1/4

You just need the dot product of two given vectors — multiply matching components and add.

Hint 2/4

$\langle a_1,a_2\rangle\cdot\langle u_1,u_2\rangle=a_1u_1+a_2u_2$.

Hint 3/4

$\mathbf a\cdot\mathbf u=4\cdot\tfrac35+1\cdot\tfrac45=\tfrac{12}{5}+\tfrac{4}{5}$.

Hint 4/4

$\mathbf a\cdot\mathbf u=\tfrac{16}{5}=3.2$.

Show solution
Multiply and add
$$\mathbf a\cdot\mathbf u=4\cdot\tfrac35+1\cdot\tfrac45$$

pair the first components and the second components

$$=\tfrac{12}{5}+\tfrac{4}{5}=\tfrac{16}{5}$$

common denominator $5$

Answer $$\mathbf a\cdot\mathbf u=\tfrac{16}{5}$$
Check

Order check: $\mathbf a\cdot\mathbf u=\mathbf u\cdot\mathbf a$, and indeed $\tfrac35\cdot4+\tfrac45\cdot1=\tfrac{16}{5}$ as well.

This is exactly the directional derivative of a function whose gradient is $\langle4,1\rangle$ in the direction $\mathbf u$.

Notation
symbolreads asmeanswatch out
$D_{\mathbf u}f$

the directional derivative of f in the direction u

the rate of change of $f$ per unit distance as you move from the point in the unit direction $\mathbf u$ — a number

The subscript must be a unit vector. $D_{\mathbf u}f$ with a non-unit $\mathbf u$ is not the directional derivative.

$\nabla f$

grad f, or del f

the gradient vector $\langle f_x,f_y\rangle$ (or $\langle f_x,f_y,f_z\rangle$ in three variables) — a vector, evaluated at a point

$\nabla f$ is a vector field, one arrow at each point; $\nabla f(a,b)$ is the single arrow at $(a,b)$.

$|\nabla f|$

the length of the gradient

the magnitude of $\nabla f$; it equals the maximum directional derivative, i.e. the steepest rate of increase

A number, never a direction. The steepest direction is $\nabla f/|\nabla f|$.

$D$

the discriminant D

$D=f_{xx}f_{yy}-(f_{xy})^{2}$, the quantity whose sign classifies a critical point

This $D$ has nothing to do with $D_{\mathbf u}f$; the reused letter is unfortunate but standard. The $f_{xy}$ term is squared.

Conventions used here
A direction must be a unit vector

A directional derivative is a rate per unit distance, so $\mathbf u$ must have length $1$. Handed a direction like $\langle 3,4\rangle$, divide by its length $5$ first. An angle $\theta$ already gives a unit vector $\langle\cos\theta,\sin\theta\rangle$.

The gradient is a vector; its rate is a number

$\nabla f(a,b)=\langle f_x,f_y\rangle$ is a vector. The fastest rate of increase is the number $|\nabla f(a,b)|$. Do not report a vector where a rate is wanted, or a length where a direction is wanted.

A critical point is a candidate, not a verdict

$\nabla f=\mathbf 0$ only makes $(a,b)$ eligible. It may be a maximum, a minimum, or a saddle; the Second Derivatives Test decides. A point where a partial derivative fails to exist is also critical.

When the discriminant is zero the test is silent

$D=0$ means the Second Derivatives Test gives no information — not that there is no extremum. You must then argue directly, by inspecting values near the point.

Absolute extrema need a closed and bounded region

The Extreme Value Theorem guarantees an absolute maximum and minimum only when the region is closed (it contains its boundary) and bounded. On an open or unbounded region a continuous function may attain neither.

10.1The directional derivative

Turns the two axis rates into the rate along any chosen direction; use it whenever a direction or angle is named.

We already know the rate of change of $f$ along the two axes: that is exactly what $f_x$ and $f_y$ are. The question now is the rate along any direction.

Solvable with what we have
  • the rate of change of $f$ heading due east — it is $f_x$

  • the rate heading due north — it is $f_y$

Not solvable yet
  • the rate heading northeast, along $\langle1,1\rangle$

  • the rate along a direction given by an angle, say $30^\circ$

For the northeast rate, just add the two axis rates: $f_x+f_y$.

Why it fails

A northeast unit step covers only $1/\sqrt2$ of a unit east and $1/\sqrt2$ north, not a full unit of each. Adding $f_x+f_y$ is the change over the vector $\langle1,1\rangle$, which is $\sqrt2$ units long — so it overstates the rate per unit distance by a factor of $\sqrt2$.

TheoremThe directional-derivative formula
Conditions
  • $f$ is differentiable at $(x,y)$

  • $\mathbf u=\langle a,b\rangle$ is a unit vector

$$\boxed{\,D_{\mathbf u}f(x,y)=f_x(x,y)\,a+f_y(x,y)\,b\,}$$

The rate of change in the unit direction $\langle a,b\rangle$ is the east rate weighted by how much of the step goes east, plus the north rate weighted by how much goes north.

Looks like this, but is not

For the northeast direction, $D_{\mathbf u}f=f_x+f_y$.

That uses $\langle1,1\rangle$, whose length is $\sqrt2$. The unit vector is $\langle1/\sqrt2,1/\sqrt2\rangle$, so the correct rate is $(f_x+f_y)/\sqrt2$.

Rate of $x^{2}y$ at $(3,2)$ toward $\langle3,4\rangle$

Find the rate of change of $f(x,y)=x^{2}y$ at the point $(3,2)$ in the direction of $\mathbf v=\langle3,4\rangle$.

Given
  • $f(x,y)=x^{2}y$

  • point $(3,2)$

  • direction $\mathbf v=\langle3,4\rangle$

Find

$D_{\mathbf u}f(3,2)$

Solution
Get the partials at the point
$$f_x=2xy,\quad f_y=x^{2}$$

differentiate holding the other variable fixed

$$f_x(3,2)=12,\quad f_y(3,2)=9$$

substitute $x=3,\,y=2$

Turn the direction into a unit vector
$$|\mathbf v|=\sqrt{3^{2}+4^{2}}=5$$

the direction is not yet unit length, so it must be rescaled

$$\mathbf u=\left\langle\tfrac35,\tfrac45\right\rangle$$

divide by the length

Apply the formula
$$D_{\mathbf u}f=12\cdot\tfrac35+9\cdot\tfrac45$$

$f_x a+f_y b$ with the unit components

$$=\tfrac{36}{5}+\tfrac{36}{5}=\tfrac{72}{5}=14.4$$

add the two contributions

Answer $$D_{\mathbf u}f(3,2)=\tfrac{72}{5}=14.4$$
Check

The gradient length is $|\langle12,9\rangle|=\sqrt{225}=15$, and $14.4\le15$: no directional derivative can beat the gradient's length, so the size is plausible.

One normalisation and one dot product.

Closing the northeast loop for $x^{2}y$ at $(3,2)$

Return to the northeast direction that stumped us. Find the rate of $f(x,y)=x^{2}y$ at $(3,2)$ along $\langle1,1\rangle$, and compare with the naive answer $f_x+f_y$.

Given
  • $f(x,y)=x^{2}y$

  • point $(3,2)$

  • direction $\langle1,1\rangle$

Find

$D_{\mathbf u}f(3,2)$ and the size of the naive error

Solution
Normalise and apply
$$\mathbf u=\left\langle\tfrac1{\sqrt2},\tfrac1{\sqrt2}\right\rangle$$

$|\langle1,1\rangle|=\sqrt2$, so divide by $\sqrt2$

$$D_{\mathbf u}f=12\cdot\tfrac1{\sqrt2}+9\cdot\tfrac1{\sqrt2}=\tfrac{21}{\sqrt2}\approx14.85$$

$f_x a+f_y b$ with the unit components

Name the naive error
$$f_x+f_y=12+9=21$$

the tempting but wrong answer

$$\tfrac{21}{\sqrt2}\ne21$$

the naive value is $\sqrt2\approx1.41$ times too large

Answer $$D_{\mathbf u}f=\tfrac{21}{\sqrt2}=\tfrac{21\sqrt2}{2}\approx14.85$$
Check

Cross-check: $14.85\le|\nabla f|=15$, and it is slightly below the $14.4$ of the $\langle3,4\rangle$ direction, consistent with $\langle1,1\rangle$ pointing a little closer to the steepest direction $\langle12,9\rangle$.

The whole section exists to stop that factor of $\sqrt2$: always normalise first.

Checkpoint
§10.1 — a directional derivative in 30 seconds●●○○○

Thirty seconds. One function, one point, one direction — the core computation.

Given
  • $f(x,y)=xy+y^{2}$

  • point $(1,3)$

  • direction $\mathbf v=\langle4,-3\rangle$

Find
  1. (a) Find $D_{\mathbf u}f(1,3)$.

Hint 1/4

You want a rate in a named direction, so you will need the two partials at the point and a unit direction.

Hint 2/4

$D_{\mathbf u}f=f_x a+f_y b$ with $\mathbf u=\mathbf v/|\mathbf v|$.

Hint 3/4

$f_x=y=3$, $f_y=x+2y=7$ at $(1,3)$; $|\mathbf v|=5$ so $\mathbf u=\langle4/5,-3/5\rangle$.

Hint 4/4

$D_{\mathbf u}f=3\cdot\tfrac45+7\cdot(-\tfrac35)=\tfrac{12-21}{5}=-\tfrac95$.

Show solution
Assemble the pieces
$$f_x=y=3,\ f_y=x+2y=7$$

partials evaluated at $(1,3)$

$$\mathbf u=\left\langle\tfrac45,-\tfrac35\right\rangle$$

$|\langle4,-3\rangle|=5$

Combine
$$D_{\mathbf u}f=3\cdot\tfrac45+7\cdot(-\tfrac35)=-\tfrac95$$

$f_x a+f_y b$

Answer $$D_{\mathbf u}f(1,3)=-\tfrac95$$
Check

$|\nabla f(1,3)|=|\langle3,7\rangle|=\sqrt{58}\approx7.6$, and $-1.8$ lies between $-7.6$ and $7.6$, as every directional derivative must.

⚠ Using the raw direction vector without normalising

the direction is handed to you as a vector, so it is tempting to plug it straight in

wrong$$D_{\mathbf u}f=12\cdot3+9\cdot4=72$$
right$$D_{\mathbf u}f=12\cdot\tfrac35+9\cdot\tfrac45=14.4$$
⚠ Pairing the components with the wrong partials

the two numbers and the two partials look interchangeable once written down

wrong$$D_{\mathbf u}f=12\cdot\tfrac45+9\cdot\tfrac35=15$$
right$$D_{\mathbf u}f=f_x\,a+f_y\,b=12\cdot\tfrac35+9\cdot\tfrac45=14.4$$

10.2The gradient vector

Packs both partials into one vector so a single dot product delivers every directional derivative at a point.

The expression $f_x a+f_y b$ is a dot product waiting to happen. Collect the partials into one vector and the pattern becomes a single, reusable object.

DefinitionThe gradient, and the dot-product form
Conditions
  • $f$ has partial derivatives at the point

$$\boxed{\ \nabla f=\langle f_x,\,f_y\rangle,\qquad D_{\mathbf u}f=\nabla f\cdot\mathbf u\ }$$

The gradient is the single vector that stores both partials; dotting it with a unit direction returns the rate of change in that direction.

Looks like this, but is not

$\nabla f$ is a single number, a kind of slope.

It is a vector, $\langle f_x,f_y\rangle$. Its length is the steepest slope, but the gradient itself also stores a direction — the way uphill.

Gradient of $2x^{2}+y^{2}$ and the rate toward the origin

For $f(x,y)=2x^{2}+y^{2}$, find $\nabla f(1,1)$ and the rate of change at $(1,1)$ heading straight toward the origin.

Given
  • $f=2x^{2}+y^{2}$

  • point $(1,1)$

  • heading toward the origin

Find

$\nabla f(1,1)$ and $D_{\mathbf u}f(1,1)$ toward the origin

Solution
Build the gradient
$$\nabla f=\langle4x,\,2y\rangle$$

stack the two partials

$$\nabla f(1,1)=\langle4,2\rangle$$

substitute the point

Direction toward the origin, then dot
$$\mathbf u=\tfrac{\langle-1,-1\rangle}{\sqrt2}$$

from $(1,1)$ toward $(0,0)$ is $\langle-1,-1\rangle$, normalised

$$D_{\mathbf u}f=\langle4,2\rangle\cdot\tfrac{\langle-1,-1\rangle}{\sqrt2}=\tfrac{-6}{\sqrt2}=-3\sqrt2$$

dot product with the unit direction

Answer $$\nabla f(1,1)=\langle4,2\rangle,\quad D_{\mathbf u}f=-3\sqrt2\approx-4.24$$
Check

Toward the origin the surface $2x^{2}+y^{2}$ drops, so a negative rate is right; and $-3\sqrt2\approx-4.24\ge-|\nabla f|=-\sqrt{20}\approx-4.47$, within the allowed range.

One gradient answers every direction at this point — no need to recompute partials per direction.

A nearly flat direction for $x^{2}+xy+y^{2}$

For $f(x,y)=x^{2}+xy+y^{2}$, find $D_{\mathbf u}f(1,2)$ in the direction $\langle4,-3\rangle$.

Given
  • $f=x^{2}+xy+y^{2}$

  • point $(1,2)$

  • direction $\langle4,-3\rangle$

Find

$D_{\mathbf u}f(1,2)$

Solution
Gradient and unit direction
$$\nabla f=\langle2x+y,\,x+2y\rangle=\langle4,5\rangle$$

partials at $(1,2)$

$$\mathbf u=\left\langle\tfrac45,-\tfrac35\right\rangle$$

$|\langle4,-3\rangle|=5$

Dot
$$D_{\mathbf u}f=\langle4,5\rangle\cdot\left\langle\tfrac45,-\tfrac35\right\rangle=\tfrac{16-15}{5}=\tfrac15$$

multiply matching components and add

Answer $$D_{\mathbf u}f(1,2)=\tfrac15=0.2$$
Check

The tiny result is expected: $\nabla f\cdot\langle4,-3\rangle=16-15=1$ is small, so $\mathbf u$ is nearly along a level curve, where the rate is near zero.

Checkpoint
§10.2 — one gradient, any direction●●○○○

Thirty seconds. Build the vector once, then use it.

Given
  • $f(x,y)=x^{2}-y^{2}$

  • point $(3,1)$

  • direction $\langle1,2\rangle$

Find
  1. (a) Find $\nabla f(3,1)$ and then $D_{\mathbf u}f(3,1)$ in the direction $\langle1,2\rangle$.

Hint 1/4

First produce the gradient vector at the point; the directional derivative is then a single dot product.

Hint 2/4

$\nabla f=\langle f_x,f_y\rangle$ and $D_{\mathbf u}f=\nabla f\cdot\mathbf u$ with $\mathbf u$ of unit length.

Hint 3/4

$\nabla f=\langle2x,-2y\rangle=\langle6,-2\rangle$ at $(3,1)$; $|\langle1,2\rangle|=\sqrt5$ so $\mathbf u=\langle1,2\rangle/\sqrt5$.

Hint 4/4

$D_{\mathbf u}f=\dfrac{6\cdot1+(-2)\cdot2}{\sqrt5}=\dfrac{2}{\sqrt5}$.

Show solution
Gradient
$$\nabla f=\langle2x,-2y\rangle=\langle6,-2\rangle$$

partials at $(3,1)$

Directional derivative
$$\mathbf u=\tfrac{\langle1,2\rangle}{\sqrt5}$$

normalise

$$D_{\mathbf u}f=\tfrac{6-4}{\sqrt5}=\tfrac{2}{\sqrt5}$$

dot product

Answer $$\nabla f(3,1)=\langle6,-2\rangle,\ D_{\mathbf u}f=\tfrac{2}{\sqrt5}$$
Check

$|\nabla f|=\sqrt{40}\approx6.3$, and $0.89$ is well inside $[-6.3,6.3]$.

⚠ Writing the gradient as a product of the partials

the word gradient suggests a single slope, so the two partials get multiplied into one number

wrong$$\nabla f=f_x\cdot f_y$$
right$$\nabla f=\langle f_x,\,f_y\rangle$$
⚠ Dotting with the un-normalised direction

the dot-product form hides the unit-vector requirement

wrong$$D_{\mathbf u}f=\langle6,-2\rangle\cdot\langle1,2\rangle=2$$
right$$D_{\mathbf u}f=\langle6,-2\rangle\cdot\tfrac{\langle1,2\rangle}{\sqrt5}=\tfrac{2}{\sqrt5}$$

10.3The steepest direction and the length of the gradient

Names the single direction of fastest increase (the gradient) and its size (the gradient's length), and why level curves are the flat directions.

Write the dot product with its angle: $D_{\mathbf u}f=\nabla f\cdot\mathbf u=|\nabla f|\cos\theta$. The whole geometry of the hillside falls straight out of that one line.

TheoremFastest increase, and the level-curve angle
Conditions
  • $f$ is differentiable and $\nabla f(a,b)\ne\mathbf 0$

$$\boxed{\ \max_{\mathbf u}D_{\mathbf u}f=|\nabla f|\ \text{ at }\ \mathbf u=\tfrac{\nabla f}{|\nabla f|},\qquad D_{\mathbf u}f=0\ \text{when}\ \mathbf u\perp\nabla f\ }$$

Because $D_{\mathbf u}f=|\nabla f|\cos\theta$, the rate is largest ($+|\nabla f|$) when you walk along the gradient, most negative ($-|\nabla f|$) straight against it, and exactly zero when you walk at right angles to it — that is, along the level curve.

Looks like this, but is not

The steepest way up is always the diagonal $\langle1,1\rangle$.

Steepest is $\nabla f/|\nabla f|$, which changes from point to point. It equals $\langle1,1\rangle/\sqrt2$ only where $f_x=f_y$.

direction angle θrate = 10·cos θ

10.00 — steepest ascent

30°

8.66

45°

7.07

60°

5.00

90°

0 — along the level curve

120°

−5.00

180°

−10.00 — steepest descent

The rate follows $\cos\theta$: its full value straight up the gradient, exactly zero at $90^\circ$ where you move along the level curve, and the negative of the maximum when you head straight downhill.

Steepest ascent for $x^{2}+y^{2}$ at $(3,4)$

For $f(x,y)=x^{2}+y^{2}$, find the maximum rate of increase at $(3,4)$, the direction that achieves it, and a direction in which the rate is zero.

Given
  • $f=x^{2}+y^{2}$

  • point $(3,4)$

Find

the maximum rate, its direction, and a zero-rate direction

Solution
Gradient and its length
$$\nabla f=\langle2x,2y\rangle=\langle6,8\rangle$$

partials at $(3,4)$

$$|\nabla f|=\sqrt{36+64}=10$$

the maximum rate is the gradient's length

Directions
$$\mathbf u_{\uparrow}=\left\langle\tfrac35,\tfrac45\right\rangle$$

steepest ascent is $\nabla f/|\nabla f|$

$$\mathbf u_{0}=\left\langle-\tfrac45,\tfrac35\right\rangle$$

perpendicular to $\nabla f$: the rate there is zero

Answer $$\text{max rate }=10\ \text{along}\ \left\langle\tfrac35,\tfrac45\right\rangle;\ \text{rate }0\ \text{along}\ \left\langle-\tfrac45,\tfrac35\right\rangle$$
Check

Check the zero direction: $\langle6,8\rangle\cdot\langle-4,3\rangle/5=(-24+24)/5=0$, confirming it lies along the level curve.

The level curve of $x^{2}+y^{2}$ at $(3,4)$ is the circle of radius $5$; the gradient points radially outward, exactly perpendicular to it.

Fastest decrease of $x^{2}-2y^{2}$ at $(2,1)$

For $g(x,y)=x^{2}-2y^{2}$, find the direction of fastest decrease at $(2,1)$ and the rate in that direction.

Given
  • $g=x^{2}-2y^{2}$

  • point $(2,1)$

Find

the steepest-descent direction and its rate

Solution
Gradient
$$\nabla g=\langle2x,-4y\rangle=\langle4,-4\rangle$$

partials at $(2,1)$

$$|\nabla g|=\sqrt{32}=4\sqrt2$$

the fastest change has this size

Fastest decrease is opposite the gradient
$$\mathbf u=-\tfrac{\nabla g}{|\nabla g|}=\left\langle-\tfrac1{\sqrt2},\tfrac1{\sqrt2}\right\rangle$$

steepest descent points against $\nabla g$

$$D_{\mathbf u}g=-|\nabla g|=-4\sqrt2$$

the most negative possible rate

Answer $$\text{steepest descent along}\ \left\langle-\tfrac1{\sqrt2},\tfrac1{\sqrt2}\right\rangle,\ \text{rate}\ -4\sqrt2$$
Check

Sanity: the descent rate $-4\sqrt2\approx-5.66$ equals $-|\nabla g|$, the floor for any directional derivative here.

Checkpoint
§10.3 — how steep, and which way●●○○○

Thirty seconds. A plate is heated so its temperature is $T(x,y)=x^{2}+xy$. A bug sits at $(1,2)$.

Given
  • $T(x,y)=x^{2}+xy$

  • point $(1,2)$

Find
  1. (a) In which direction does the temperature climb fastest, and what is that fastest rate?

Hint 1/4

Fastest climb is a gradient question: you need $\nabla T$ at the point, its length, and its direction.

Hint 2/4

Max rate $=|\nabla T|$, achieved along $\nabla T/|\nabla T|$.

Hint 3/4

$\nabla T=\langle2x+y,\,x\rangle=\langle4,1\rangle$ at $(1,2)$; its length is $\sqrt{17}$.

Hint 4/4

Fastest climb is along $\langle4,1\rangle/\sqrt{17}$ at rate $\sqrt{17}$.

Show solution
Gradient and length
$$\nabla T=\langle2x+y,\,x\rangle=\langle4,1\rangle$$

partials at $(1,2)$

$$|\nabla T|=\sqrt{17}$$

this length is the fastest rate

Direction
$$\mathbf u=\tfrac{\langle4,1\rangle}{\sqrt{17}}$$

steepest ascent is the gradient, normalised

Answer $$\text{along }\tfrac{\langle4,1\rangle}{\sqrt{17}},\ \text{rate }\sqrt{17}$$
Check

The value $\sqrt{17}\approx4.12$ is positive, as a fastest-increase rate must be.

⚠ Reporting the fastest rate as the vector, not its length

the gradient carries both the direction and the size, so the two get conflated

wrong$$\text{max rate}=\langle6,8\rangle$$
right$$\text{max rate}=|\langle6,8\rangle|=10$$
⚠ Giving the steepest direction without normalising

the gradient already points the right way, so the unit step is skipped

wrong$$\mathbf u=\langle6,8\rangle$$
right$$\mathbf u=\tfrac{\langle6,8\rangle}{10}=\left\langle\tfrac35,\tfrac45\right\rangle$$

10.4Three variables: the gradient normal to a level surface

In space the gradient stands perpendicular to a level surface, which hands you the normal for the tangent plane at once.

Nothing above used the fact that there were only two variables. With three, the gradient gains a component — and the perpendicularity we just saw becomes perpendicularity to a whole surface.

TheoremThe gradient is normal to a level surface
Conditions
  • $F$ is differentiable at $P=(x_0,y_0,z_0)$

  • $P$ lies on the level surface $F=k$

  • $\nabla F(P)\ne\mathbf 0$

$$\boxed{\ \nabla F(P)\perp\text{ surface }F=k;\quad F_x(P)(x-x_0)+F_y(P)(y-y_0)+F_z(P)(z-z_0)=0\ }$$

At any point of a level surface the gradient sticks out perpendicular to the surface, so it is the normal vector of the tangent plane — and a plane is fixed by a point and a normal.

Looks like this, but is not

For a surface written $z=f(x,y)$, the normal is $\langle f_x,f_y\rangle$.

Rewrite it as $F=f(x,y)-z=0$. Then $\nabla F=\langle f_x,f_y,-1\rangle$: the $-1$ third component is the one everybody forgets.

A directional derivative of $xyz$ in space

For $f(x,y,z)=xyz$, find the rate of change at $(2,1,3)$ in the direction of $\mathbf v=\langle1,2,2\rangle$.

Given
  • $f=xyz$

  • point $(2,1,3)$

  • direction $\langle1,2,2\rangle$

Find

$D_{\mathbf u}f(2,1,3)$

Solution
Gradient in three variables
$$\nabla f=\langle yz,\,xz,\,xy\rangle$$

one partial per variable

$$\nabla f(2,1,3)=\langle3,6,2\rangle$$

substitute the point

Normalise and dot
$$|\mathbf v|=\sqrt{1+4+4}=3,\ \mathbf u=\left\langle\tfrac13,\tfrac23,\tfrac23\right\rangle$$

rescale to unit length

$$D_{\mathbf u}f=\tfrac{3\cdot1+6\cdot2+2\cdot2}{3}=\tfrac{19}{3}$$

$\nabla f\cdot\mathbf u$

Answer $$D_{\mathbf u}f(2,1,3)=\tfrac{19}{3}\approx6.33$$
Check

$|\nabla f|=\sqrt{9+36+4}=7$, and $\tfrac{19}{3}\approx6.33\le7$: still bounded by the gradient length, exactly as in two variables.

Tangent plane to the sphere $x^{2}+y^{2}+z^{2}=14$ at $(1,2,3)$

Find the tangent plane to the sphere $x^{2}+y^{2}+z^{2}=14$ at the point $(1,2,3)$.

Given
  • surface $F=x^{2}+y^{2}+z^{2}=14$

  • point $(1,2,3)$

Find

the equation of the tangent plane

Solution
Gradient as the normal
$$\nabla F=\langle2x,2y,2z\rangle$$

the gradient is normal to the level surface

$$\nabla F(1,2,3)=\langle2,4,6\rangle$$

substitute — this is the plane's normal vector

Point-normal plane
$$2(x-1)+4(y-2)+6(z-3)=0$$

normal $\cdot\,(\mathbf r-\mathbf r_0)=0$

$$x+2y+3z=14$$

divide by $2$ and collect constants

Answer $$x+2y+3z=14$$
Check

The distance from the origin to $x+2y+3z=14$ is $14/\sqrt{1+4+9}=14/\sqrt{14}=\sqrt{14}$, exactly the sphere's radius — so the plane just touches the sphere.

For any implicit surface the recipe is identical: gradient at the point is the normal, then write the point-normal plane.

Checkpoint
§10.4 — tangent plane to a paraboloid●●●○○

Thirty seconds. The paraboloid $z=x^{2}+y^{2}$ can be read as a level surface of $F=x^{2}+y^{2}-z$ at level $0$.

Given
  • surface $z=x^{2}+y^{2}$, i.e. $F=x^{2}+y^{2}-z=0$

  • point $(1,1,2)$

Find
  1. (a) Find the tangent plane at $(1,1,2)$.

Hint 1/4

You need a point (given) and a normal vector; the gradient of $F$ supplies the normal.

Hint 2/4

$\nabla F$ is normal to $F=0$, and the plane is $\nabla F(P)\cdot\langle x-x_0,y-y_0,z-z_0\rangle=0$.

Hint 3/4

$\nabla F=\langle2x,2y,-1\rangle=\langle2,2,-1\rangle$ at $(1,1,2)$; note the $-1$ from $-z$.

Hint 4/4

$2(x-1)+2(y-1)-(z-2)=0$, i.e. $2x+2y-z=2$.

Show solution
Normal from the gradient
$$\nabla F=\langle2x,2y,-1\rangle=\langle2,2,-1\rangle$$

the $-z$ contributes the $-1$

Assemble the plane
$$2(x-1)+2(y-1)-1(z-2)=0$$

point-normal form

$$2x+2y-z=2$$

expand and simplify

Answer $$2x+2y-z=2$$
Check

Check the point: $2(1)+2(1)-2=2$, so $(1,1,2)$ satisfies the plane, as it must.

⚠ Dropping the −1 when the surface is z = f(x,y)

written as $z=f$, the $z$ looks like it plays no role, so its $-1$ partial is lost

wrong$$\mathbf n=\langle f_x,f_y\rangle$$
right$$F=f-z\Rightarrow\mathbf n=\langle f_x,f_y,-1\rangle$$
⚠ Using the point as the normal vector

for a sphere the point and the gradient happen to be parallel, hiding the difference

wrong$$\mathbf n=\langle1,2,3\rangle$$
right$$\mathbf n=\nabla F(1,2,3)=\langle2,4,6\rangle$$

10.5Critical points: where a surface can peak or dip

Locates the only places a smooth surface can peak, dip, or pass — where both partials vanish at once.

To find the top of a hill you first find the places where the ground is momentarily flat in every direction. In gradient language, that is where $\nabla f=\mathbf 0$.

TheoremLocal extrema live at critical points
Conditions
  • $f$ has a local maximum or minimum at $(a,b)$

  • the first partials exist there

$$\boxed{\ \text{local max or min at }(a,b)\ \Rightarrow\ f_x(a,b)=0\ \text{ and }\ f_y(a,b)=0\ }$$

At a genuine peak or valley the surface is level in both the $x$- and the $y$-direction, so both partials vanish. Such a point — where the gradient is zero, or a partial fails to exist — is called a critical point.

Looks like this, but is not

If $\nabla f=\mathbf 0$ then $f$ has a maximum or a minimum there.

$f=x^{2}-y^{2}$ has $\nabla f=\mathbf 0$ at the origin, yet it climbs along the $x$-axis and falls along the $y$-axis. It is a saddle — neither.

The one critical point of $x^{2}+y^{2}-4x+6y+13$

Find all critical points of $f(x,y)=x^{2}+y^{2}-4x+6y+13$.

Given
  • $f=x^{2}+y^{2}-4x+6y+13$

Find

all critical points

Solution
Set both partials to zero
$$f_x=2x-4=0\Rightarrow x=2$$

solve the $x$-equation

$$f_y=2y+6=0\Rightarrow y=-3$$

solve the $y$-equation

One critical point
$$(a,b)=(2,-3)$$

the only simultaneous solution

Answer $$(2,-3)$$
Check

Complete the square: $f=(x-2)^{2}+(y+3)^{2}$, whose smallest value $0$ sits exactly at $(2,-3)$ — so this critical point is a genuine minimum.

For a sum of squares the critical point is obviously a minimum; in general we will need a test.

Two critical points of $x^{3}-3x+y^{2}$

Find all critical points of $f(x,y)=x^{3}-3x+y^{2}$.

Given
  • $f=x^{3}-3x+y^{2}$

Find

all critical points

Solution
Solve the system
$$f_x=3x^{2}-3=0\Rightarrow x=\pm1$$

a quadratic in $x$: two roots

$$f_y=2y=0\Rightarrow y=0$$

the $y$-equation is independent here

Pair the solutions
$$(1,0)\ \text{and}\ (-1,0)$$

each $x$-root with the single $y$-root

Answer $$(1,0)\ \text{and}\ (-1,0)$$
Check

Substitute back: $\nabla f(1,0)=\langle0,0\rangle$ and $\nabla f(-1,0)=\langle0,0\rangle$, so both are genuinely critical (their type waits for the next concept).

Two simultaneous equations, two solutions.

Checkpoint
§10.5 — a coupled critical-point system●●○○○

Thirty seconds. Here the two equations share both variables, so they must be solved together.

Given
  • $f(x,y)=x^{2}+xy+y^{2}-6y$

Find
  1. (a) Find every critical point of $f$.

Hint 1/4

Critical points solve $f_x=0$ and $f_y=0$ at the same time; write both equations first.

Hint 2/4

$f_x=2x+y$ and $f_y=x+2y-6$; set each to zero and solve the pair.

Hint 3/4

From $f_x=0$, $y=-2x$. Put it in $f_y=0$: $x+2(-2x)-6=0$, i.e. $-3x-6=0$.

Hint 4/4

So $x=-2$, $y=4$: the single critical point $(-2,4)$.

Show solution
Set up and substitute
$$f_x=2x+y=0\Rightarrow y=-2x$$

isolate $y$ from the cleaner equation

$$f_y=x+2y-6=0$$

the second equation

$$x+2(-2x)-6=0\Rightarrow -3x-6=0$$

substitute $y=-2x$

Solve
$$x=-2,\ y=4$$

back-substitute $y=-2x$

Answer $$(-2,4)$$
Check

Verify: $\nabla f(-2,4)=\langle2(-2)+4,\ -2+2(4)-6\rangle=\langle0,0\rangle$.

⚠ Pairing every x-root with every y-root of coupled equations

for a decoupled system that is correct, and the habit carries over wrongly

wrong$$x=-2\ \text{or}\ 1,\ y=4\ \text{or}\ 0\Rightarrow 4\ \text{points}$$
right$$\text{solve }f_x=0,f_y=0\ \text{simultaneously}$$
⚠ Forgetting points where a partial does not exist

the phrase set the gradient to zero suggests smooth points are the only kind

wrong$$\text{critical}\iff\nabla f=\mathbf 0$$
right$$\text{critical}\iff\nabla f=\mathbf 0\ \text{or}\ \nabla f\ \text{undefined}$$

10.6The Second Derivatives Test

Turns the sign of one number, the discriminant, into the verdict min, max, or saddle at each critical point.

A zero gradient does not say which kind of point we found. The curvature — the second derivatives — is what tells a valley from a pass.

TheoremThe Second Derivatives Test
Conditions
  • the second partials of $f$ are continuous near $(a,b)$

  • $(a,b)$ is a critical point: $\nabla f(a,b)=\mathbf 0$

$$\boxed{\ D=f_{xx}f_{yy}-(f_{xy})^{2};\ \ D>0,f_{xx}>0:\text{min};\ \ D>0,f_{xx}<0:\text{max};\ \ D<0:\text{saddle}\ }$$

Compute one number $D$. If it is positive the point is a genuine extremum and the sign of $f_{xx}$ says which — positive for a minimum, negative for a maximum; if $D$ is negative it is a saddle; if $D=0$ the test says nothing.

Looks like this, but is not

$D>0$ means a minimum.

$D>0$ only rules out a saddle. The sign of $f_{xx}$ then decides: a maximum also has $D>0$, with $f_{xx}<0$.

Classifying $(2,-1)$ for $x^{2}+xy+y^{2}-3x$

Classify the critical point $(2,-1)$ of $f(x,y)=x^{2}+xy+y^{2}-3x$.

Given
  • $f=x^{2}+xy+y^{2}-3x$

  • critical point $(2,-1)$

Find

the type of the critical point

Solution
Second partials
$$f_{xx}=2,\ f_{yy}=2,\ f_{xy}=1$$

differentiate the first partials again; $f_{xy}$ is the mixed one

Discriminant and verdict
$$D=f_{xx}f_{yy}-(f_{xy})^{2}=2\cdot2-1^{2}=3$$

$D>0$, so it is a genuine extremum

$$f_{xx}=2>0\Rightarrow\text{local minimum}$$

positive curvature means a valley

Answer $$\text{local minimum},\ f(2,-1)=-3$$
Check

Cross-check the value: $f(2,-1)=4-2+1-6=-3$, and $D>0$ with $f_{xx}>0$ is consistent with a bowl opening upward.

Three second partials, one discriminant.

A maximum: classifying $(1,2)$ for $-x^{2}-y^{2}+2x+4y$

Classify the critical point $(1,2)$ of $f(x,y)=-x^{2}-y^{2}+2x+4y$.

Given
  • $f=-x^{2}-y^{2}+2x+4y$

  • critical point $(1,2)$

Find

the type of the critical point

Solution
Second partials and discriminant
$$f_{xx}=-2,\ f_{yy}=-2,\ f_{xy}=0$$

the mixed partial is zero here

$$D=(-2)(-2)-0^{2}=4>0$$

positive, so not a saddle

Read the sign of the curvature
$$f_{xx}=-2<0\Rightarrow\text{local maximum}$$

negative curvature means a hilltop

Answer $$\text{local maximum},\ f(1,2)=5$$
Check

Complete the square: $f=5-(x-1)^{2}-(y-2)^{2}$, a dome peaking at $5$ over $(1,2)$ — matching $D>0,\ f_{xx}<0$.

Same test, opposite verdict: $D>0$ both times, and the sign of $f_{xx}$ is the whole difference.

Checkpoint
§10.6 — is it a saddle?●●○○○

Thirty seconds. One critical point, one discriminant.

Given
  • $f(x,y)=x^{2}-y^{2}+2x$

  • critical point $(-1,0)$

Find
  1. (a) Classify the critical point $(-1,0)$.

Hint 1/4

You need the three second partials and then the discriminant $D$ — do not stop at the gradient.

Hint 2/4

$D=f_{xx}f_{yy}-(f_{xy})^{2}$; the sign of $D$ comes first, before any talk of min or max.

Hint 3/4

$f_{xx}=2$, $f_{yy}=-2$, $f_{xy}=0$, so $D=(2)(-2)-0=-4$.

Hint 4/4

$D<0$, so the point is a saddle — the sign of $f_{xx}$ is irrelevant here.

Show solution
Discriminant
$$f_{xx}=2,\ f_{yy}=-2,\ f_{xy}=0$$

the three second partials

$$D=(2)(-2)-0^{2}=-4$$

assemble; negative

Answer $$D=-4<0\Rightarrow\text{saddle point}$$
Check

Independent view: along $x$ the term $x^{2}$ opens up, along $y$ the term $-y^{2}$ opens down — the up-and-down signature of a saddle.

⚠ Forgetting to square the mixed partial

the other two terms are plain products, so the square on $f_{xy}$ slips

wrong$$D=f_{xx}f_{yy}-f_{xy}$$
right$$D=f_{xx}f_{yy}-(f_{xy})^{2}$$
⚠ Judging min versus max before checking D>0

the rule f_xx>0 means minimum gets memorised without its condition

wrong$$f_{xx}>0\Rightarrow\text{minimum (always)}$$
right$$D>0\ \text{first};\ \text{then }f_{xx}>0\Rightarrow\text{minimum}$$

10.7Absolute maxima and minima on a closed region

Finds the true largest and smallest values on a closed region by comparing interior critical points against the whole boundary.

On a closed, bounded region a continuous function is guaranteed a largest and a smallest value. The catch: the winner may sit on the boundary, not at any interior peak.

MethodAbsolute extrema on a closed bounded region
Conditions
  • $f$ is continuous on a closed, bounded region $D$

$$\boxed{\ \text{abs.\ max/min}=\text{best/worst of }\{f\text{ at interior critical points}\}\cup\{f\text{ on the boundary}\}\ }$$

List the values of $f$ at every interior critical point, list the extreme values of $f$ along the boundary, put all these numbers together, and pick the largest and the smallest.

Looks like this, but is not

Just test the interior critical points and take the best.

On $[0,3]\times[0,2]$, the maximum of $x^{2}-2xy+2y$ is $9$ at the corner $(3,0)$, far above the interior critical value $1$ at $(1,1)$.

Absolute extrema of $x^{2}-2xy+2y$ on $[0,3]\times[0,2]$

Find the absolute maximum and minimum of $f(x,y)=x^{2}-2xy+2y$ on the closed rectangle $0\le x\le3,\ 0\le y\le2$.

Given
  • $f=x^{2}-2xy+2y$

  • rectangle $[0,3]\times[0,2]$

Find

the absolute maximum and minimum and where they occur

Solution
Interior critical points
$$f_x=2x-2y=0,\ f_y=-2x+2=0$$

set both partials to zero

$$x=1,\ y=1\Rightarrow f(1,1)=1$$

the one interior critical point and its value

Boundary: bottom and top edges
$$y=0:\ f=x^{2}\in[0,9]$$

on $0\le x\le3$: min $0$ at $(0,0)$, max $9$ at $(3,0)$

$$y=2:\ f=(x-2)^{2}\in[0,4]$$

min $0$ at $(2,2)$; endpoints give $4$ at $(0,2)$, $1$ at $(3,2)$

Boundary: left and right edges
$$x=0:\ f=2y\in[0,4]$$

min $0$ at $(0,0)$, max $4$ at $(0,2)$

$$x=3:\ f=9-4y\in[1,9]$$

max $9$ at $(3,0)$, min $1$ at $(3,2)$

Compare every candidate
$$\{1,\,0,\,9,\,0,\,4,\,1,\,4,\,1\}$$

interior value with all boundary extremes and corners

$$\max=9,\ \min=0$$

pick the largest and smallest

Answer $$\text{abs max }9\ \text{at }(3,0);\quad \text{abs min }0\ \text{at }(0,0)\ \text{and }(2,2)$$
Check

Spot-check two corners directly: $f(3,0)=9-0+0=9$ and $f(2,2)=4-8+4=0$, matching the max and a min.

The maximum was a corner and the interior critical point won nothing — which is exactly why the boundary is not optional.

Checkpoint
§10.7 — a linear function on a rectangle●●○○○

Thirty seconds. A linear function has no interior critical point, so where can the extremes hide?

Given
  • $f(x,y)=2x+y$

  • rectangle $0\le x\le2,\ 0\le y\le3$

Find
  1. (a) Find the absolute maximum and minimum of $f$ on the rectangle.

Hint 1/4

First check the interior: is $\nabla f$ ever zero? If not, the extremes must live on the boundary.

Hint 2/4

For a linear function on a rectangle the largest and smallest values sit at the corners; evaluate all four.

Hint 3/4

$\nabla f=\langle2,1\rangle\ne\mathbf 0$, so no interior critical point. Corners: $(0,0),(2,0),(0,3),(2,3)$.

Hint 4/4

$f=0,4,3,7$ at those corners, so max $7$, min $0$.

Show solution
Interior
$$\nabla f=\langle2,1\rangle\ne\mathbf 0$$

never zero, so nothing in the interior

Corners
$$f(0,0)=0,\ f(2,0)=4,\ f(0,3)=3,\ f(2,3)=7$$

a linear function is extremal at corners

Answer $$\text{max }7\text{ at }(2,3),\ \text{min }0\text{ at }(0,0)$$
Check

Because $f$ increases in both $x$ and $y$, the corner with both largest is the max and both smallest is the min — consistent with the numbers.

⚠ Testing only the interior critical points

the earlier concepts were all about interior critical points, so the boundary is forgotten

wrong$$\text{abs max}=f(1,1)=1$$
right$$\text{abs max}=\max\{\text{interior},\ \text{boundary}\}=9$$
⚠ Scanning edges but skipping the corners

each edge is treated as an open segment, so the shared endpoints drop out

wrong$$\text{check edges only}$$
right$$\text{check edges }and\ \text{their endpoints (corners)}$$
Find and classify the critical points

any question that asks for local maxima, minima, or saddle points of a function of two variables

  1. Find critical points

    Solve $f_x=0$ and $f_y=0$ together. Watch for coupled equations.

  2. Second partials

    Compute $f_{xx}$, $f_{yy}$, and the mixed $f_{xy}$.

  3. Discriminant

    Form $D=f_{xx}f_{yy}-(f_{xy})^{2}$ — square the mixed term.

  4. Read the verdict

    $D>0$: min if $f_{xx}>0$, max if $f_{xx}<0$. $D<0$: saddle. $D=0$: no verdict.

Where it goes wrong
  • forgetting to square $f_{xy}$

  • reading min/max off $f_{xx}$ before confirming $D>0$

  • solving $f_x=0$ and $f_y=0$ separately for a coupled system

Absolute extrema on a closed bounded region

a largest or smallest value is asked over a closed region such as a rectangle or disk

  1. Interior

    Find interior critical points and evaluate $f$ at each.

  2. Boundary

    On each boundary piece reduce $f$ to one variable and find its extremes.

  3. Corners

    Include the endpoints where boundary pieces meet.

  4. Compare

    The largest value is the absolute max; the smallest is the absolute min.

Where it goes wrong
  • stopping at the interior

  • dropping the corners

  • not reducing each edge to a single variable

$(1,1)$ for $x^{4}+y^{4}-4xy+1$: a minimum

Classify the critical point $(1,1)$ of $f(x,y)=x^{4}+y^{4}-4xy+1$.

Given
  • $f=x^{4}+y^{4}-4xy+1$

  • critical point $(1,1)$

Find

the type

Solution
Discriminant at (1,1)
$$f_{xx}=12x^{2},\ f_{yy}=12y^{2},\ f_{xy}=-4$$

second partials in general

$$D=12\cdot12-(-4)^{2}=128>0$$

at $(1,1)$; positive, so an extremum

$$f_{xx}=12>0\Rightarrow\text{min}$$

positive curvature

Answer $$\text{local minimum},\ f(1,1)=-1$$
Check

$f(1,1)=1+1-4+1=-1$; a nearby value $f(1.1,1.1)\approx-0.98>-1$ confirms a dip.

$(0,0)$ for the same $f$: a saddle

Classify the critical point $(0,0)$ of the same $f(x,y)=x^{4}+y^{4}-4xy+1$.

Given
  • $f=x^{4}+y^{4}-4xy+1$

  • critical point $(0,0)$

Find

the type

Solution
Discriminant at (0,0)
$$f_{xx}=0,\ f_{yy}=0,\ f_{xy}=-4$$

at the origin the pure fourth-power curvatures vanish

$$D=0\cdot0-(-4)^{2}=-16<0$$

negative, so a saddle

Answer $$\text{saddle point at }(0,0)$$
Check

Along $y=x$, $f=2x^{4}-4x^{2}+1$ dips below $1$; along $y=-x$, $f=2x^{4}+4x^{2}+1$ rises above $1$ — up one way, down the other.

Both points have $\nabla f=\mathbf 0$ and share the same $f_{xy}=-4$; only the pure second partials differ, and that flips the sign of $D$.

How to tell them apart

Compute $D$: positive at $(1,1)$ gives an extremum, negative at $(0,0)$ gives a saddle. The zero gradient alone cannot tell them apart.

Scaffolding comes off
The common skeleton
  1. Find. Solve $f_x=0$ and $f_y=0$ together to locate every critical point.

  2. Curvature. Compute $f_{xx}$, $f_{yy}$, and the mixed $f_{xy}$.

  3. Discriminant. Form $D=f_{xx}f_{yy}-(f_{xy})^{2}$, squaring the mixed term.

  4. Verdict. $D>0$ with $f_{xx}>0$ is a minimum, with $f_{xx}<0$ a maximum; $D<0$ is a saddle; $D=0$ is no verdict.

1 · fully worked

Classify the critical point of $x^{2}+y^{2}+xy-6x$

Find and classify the critical point of $f(x,y)=x^{2}+y^{2}+xy-6x$.

Given
  • $f=x^{2}+y^{2}+xy-6x$

Find

the critical point and its type

Solution
Find the critical point
$$f_x=2x+y-6=0,\ f_y=2y+x=0$$

set both partials to zero

$$x=-2y\Rightarrow 2(-2y)+y-6=0$$

substitute $x=-2y$ from $f_y=0$

$$y=-2,\ x=4$$

solve, then back-substitute

Classify
$$f_{xx}=2,\ f_{yy}=2,\ f_{xy}=1$$

second partials

$$D=2\cdot2-1^{2}=3>0,\ f_{xx}>0$$

positive discriminant, positive curvature

$$\Rightarrow\text{local minimum}$$

a valley

Answer $$\text{local minimum at }(4,-2),\ f=-12$$
Check

$f(4,-2)=16+4-8-24=-12$; $D>0$ with $f_{xx}>0$ agrees with a minimum.

2 · you write the reasoning

Classify the critical point of $f(x,y)=x^{2}+y^{2}-6x+2y+5$. The steps are filled in; you supply the reason for each before revealing ours. (Easier than rung 1: the equations are already uncoupled.)

  1. $f_x=2x-6=0,\quad f_y=2y+2=0$

    reasoning

    Critical points need both partials zero; here each equation involves only one variable.

  2. $x=3,\quad y=-1$

    reasoning

    The two equations are independent, so each solves on its own — no substitution needed.

  3. $f_{xx}=2,\ f_{yy}=2,\ f_{xy}=0$

    reasoning

    Differentiate the first partials again; the mixed partial is zero because there is no $xy$ term.

  4. $D=2\cdot2-0^{2}=4$

    reasoning

    Assemble the discriminant; $D=4>0$ rules out a saddle.

  5. $f_{xx}>0\Rightarrow$ local minimum

    reasoning

    With $D>0$ and $f_{xx}>0$ the surface curves up both ways: a local minimum, value $f(3,-1)=-5$.

3 · find the buried error

A student classifies the critical point $(2,-1)$ of $f(x,y)=x^{2}+4xy+y^{2}-6y$. Exactly two steps are wrong. Find them. (Harder than rung 2: a nonzero mixed partial, and the true answer is not a minimum.)

  1. Step 1. $f_x=2x+4y=0$ and $f_y=4x+2y-6=0$ give the critical point $(2,-1)$.

  2. Step 2. $f_{xx}=2,\ f_{yy}=2,\ f_{xy}=4$, so $D=2\cdot2-4=0$: the test is inconclusive.

  3. Step 3. Since the test is inconclusive and $f_{xx}=2>0$, the point is a local minimum.

the two buried errors (2)
⚠ step 2

the mixed partial is not squared: $D$ should be $f_{xx}f_{yy}-(f_{xy})^{2}=2\cdot2-4^{2}=-12$, not $0$.

the first two terms of $D$ are plain products, so the square on the third term is the easy one to drop

right

$D=2\cdot2-(4)^{2}=4-16=-12<0$.

⚠ step 3

a verdict is drawn from an inconclusive test, and it leans on $f_{xx}$ — which is only allowed once $D>0$ is known. With the correct $D=-12<0$ the point is a saddle.

the rule f_xx>0 means minimum is memorised without its precondition $D>0$

right

$D<0$ forces a saddle point, regardless of $f_{xx}$.

4 · the bare problem
§10.6 — classify, no scaffolding●●●○○

No steps this time. Find the critical point and classify it.

Given
  • $f(x,y)=x^{2}+2y^{2}+2xy-6x-10y$

Find
  1. (a) Find and classify the critical point of $f$.

Hint 1/4

Two tasks: locate the critical point by solving $f_x=0,f_y=0$, then run the discriminant.

Hint 2/4

Critical point from $\nabla f=\mathbf 0$; classify with $D=f_{xx}f_{yy}-(f_{xy})^{2}$.

Hint 3/4

$f_x=2x+2y-6=0$ and $f_y=4y+2x-10=0$ give $(1,2)$; $f_{xx}=2,f_{yy}=4,f_{xy}=2$.

Hint 4/4

$D=2\cdot4-2^{2}=4>0$ and $f_{xx}>0$, so $(1,2)$ is a local minimum.

Show solution
Critical point
$$f_x=2x+2y-6=0\Rightarrow x+y=3$$

first partial

$$f_y=2x+4y-10=0\Rightarrow x+2y=5$$

second partial

$$y=2,\ x=1$$

subtract the equations

Classify
$$f_{xx}=2,\ f_{yy}=4,\ f_{xy}=2$$

second partials

$$D=2\cdot4-2^{2}=4>0,\ f_{xx}>0$$

minimum

Answer $$\text{local minimum at }(1,2),\ f=-13$$
Check

$f(1,2)=1+8+4-6-20=-13$, and $D>0,f_{xx}>0$ matches a minimum.

Full exam-style question

Find and classify every critical point of $x^{4}+y^{4}-4xy+1$exam format

Find all critical points of $f(x,y)=x^{4}+y^{4}-4xy+1$ and classify each one.

Given
  • $f(x,y)=x^{4}+y^{4}-4xy+1$

Find

every critical point and its type

Solution
Set up the critical-point system
$$f_x=4x^{3}-4y=0\Rightarrow y=x^{3}$$

solve the first partial for $y$

$$f_y=4y^{3}-4x=0\Rightarrow x=y^{3}$$

the second partial gives $x$ in terms of $y$

Solve the coupled system
$$x=(x^{3})^{3}=x^{9}\Rightarrow x^{9}-x=0$$

substitute $y=x^{3}$ into $x=y^{3}$

$$x(x^{8}-1)=0\Rightarrow x=0,\pm1$$

real roots only; then $y=x^{3}$

$$(0,0),\ (1,1),\ (-1,-1)$$

the three critical points

Second partials and the discriminant
$$f_{xx}=12x^{2},\ f_{yy}=12y^{2},\ f_{xy}=-4$$

used at every point

$$D=144x^{2}y^{2}-16$$

$D=f_{xx}f_{yy}-(f_{xy})^{2}$

Classify each point
$$(0,0):\ D=-16<0\Rightarrow\text{saddle}$$

negative discriminant

$$(1,1):\ D=128>0,\ f_{xx}=12>0\Rightarrow\text{min}$$

$f(1,1)=-1$

$$(-1,-1):\ D=128>0,\ f_{xx}=12>0\Rightarrow\text{min}$$

$f(-1,-1)=-1$

Answer $$\text{saddle at }(0,0);\ \text{local minima at }(1,1)\text{ and }(-1,-1),\ \text{both }f=-1$$
Check

Symmetry check: $f(x,y)=f(-x,-y)$, so $(1,1)$ and $(-1,-1)$ must share a type and value — and both came out as minima with $f=-1$.

Three critical points, one discriminant formula reused three times.

When the critical-point equations are coupled, substitute one into the other and collect a single polynomial — here $x^{9}-x=0$.

Practice

A · concept 3 questions
1§10.5 — zero gradient is not a verdict●●○○○

A True/False on the trap that catches the most students. Decide, then give the one-word reason.

Given
  • a point where $\nabla f(a,b)=\mathbf 0$

Find
  1. (a) True or False: if $\nabla f(a,b)=\mathbf 0$ then $f$ must have a local maximum or minimum at $(a,b)$.

Hint 1/4

Ask whether a flat spot is always a peak or a valley — or whether something else can be flat too.

Hint 2/4

Recall the saddle: flat in every direction, yet neither a max nor a min.

Hint 3/4

$f=x^{2}-y^{2}$ has $\nabla f=\mathbf 0$ at the origin, climbing along $x$ and falling along $y$.

Hint 4/4

So the statement is False — a saddle is the counterexample.

Show solution
Counterexample
$$f=x^{2}-y^{2},\ \nabla f=\langle2x,-2y\rangle=\mathbf 0\text{ at }(0,0)$$

the origin is critical

$$f(x,0)=x^{2}\ \text{up},\ f(0,y)=-y^{2}\ \text{down}$$

opposite behaviour: a saddle

Answer $$\text{False — the origin of }x^{2}-y^{2}\text{ is a saddle}$$
Check

The Second Derivatives Test agrees: $D=(2)(-2)-0=-4<0$.

2§10.3 — the gradient and the level curve●●○○○

A True/False about the single most important picture in the section.

Given
  • the level curve of $f$ through a point $(a,b)$

Find
  1. (a) True or False: at $(a,b)$ the gradient $\nabla f$ points along the level curve through that point.

Hint 1/4

Think about the direction in which $f$ does not change versus the direction of fastest change.

Hint 2/4

Along a level curve $f$ is constant, so the directional derivative there is zero.

Hint 3/4

But $D_{\mathbf u}f=\nabla f\cdot\mathbf u=0$ means $\mathbf u\perp\nabla f$: the curve is perpendicular to the gradient.

Hint 4/4

So the statement is False — the gradient is normal to the level curve, not along it.

Show solution
Zero rate along the curve
$$D_{\mathbf u}f=\nabla f\cdot\mathbf u=0\ \text{along the curve}$$

$f$ does not change there

$$\Rightarrow\mathbf u\perp\nabla f$$

a zero dot product means perpendicular

Answer $$\text{False — }\nabla f\text{ is normal to the level curve}$$
Check

On $x^{2}+y^{2}=25$ at $(3,4)$, $\nabla f=\langle6,8\rangle$ is radial, hence perpendicular to the circle.

3§10.3 — which way is steepest●●○○○

One point, one gradient, four opinions about the steepest direction. Only one survives.

Given
  • a differentiable $f$ with $\nabla f(a,b)\ne\mathbf 0$

Find
  1. (a) The directional derivative $D_{\mathbf u}f(a,b)$ is largest when the unit vector $\mathbf u$ points:

Hint 1/4

Write the rate as $|\nabla f|\cos\theta$ and ask which $\theta$ makes it biggest.

Hint 2/4

$\cos\theta$ is maximised at $\theta=0$, i.e. $\mathbf u$ parallel to $\nabla f$.

Hint 3/4

At $\theta=0$ the rate is $+|\nabla f|$; perpendicular gives $0$, opposite gives $-|\nabla f|$.

Hint 4/4

So the steepest ascent is along $\nabla f$ itself.

Show solution
Maximise the cosine
$$D_{\mathbf u}f=|\nabla f|\cos\theta\le|\nabla f|$$

since $\cos\theta\le1$

$$\text{equality at }\theta=0$$

$\mathbf u$ parallel to $\nabla f$

Answer $$\mathbf u=\tfrac{\nabla f}{|\nabla f|}$$
Check

The perpendicular choice gives $0$ and the opposite gives $-|\nabla f|$, both smaller.

B · computation 5 questions
1§10.1 — a directional derivative●●○○○

A clean directional-derivative computation, the bread-and-butter of the section.

Given
  • $f(x,y)=x^{3}-xy^{2}$

  • point $(2,1)$

  • direction $\mathbf v=\langle3,-4\rangle$

Find
  1. (a) Find $D_{\mathbf u}f(2,1)$.

Hint 1/4

You will need the two partials at the point and a unit direction.

Hint 2/4

$D_{\mathbf u}f=f_x a+f_y b$ with $\mathbf u=\mathbf v/|\mathbf v|$.

Hint 3/4

$f_x=3x^{2}-y^{2}=11$, $f_y=-2xy=-4$ at $(2,1)$; $|\mathbf v|=5$ so $\mathbf u=\langle3/5,-4/5\rangle$.

Hint 4/4

$D_{\mathbf u}f=11\cdot\tfrac35+(-4)\cdot(-\tfrac45)=\tfrac{33+16}{5}=\tfrac{49}{5}$.

Show solution
Pieces
$$f_x=3x^{2}-y^{2}=11,\ f_y=-2xy=-4$$

partials at $(2,1)$

$$\mathbf u=\langle3/5,-4/5\rangle$$

$|\langle3,-4\rangle|=5$

Combine
$$D_{\mathbf u}f=11\cdot\tfrac35+(-4)(-\tfrac45)=\tfrac{49}{5}$$

$f_x a+f_y b$

Answer $$D_{\mathbf u}f(2,1)=\tfrac{49}{5}$$
Check

$|\nabla f|=|\langle11,-4\rangle|=\sqrt{137}\approx11.7$, and $9.8\le11.7$.

2§10.3 — gradient and maximum rate●●●○○

Assemble the gradient, then read off the fastest rate and its direction.

Given
  • $f(x,y)=x^{2}y+y^{3}$

  • point $(1,2)$

Find
  1. (a) Find $\nabla f(1,2)$, the maximum rate of increase there, and the direction achieving it.

Hint 1/4

The maximum rate is a length and its direction is the normalised gradient.

Hint 2/4

$\nabla f=\langle f_x,f_y\rangle$; max rate $=|\nabla f|$ along $\nabla f/|\nabla f|$.

Hint 3/4

$f_x=2xy=4$, $f_y=x^{2}+3y^{2}=13$ at $(1,2)$, so $\nabla f=\langle4,13\rangle$.

Hint 4/4

Max rate $=\sqrt{16+169}=\sqrt{185}$ along $\langle4,13\rangle/\sqrt{185}$.

Show solution
Gradient and length
$$\nabla f=\langle2xy,\ x^{2}+3y^{2}\rangle=\langle4,13\rangle$$

partials at $(1,2)$

$$|\nabla f|=\sqrt{185}$$

the maximum rate

Answer $$\nabla f=\langle4,13\rangle,\ \text{max rate}=\sqrt{185}$$
Check

$\sqrt{185}\approx13.6>0$, as a maximum rate of increase must be.

3§10.5 — locate the critical point●●○○○

Find where the surface is flat in both directions.

Given
  • $f(x,y)=x^{2}+y^{2}-2x-6y+14$

Find
  1. (a) Find all critical points of $f$.

Hint 1/4

Set both first partials to zero and solve.

Hint 2/4

$f_x=2x-2$ and $f_y=2y-6$; each is a single-variable equation here.

Hint 3/4

$2x-2=0\Rightarrow x=1$ and $2y-6=0\Rightarrow y=3$.

Hint 4/4

The only critical point is $(1,3)$.

Show solution
Solve
$$f_x=2x-2=0\Rightarrow x=1$$

the $x$-equation

$$f_y=2y-6=0\Rightarrow y=3$$

the $y$-equation

Answer $$(1,3)$$
Check

$f=(x-1)^{2}+(y-3)^{2}+4$, so $(1,3)$ is the low point, value $4$.

4§10.6 — find and classify both critical points●●●○○

Two critical points, two verdicts — run the test on each.

Given
  • $f(x,y)=x^{3}-3x+y^{2}+2y$

Find
  1. (a) Find every critical point of $f$ and classify each with the Second Derivatives Test.

Hint 1/4

First locate the critical points; then compute $D$ separately at each.

Hint 2/4

$\nabla f=\mathbf 0$ gives the points; $D=f_{xx}f_{yy}-(f_{xy})^{2}$ classifies them.

Hint 3/4

$f_x=3x^{2}-3=0\Rightarrow x=\pm1$, $f_y=2y+2=0\Rightarrow y=-1$; and $f_{xx}=6x,f_{yy}=2,f_{xy}=0$ so $D=12x$.

Hint 4/4

At $(1,-1)$: $D=12>0,f_{xx}>0$, a minimum. At $(-1,-1)$: $D=-12<0$, a saddle.

Show solution
Critical points
$$f_x=3x^{2}-3=0\Rightarrow x=\pm1$$

quadratic in $x$

$$f_y=2y+2=0\Rightarrow y=-1$$

independent $y$-equation

$$(1,-1),\ (-1,-1)$$

pair them

Classify with D = 12x
$$f_{xx}=6x,\ f_{yy}=2,\ f_{xy}=0\Rightarrow D=12x$$

discriminant depends on $x$

$$(1,-1):D=12>0,f_{xx}>0\Rightarrow\text{min}$$

positive both

$$(-1,-1):D=-12<0\Rightarrow\text{saddle}$$

negative discriminant

Answer $$(1,-1)\ \text{min},\ (-1,-1)\ \text{saddle}$$
Check

Along $x$, the cubic $x^{3}-3x$ has its local min at $x=1$ and local max at $x=-1$; adding the upward $y^{2}+2y$ turns the second into a saddle — consistent.

5§10.4 — tangent plane to an ellipsoid●●●○○

A tangent plane straight from the gradient normal.

Given
  • surface $x^{2}+2y^{2}+3z^{2}=6$

  • point $(1,1,1)$

Find
  1. (a) Find the tangent plane to the surface at $(1,1,1)$.

Hint 1/4

The gradient of $F=x^{2}+2y^{2}+3z^{2}$ is the normal you need.

Hint 2/4

Plane: $\nabla F(P)\cdot\langle x-x_0,y-y_0,z-z_0\rangle=0$.

Hint 3/4

$\nabla F=\langle2x,4y,6z\rangle=\langle2,4,6\rangle$ at $(1,1,1)$.

Hint 4/4

$2(x-1)+4(y-1)+6(z-1)=0$, i.e. $x+2y+3z=6$.

Show solution
Normal and plane
$$\nabla F=\langle2x,4y,6z\rangle=\langle2,4,6\rangle$$

normal at the point

$$2(x-1)+4(y-1)+6(z-1)=0$$

point-normal form

$$x+2y+3z=6$$

divide by $2$

Answer $$x+2y+3z=6$$
Check

Point check: $1+2(1)+3(1)=6$, so $(1,1,1)$ lies on the plane.

C · exam level 3 questions
1§10.6 — classify the origin●●●○○

A short classification with four verdicts on offer. Work the test; do not guess from the shape.

Given
  • $f(x,y)=x^{2}+xy+y^{2}$

  • critical point $(0,0)$

Find
  1. (a) The origin is:

Hint 1/4

Confirm the origin is critical, then compute the discriminant before naming a type.

Hint 2/4

$D=f_{xx}f_{yy}-(f_{xy})^{2}$; only after its sign do you look at $f_{xx}$.

Hint 3/4

$f_{xx}=2,\ f_{yy}=2,\ f_{xy}=1$, so $D=4-1=3$.

Hint 4/4

$D>0$ and $f_{xx}>0$, so the origin is a local minimum.

Show solution
Test
$$f_{xx}=2,\ f_{yy}=2,\ f_{xy}=1$$

second partials (constants here)

$$D=2\cdot2-1^{2}=3>0,\ f_{xx}>0$$

positive discriminant, positive curvature

Answer $$\text{local minimum}$$
Check

$f=\left(x+\tfrac y2\right)^{2}+\tfrac34 y^{2}\ge0$ with equality only at the origin — a genuine minimum.

2§10.7 — absolute extrema on a square●●●●○

A full closed-region problem: interior plus boundary, then compare.

Given
  • $f(x,y)=x^{2}+xy+y^{2}$

  • square $-1\le x\le1,\ -1\le y\le1$

Find
  1. (a) Find the absolute maximum and minimum of $f$ on the square and where they occur.

Hint 1/4

Do the interior first (critical points), then each of the four edges as a one-variable problem, then the corners.

Hint 2/4

Interior: $\nabla f=\mathbf 0$. Boundary: substitute the fixed coordinate and optimise in the other.

Hint 3/4

Interior gives $(0,0)$, $f=0$. On $x=1$: $f=1+y+y^{2}$ on $[-1,1]$, largest $3$ at $y=1$. Symmetry handles the rest.

Hint 4/4

Absolute min $0$ at $(0,0)$; absolute max $3$ at $(1,1)$ and $(-1,-1)$.

Show solution
Interior
$$f_x=2x+y=0,\ f_y=x+2y=0\Rightarrow(0,0)$$

only interior critical point

$$f(0,0)=0$$

its value

Boundary edge x = 1 (others by symmetry)
$$f(1,y)=1+y+y^{2}$$

restrict to the edge

$$\text{on }[-1,1]:\ \min=\tfrac34\ (y=-\tfrac12),\ \max=3\ (y=1)$$

a one-variable optimisation

Compare all candidates
$$\{0,\ 3\ \text{at}\ (1,1),(-1,-1),\ 1\ \text{at}\ (1,-1),(-1,1)\}$$

using $f(x,y)=f(-x,-y)=f(y,x)$

$$\max=3,\ \min=0$$

pick largest and smallest

Answer $$\min=0\ \text{at}\ (0,0),\ \max=3\ \text{at}\ (1,1),(-1,-1)$$
Check

Direct checks: $f(1,1)=1+1+1=3$ and $f(0,0)=0$, matching the max and the min.

3§10.3 — fastest cooling on a plate●●●○○

An interpretation question: a heated plate, and a bug that wants to cool off fastest.

Given
  • temperature $T(x,y)=x^{2}+xy+y^{2}$

  • bug at $(2,1)$

Find
  1. (a) In which direction should the bug move to cool fastest, and how fast does the temperature drop per unit distance?

Hint 1/4

Fastest cooling is a steepest-descent question; it is the gradient turned around.

Hint 2/4

Fastest decrease is along $-\nabla T$, at rate $|\nabla T|$.

Hint 3/4

$\nabla T=\langle2x+y,\ x+2y\rangle=\langle5,4\rangle$ at $(2,1)$; $|\nabla T|=\sqrt{41}$.

Hint 4/4

Move along $-\langle5,4\rangle/\sqrt{41}$; the drop is $\sqrt{41}$ per unit distance.

Show solution
Gradient
$$\nabla T=\langle2x+y,\ x+2y\rangle=\langle5,4\rangle$$

partials at $(2,1)$

$$|\nabla T|=\sqrt{41}$$

size of the fastest change

Fastest cooling is opposite the gradient
$$\mathbf u=\tfrac{-\langle5,4\rangle}{\sqrt{41}}$$

steepest descent points against $\nabla T$

$$\text{rate of drop}=|\nabla T|=\sqrt{41}$$

the magnitude is the same either way

Answer $$\text{along }\tfrac{-\langle5,4\rangle}{\sqrt{41}},\ \text{drop }\sqrt{41}$$
Check

Moving the opposite way, along $+\nabla T$, would heat the bug at the same rate $\sqrt{41}$ — the sign is the only difference.

D · interleaved 3 questions
1§10.2 — a rate along a path●●●○○

This mixes the gradient with the chain rule for a moving point from the previous section. The type is for you to spot.

Given
  • $z=x^{2}y$

  • $x=t^{2}$, $y=t^{3}$

  • evaluate at $t=1$

Find
  1. (a) Find $\dfrac{dz}{dt}$ at $t=1$.

Hint 1/4

You are tracking $z$ along a curve, so the rate is the gradient dotted with the velocity of the point.

Hint 2/4

$\dfrac{dz}{dt}=\nabla z\cdot\langle x'(t),y'(t)\rangle$.

Hint 3/4

At $t=1$: $x=1,y=1$, $\nabla z=\langle2xy,x^{2}\rangle=\langle2,1\rangle$; velocity $\langle2t,3t^{2}\rangle=\langle2,3\rangle$.

Hint 4/4

$\dfrac{dz}{dt}=\langle2,1\rangle\cdot\langle2,3\rangle=4+3=7$.

Show solution
Assemble at t = 1
$$\nabla z=\langle2xy,x^{2}\rangle=\langle2,1\rangle$$

at $x=1,y=1$

$$\langle x',y'\rangle=\langle2t,3t^{2}\rangle=\langle2,3\rangle$$

velocity at $t=1$

Dot
$$\tfrac{dz}{dt}=\langle2,1\rangle\cdot\langle2,3\rangle=7$$

chain rule as $\nabla z\cdot\mathbf r'$

Answer $$\tfrac{dz}{dt}\big|_{t=1}=7$$
Check

Direct check: $z=(t^{2})^{2}(t^{3})=t^{7}$, so $dz/dt=7t^{6}=7$ at $t=1$.

2§10.4 — one tangent plane, two methods●●●○○

Interleaves the tangent plane to a graph (previous section) with the gradient-normal method here. They must agree.

Given
  • surface $z=x^{2}+y^{2}$

  • point $(1,1,2)$

Find
  1. (a) Find the tangent plane at $(1,1,2)$, and confirm the graph method and the level-surface method give the same plane.

Hint 1/4

Method one treats $z=f(x,y)$ as a graph; method two treats $F=f-z=0$ as a level surface.

Hint 2/4

Graph: $z=f(a,b)+f_x(x-a)+f_y(y-b)$. Level surface: $\nabla F\cdot\langle x-a,y-b,z-c\rangle=0$.

Hint 3/4

Graph: $z=2+2(x-1)+2(y-1)$. Level: $\nabla F=\langle2,2,-1\rangle$, giving $2(x-1)+2(y-1)-(z-2)=0$.

Hint 4/4

Both simplify to $2x+2y-z=2$.

Show solution
Graph method
$$z=2+2(x-1)+2(y-1)$$

$f_x=f_y=2$ at $(1,1)$

$$2x+2y-z=2$$

simplify

Level-surface method
$$F=x^{2}+y^{2}-z,\ \nabla F=\langle2,2,-1\rangle$$

gradient normal

$$2(x-1)+2(y-1)-(z-2)=0\Rightarrow 2x+2y-z=2$$

same plane

Answer $$2x+2y-z=2$$
Check

They match because $\nabla F=\langle f_x,f_y,-1\rangle$ is just the graph slopes with the $-1$ that the graph form hides.

3§10.1 — a directional derivative from a table●●●○○

You are given partials in a table, as in the chain-rule section, and an angle instead of a vector.

Given
  • $f_x(1,2)=3$

  • $f_y(1,2)=-4$

  • direction at angle $120^\circ$ from the positive $x$-axis

Find
  1. (a) Find $D_{\mathbf u}f(1,2)$ for the unit vector at $120^\circ$.

Hint 1/4

An angle already gives a unit vector; no normalising needed. Read off its components first.

Hint 2/4

$\mathbf u=\langle\cos120^\circ,\sin120^\circ\rangle$, then $D_{\mathbf u}f=f_x a+f_y b$.

Hint 3/4

$\mathbf u=\langle-\tfrac12,\tfrac{\sqrt3}{2}\rangle$; the partials are $f_x=3,\ f_y=-4$.

Hint 4/4

$D_{\mathbf u}f=3(-\tfrac12)+(-4)\tfrac{\sqrt3}{2}=-\tfrac32-2\sqrt3$.

Show solution
Unit vector from the angle
$$\mathbf u=\langle\cos120^\circ,\sin120^\circ\rangle=\left\langle-\tfrac12,\tfrac{\sqrt3}{2}\right\rangle$$

an angle already has length $1$

Apply the formula
$$D_{\mathbf u}f=3\left(-\tfrac12\right)+(-4)\tfrac{\sqrt3}{2}=-\tfrac32-2\sqrt3$$

$f_x a+f_y b$

Answer $$D_{\mathbf u}f=-\tfrac32-2\sqrt3$$
Check

$|\nabla f|=|\langle3,-4\rangle|=5$, and $-4.96$ lies just inside $[-5,5]$ — the direction is nearly straight downhill.

Mistake ledger (14 entries)
⚠ Using the raw direction vector without normalising

the direction is handed to you as a vector, so it is tempting to plug it straight in

wrong$$D_{\mathbf u}f=12\cdot3+9\cdot4=72$$
right$$D_{\mathbf u}f=12\cdot\tfrac35+9\cdot\tfrac45=14.4$$
⚠ Pairing the components with the wrong partials

the two numbers and the two partials look interchangeable once written down

wrong$$D_{\mathbf u}f=12\cdot\tfrac45+9\cdot\tfrac35=15$$
right$$D_{\mathbf u}f=f_x\,a+f_y\,b=12\cdot\tfrac35+9\cdot\tfrac45=14.4$$
⚠ Writing the gradient as a product of the partials

the word gradient suggests a single slope, so the two partials get multiplied into one number

wrong$$\nabla f=f_x\cdot f_y$$
right$$\nabla f=\langle f_x,\,f_y\rangle$$
⚠ Dotting with the un-normalised direction

the dot-product form hides the unit-vector requirement

wrong$$D_{\mathbf u}f=\langle6,-2\rangle\cdot\langle1,2\rangle=2$$
right$$D_{\mathbf u}f=\langle6,-2\rangle\cdot\tfrac{\langle1,2\rangle}{\sqrt5}=\tfrac{2}{\sqrt5}$$
⚠ Reporting the fastest rate as the vector, not its length

the gradient carries both the direction and the size, so the two get conflated

wrong$$\text{max rate}=\langle6,8\rangle$$
right$$\text{max rate}=|\langle6,8\rangle|=10$$
⚠ Giving the steepest direction without normalising

the gradient already points the right way, so the unit step is skipped

wrong$$\mathbf u=\langle6,8\rangle$$
right$$\mathbf u=\tfrac{\langle6,8\rangle}{10}=\left\langle\tfrac35,\tfrac45\right\rangle$$
⚠ Dropping the −1 when the surface is z = f(x,y)

written as $z=f$, the $z$ looks like it plays no role, so its $-1$ partial is lost

wrong$$\mathbf n=\langle f_x,f_y\rangle$$
right$$F=f-z\Rightarrow\mathbf n=\langle f_x,f_y,-1\rangle$$
⚠ Using the point as the normal vector

for a sphere the point and the gradient happen to be parallel, hiding the difference

wrong$$\mathbf n=\langle1,2,3\rangle$$
right$$\mathbf n=\nabla F(1,2,3)=\langle2,4,6\rangle$$
⚠ Pairing every x-root with every y-root of coupled equations

for a decoupled system that is correct, and the habit carries over wrongly

wrong$$x=-2\ \text{or}\ 1,\ y=4\ \text{or}\ 0\Rightarrow 4\ \text{points}$$
right$$\text{solve }f_x=0,f_y=0\ \text{simultaneously}$$
⚠ Forgetting points where a partial does not exist

the phrase set the gradient to zero suggests smooth points are the only kind

wrong$$\text{critical}\iff\nabla f=\mathbf 0$$
right$$\text{critical}\iff\nabla f=\mathbf 0\ \text{or}\ \nabla f\ \text{undefined}$$
⚠ Forgetting to square the mixed partial

the other two terms are plain products, so the square on $f_{xy}$ slips

wrong$$D=f_{xx}f_{yy}-f_{xy}$$
right$$D=f_{xx}f_{yy}-(f_{xy})^{2}$$
⚠ Judging min versus max before checking D>0

the rule f_xx>0 means minimum gets memorised without its condition

wrong$$f_{xx}>0\Rightarrow\text{minimum (always)}$$
right$$D>0\ \text{first};\ \text{then }f_{xx}>0\Rightarrow\text{minimum}$$
⚠ Testing only the interior critical points

the earlier concepts were all about interior critical points, so the boundary is forgotten

wrong$$\text{abs max}=f(1,1)=1$$
right$$\text{abs max}=\max\{\text{interior},\ \text{boundary}\}=9$$
⚠ Scanning edges but skipping the corners

each edge is treated as an open segment, so the shared endpoints drop out

wrong$$\text{check edges only}$$
right$$\text{check edges }and\ \text{their endpoints (corners)}$$
Formula card
Directional derivative
$$D_{\mathbf u}f=f_x a+f_y b=\nabla f\cdot\mathbf u$$

$f$ differentiable; $\mathbf u=\langle a,b\rangle$ a unit vector

Gradient vector
$$\nabla f=\langle f_x,f_y\rangle\ (\text{or }\langle f_x,f_y,f_z\rangle)$$

the partials exist at the point

Steepest ascent and its size
$$\max D_{\mathbf u}f=|\nabla f|\ \text{along}\ \tfrac{\nabla f}{|\nabla f|}$$

$\nabla f\ne\mathbf 0$

Tangent plane to a level surface
$$F_x(P)(x-x_0)+F_y(P)(y-y_0)+F_z(P)(z-z_0)=0$$

$P$ on $F=k$, $\nabla F(P)\ne\mathbf 0$

Critical point
$$f_x(a,b)=0\ \text{and}\ f_y(a,b)=0$$

the partials exist (else the point is still critical)

Second Derivatives Test
$$D=f_{xx}f_{yy}-(f_{xy})^{2}$$

second partials continuous; $\nabla f(a,b)=\mathbf 0$

Absolute extrema on a closed region
$$\text{compare }\{\text{interior critical values}\}\cup\{\text{boundary extremes}\}$$

$f$ continuous on a closed, bounded $D$

Check yourself

Close the page. On one sheet write, from memory: the formula for $D_{\mathbf u}f$ (and why $\mathbf u$ must be a unit vector), the two facts about the gradient's direction and length, how to get the tangent plane to $F(x,y,z)=k$, the two equations that locate a critical point, and the full Second Derivatives Test including the $D=0$ case. Then open the formula card and mark what was missing — that is your revision list, and the rest of the section is not.

  • take $D_{\mathbf u}f$ in a given direction, normalising first?

    c-directional-derivative

  • build $\nabla f$ and use $D_{\mathbf u}f=\nabla f\cdot\mathbf u$?

    c-gradient

  • name the steepest direction and give the rate $|\nabla f|$?

    c-steepest-ascent

  • write the tangent plane to a level surface from $\nabla F$?

    c-gradient-normal

  • solve $f_x=0,f_y=0$ together for every critical point?

    c-critical-points

  • classify a critical point with $D$ and the sign of $f_{xx}$?

    c-second-derivative-test

  • find absolute extrema by comparing interior and boundary values?

    c-absolute-extrema

Glossary (10 terms)
directional derivativeyönlü türev

The rate of change of $f$ per unit distance in a chosen unit direction $\mathbf u$, equal to $\nabla f\cdot\mathbf u$.

gradient vectorgradyan

The vector $\langle f_x,f_y\rangle$ of first partial derivatives; it points in the direction of fastest increase and its length is that fastest rate.

unit vectorbirim vektör

A vector of length $1$; any nonzero $\mathbf v$ becomes one as $\mathbf v/|\mathbf v|$.

level curvedüzey eğrisi

The set of points where $f(x,y)$ equals a fixed constant; the gradient is perpendicular to it.

level surfacedüzey yüzeyi

The set where $F(x,y,z)$ equals a constant; the gradient $\nabla F$ is normal to it, giving the tangent plane.

critical pointkritik nokta

A point where $\nabla f=\mathbf 0$ or a partial fails to exist; the only candidates for local extrema.

saddle pointeyer noktası

A critical point that is a maximum along one direction and a minimum along another, so neither a local max nor min.

discriminantdiskriminant

The number $D=f_{xx}f_{yy}-(f_{xy})^{2}$ whose sign classifies a critical point in the Second Derivatives Test.

local maximumyerel maksimum

A point where $f$ is at least as large as at every nearby point.

absolute maximummutlak maksimum

The single largest value of $f$ over an entire region, as opposed to a merely local peak.

What comes next
§11 · Double integrals over rectangles

Every question so far asked about a single point. Next we add up a function over a whole region — the double integral — starting on a rectangle where the setup is cleanest.

Sources
  • James Stewart, Calculus, Ninth Edition — sections 14.6 and 14.7 Section numbers are quoted exactly as they appear on the week 10 line of the course syllabus.
  • Course syllabus, week 10 line: Partial Derivatives 14.6, 14.7 Fixes the two topics covered: directional derivatives with the gradient, and maximum and minimum values.
  • Extreme Value Theorem for continuous functions on closed, bounded sets The guarantee behind the closed-region procedure for absolute extrema.

Spotted something missing or wrong? tell us · share your own notes or an old exam.