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
- Compute all first-order partial derivatives
- Arrange them into a vector (respecting variable order)
- For a specific point: plug in coordinates
- 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.