courses › Calculus

Several variables

level 51 course

Partial derivatives, gradients, and double integrals.

Pen and paper is fine · no calculator needed why?

Learn first (about 3 minutes)

Opens at level 51.

Sign in to start

Builds on: Using derivatives (not open yet) · Integration techniques (not open yet)

the lesson

The idea, the techniques and a tip for each skill, right here. The Learn page adds worked examples for every skill and untimed practice.

Read the lesson · about 3 minutes

The idea

A function of two variables, f(x, y), is a surface. Its partial derivative ∂f/∂x is the slope in the x-direction: differentiate in x, holding y fixed. ∂f/∂y swaps the roles.

The gradient ∇f = (∂f/∂x, ∂f/∂y) aims uphill; its length is the steepest slope. A double integral adds f up over an area. Where both partials are 0, the surface can peak, dip or saddle.

Techniques

Partials and the gradient

A partial derivative at a point, or the length of ∇f.

  1. For ∂f/∂x, hold y fixed and differentiate in x: x²y becomes 2xy. For ∂f/∂y, hold x fixed.
  2. Differentiate first, then put in the point.
  3. Gradient length: √((∂f/∂x)² + (∂f/∂y)²), by Pythagoras.
worked example

Example: f(x, y) = x²y + y. What is the length of the gradient ∇f at (2, 3)?

  1. ∂f/∂x = 2xy, which is 2 × 2 × 3 = 12 at (2, 3).
  2. ∂f/∂y = x² + 1, which is 4 + 1 = 5.
  3. Length: √(144 + 25) = √169 = 13.

Answer: 13

Double integral, one at a time

Integrating f(x, y) over a rectangle a ≤ x ≤ b, c ≤ y ≤ d.

  1. Integrate in y from c to d, holding x fixed. A term with no y is multiplied by d − c.
  2. Then integrate the result in x, from a to b.
worked example

Example: What is the double integral of x² + y over the rectangle 0 ≤ x ≤ 2, 0 ≤ y ≤ 3?

  1. Over y from 0 to 3: x² becomes 3x², and y becomes 9/2.
  2. Over x from 0 to 2: 3x² gives 8, and 9/2 gives 9. Total 17.

Answer: 17

Classify with D

Classifying a critical point of f(x, y).

  1. Check it is critical: f_x and f_y (the partials) must both be 0 there. If not, it isn’t.
  2. Find the second partials f_xx, f_yy and f_xy. Then D = f_xx·f_yy − f_xy².
  3. D < 0: a saddle point. D > 0: a local minimum if f_xx > 0, a local maximum if f_xx < 0.
worked example

Example: f(x, y) = x² + 3xy + y² has a critical point at (0, 0). What is D = f_xx·f_yy − f_xy² there?

  1. f_xx = 2, f_yy = 2 and f_xy = 3.
  2. D = 2 × 2 − 9 = −5.
  3. D < 0, so (0, 0) is a saddle point.

Answer: −5

Tips by skill

  • TipPartial derivatives: Hold the other variable fixed, as if it were a number, and differentiate. Then put in the point.
  • TipDouble integrals: Integrate in y first with x held fixed, then integrate the result in x.
  • TipGradient: The gradient is the pair of partial derivatives. For its length, square both at the point, add, and take the square root.
  • TipClassify a critical point: Check f_x and f_y are both 0 there. Then D = f_xx·f_yy − f_xy²: negative means saddle; positive, the sign of f_xx decides.

Watch out for

  • Putting the point into f instead of its partial derivative.
  • Adding the gradient’s two parts. Square them, add, then take the square root.
  • Leaving a term with no y unchanged when integrating over y. It is multiplied by d − c.
  • Calling a point a minimum after looking along x alone. D < 0 means a saddle.

skills · practice stats

From rounds of this course only: box, review and test-out answers are left out. Once a skill has 40 tries, it compares your first 20 tries with your last 20.

rest ladder

Win 3 of your last 4 rounds and the course rests. A win is 90% right, within 2× the round's par. Pass the review when it comes back and the next rest is longer.

  1. 1 day
  2. 3 days
  3. 7 days
  4. 14 days
  5. 30 days
  6. 60 days
  7. mastered · every 90 days

your rounds

No rounds yet.