Practice: Partial Derivatives, the Gradient and Critical Points

Recognition · Error diagnosis

At a point where ∇ f = ( 4 , 10 ) , a learner computes the directional derivative along ( 3 , 4 ) as 4 ( 3 ) + 10 ( 4 ) = 52 .

What is wrong?

2 hints available, least help first.

Hint 1: Retrieval cue

What length must the direction vector have in D u f = ∇ f ⋅ u ?

Hint 2: Concept cue

| ( 3 , 4 ) | = 5 , so divide the vector by 5 before taking the dot product.

Direct application

Let f ( x , y ) = x 3 y 2 .

Compute f x ( 1 , 2 ) , the partial derivative with respect to x evaluated at ( 1 , 2 ) .

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

Treat y 2 as a constant multiplier and differentiate x 3 .

Hint 2: Concept cue

f x = 3 x 2 y 2 . Substitute x = 1 and y = 2 .

Classification · Direct application

The function s ( x , y ) = x 2 − y 2 has ∇ s = 0 at the origin, where s x x = 2 , s y y = − 2 and s x y = 0 .

What kind of critical point is it?

2 hints available, least help first.

Hint 1: Retrieval cue

Compute D = s x x s y y − s x y 2 and check its sign.

Hint 2: Concept cue

Evaluate s at ( ± 0.1 , 0 ) and at ( 0 , ± 0.1 ) and compare both with s ( 0 , 0 ) = 0 .

Direct application · Interpretation

At a point where ∇ f = ( 3 , 4 ) , what is the largest directional derivative of f over all unit directions?

Enter the value. It is checked against the answer and the precision this task asks for.

2 hints available, least help first.

Hint 1: Retrieval cue

Write D u f as | ∇ f | cos ⁡ θ . What is the largest cos ⁡ θ can be?

Hint 2: Concept cue

The maximum is the gradient's own length, 3 2 + 4 2 .

Construction · Direct application · Explanation

Let f ( x , y ) = x 2 y + 3 y 2 .

(a) Compute ∇ f and evaluate it at ( 2 , 1 ) .

(b) Find the rate of change of f at ( 2 , 1 ) in the direction of the vector ( 3 , 4 ) . Then state the direction of steepest increase and the rate along it.

(c) Find and classify every critical point of g ( x , y ) = x 2 + 3 y 2 − 4 x + 6 y .

(d) Show that s ( x , y ) = x 2 − y 2 has a critical point at the origin that is neither a maximum nor a minimum, giving explicit values that establish it.

Write your answer, then compare it with the worked solution.

2 hints available, least help first.

Hint 1: Retrieval cue

In (b), check the length of the direction vector before taking any dot product.

Hint 2: Concept cue

In (c), both partials must vanish at the same point, solve the two equations together.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

(a) The gradient. For f x , hold y constant: x 2 y differentiates to 2 x y , and 3 y 2 contains no x , so it contributes 0. For f y , hold x constant: x 2 y differentiates to x 2 , and 3 y 2 to 6 y .

∇ f = ( 2 x y ,   x 2 + 6 y ) ⟹ ∇ f ( 2 , 1 ) = ( 4 ,   10 ) .

Check: symmetric difference quotients at h = 10 − 6 give 4.00000000 and 10.00000000 ✓. Note f x = 2 x y still contains y , holding a variable fixed means treating it as a constant while differentiating, not removing it from the result. (b) A directional derivative, and the steepest direction. The vector ( 3 , 4 ) has length 9 + 16 = 5 , so it is not a unit vector and must be normalised:

u = 1 5 ( 3 , 4 ) = ( 0.6 ,   0.8 ) .
D u f ( 2 , 1 ) = ∇ f ⋅ u = 4 ( 0.6 ) + 10 ( 0.8 ) = 2.4 + 8 = 10.4 .

Check: f ( p + t u ) − f ( p − t u ) 2 t at t = 10 − 6 returns 10.40000000 ✓. Without normalising the dot product gives 4 ( 3 ) + 10 ( 4 ) = 52 , exactly 5 times too large, since the vector is 5 times too long. A directional derivative is a rate per unit distance, so the length must be 1. Steepest increase. By D u f = | ∇ f | cos ⁡ θ , the maximum is at θ = 0 : along ∇ f = ( 4 , 10 ) itself, at rate

| ∇ f | = 16 + 100 = 116 ≈ 10.770 .

As a unit vector that direction is ( 4 , 10 ) / 116 ≈ ( 0.3714 ,   0.9285 ) , and dotting ∇ f with it returns 10.770 , equal to the magnitude ✓. Scanning all directions at a hundredth of a degree finds no direction beating it. Note 10.4 < 10.770 , as it must be: no directional derivative can exceed the gradient's length. That inequality is the quickest check on any answer here. (c) Critical points of g ( x , y ) = x 2 + 3 y 2 − 4 x + 6 y . Both partials must vanish simultaneously:

g x = 2 x − 4 = 0 ⇒ x = 2 , g y = 6 y + 6 = 0 ⇒ y = − 1 .

Each equation alone describes a line; their intersection is the single critical point ( 2 , − 1 ) , where

g ( 2 , − 1 ) = 4 + 3 − 8 − 6 = − 7 .

Classification. g x x = 2 , g y y = 6 , g x y = 0 , so

D = g x x g y y − g x y 2 = ( 2 ) ( 6 ) − 0 = 12 > 0 ,

and g x x = 2 > 0 . Therefore ( 2 , − 1 ) is a local minimum, value − 7 . Check: 20,000 random points within 0.5 of ( 2 , − 1 ) produced no value below − 7 ✓. (d) The origin as a saddle for s ( x , y ) = x 2 − y 2 . s x = 2 x and s y = − 2 y vanish together only at ( 0 , 0 ) , where s = 0 . Explicit values. Along the x -axis:

s ( 0.1 , 0 ) = + 0.01 , s ( − 0.1 , 0 ) = + 0.01 ,

both greater than s ( 0 , 0 ) = 0 . Along the y -axis:

s ( 0 , 0.1 ) = − 0.01 , s ( 0 , − 0.1 ) = − 0.01 ,

both less than 0. Every neighbourhood of the origin therefore contains points where s is larger and points where it is smaller, so the origin is neither a maximum nor a minimum. By the test. s x x = 2 , s y y = − 2 , s x y = 0 , giving D = ( 2 ) ( − 2 ) − 0 = − 4 < 0 , which is precisely the saddle case. Note that s x x = 2 > 0 alone would suggest a minimum. A single second derivative describes one direction; the determinant is what ranges over all of them.

A complete answer does each of these:

  • computes partial derivative
  • normalises direction
  • reads gradient geometry
  • classifies critical point
  • explains directional dependence
Practice data

Your practice record is stored in this browser only. Clearing it removes every answer and every scheduled review, and cannot be undone.

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.