Course contentsShow
← Mathematics
Lesson 1842 of 3,12139. Multivariable Functions and Partial DerivativesFree lesson

Computing Gradient Vectors

Practice calculating the gradient of multivariable functions at specific points and as vector fields.

Computing Gradient Vectors

You'll learn how to calculate gradient vectors for multivariable functions, both at specific points and as general vector fields.

What Is the Gradient?

The gradient of a function combines all its partial derivatives into a single vector. For a function f(x, y), the gradient (denoted ∇f or grad f) is:

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

For three variables f(x, y, z):

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

Think of the gradient as an arrow that points in the direction of steepest ascent at any location on your surface.

Computing the Gradient as a Vector Field

To find the gradient everywhere, compute each partial derivative as a function:

Example: For f(x, y) = x² + 3xy - y²

  • ∂f/∂x = 2x + 3y
  • ∂f/∂y = 3x - 2y

So ∇f = ⟨2x + 3y, 3x - 2y⟩

This is a vector field—at every point (x, y), there's a corresponding gradient vector.

Computing the Gradient at a Specific Point

To find the gradient at a particular location, substitute the coordinates into your gradient formula:

Example continued: At point (1, 2):

∇f(1, 2) = ⟨2(1) + 3(2), 3(1) - 2(2)⟩ = ⟨8, -1⟩

This specific vector tells you the direction of steepest increase at (1, 2).

Quick Process

  1. Compute all first-order partial derivatives
  2. Arrange them into a vector (respecting variable order)
  3. For a specific point: plug in coordinates
  4. For a vector field: leave as functions

Key Takeaway: The gradient vector ∇f packages all partial derivatives into one vector—compute it by finding each partial derivative and arranging them in order, then evaluate at specific points when needed.