Steply

Gradient of f(x, y) = 3x^2 + y^2 at (1, 1)

Step by step, with the reason for every step · Gradient and directional derivative · Calculus 3

Step by step

The question

Question: find the gradient of f(x, y) = 3x² + y² at (1, 1).

f(x, y) = 3x2 + y2

1 The partial derivatives

Term by term.

3x²: the power 2 comes down: 3 times 2 is 6.

The power goes down by 1.

So 6x.

y² has no x: it is a fixed number, so it gives 0.

∂f∂x = 6x + 0

Drop the zeros: ∂f/∂x = 6x.

∂f∂x = 6x

Term by term.

3x² has no y: it is a fixed number, so it gives 0.

y²: the power 2 comes down.

The power goes down by 1.

So 2y.

∂f∂y = 0 + 2y

Drop the zeros: ∂f/∂y = 2y.

∂f∂y = 2y

2 Find the gradient

The gradient ∇f puts the partial derivatives together as one vector.

∇f = ⟨∂f∂x, ∂f∂y⟩

So ∇f = ⟨6x, 2y⟩.

∇f = ⟨6x, 2y⟩

At the point, put x = 1 and y = 1 in: ∇f(1, 1) = ⟨6, 2⟩.

∇f(1, 1) = ⟨6, 2⟩

Careful!

The answer has two parts: one for each letter.

It is an arrow, not one number.

Careful: the gradient is a vector, not one number

3 Check

Let's look at it on the xy grid.

The blue curve is a level curve: f is 4 all along it.

The gradient points straight uphill, at a square corner to the level curve.

A tiny step of 0.01 along the arrow: f grows from 4 to about 4.064.

Uphill.

Right!

f(1.0095, 1.0032) ≈ 4.064 > f(1, 1) = 4

Let's look back.

First: the partial derivatives.

Then: find the gradient.

Last: check.

Answer
∇f(1, 1) = ⟨6, 2⟩

Your turn

Try this one yourself, then check:

Find the gradient of f(x, y) = x2 + 3y2
Show the answer
∇f(3, 1) = ⟨6, 6⟩

More from Gradient and directional derivative

The whole lesson: Gradient and directional derivative →