---
title: "Directional Derivatives and the Gradient"
description: "The rate of change in an arbitrary direction is the dot product of the gradient with a unit vector, so the gradient points the steepest way uphill and sits perpendicular to level curves."
canonical: https://lightmysky.com/learn/mathematics/directional-derivatives-and-the-gradient-mt_LW_KckY5Ad
source: https://lightmysky.com/learn/mathematics/directional-derivatives-and-the-gradient-mt_LW_KckY5Ad.md
retrieved: 2026-09-12
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# Directional Derivatives and the Gradient

The rate of change in an arbitrary direction is the dot product of the gradient with a unit vector, so the gradient points the steepest way uphill and sits perpendicular to level curves.

Subject: Mathematics · Area: Calculus & Analysis · Ages 19 to 20
Page: https://lightmysky.com/learn/mathematics/directional-derivatives-and-the-gradient-mt_LW_KckY5Ad

## Ready when they can

- Compute a directional derivative from the gradient and a unit direction
- State the direction of fastest increase and its rate
- Show that the gradient is perpendicular to the level curve through a point

## Lesson: The gradient points uphill

The gradient packs both partials into one vector. For f = 3x + 4y it is (3, 4) everywhere. Dotting it with any unit direction gives the slope there: for x squared + y squared at (1, 2), the gradient (2, 4) dotted with (1, 0) gives 2.

**Example.** The gradient points toward the steepest uphill climb, and its length is that fastest rate. For (3, 4) the fastest rate is 5. In the unit direction (3/5, 4/5) the slope is 9/5 + 16/5 = 5, the full maximum.

A zero dot means you walk along a level curve, so the gradient sits perpendicular to it. For x squared + y squared = 25 at (3, 4), the gradient (6, 8) meets the curve at a right angle. Watch arrows meet curves squarely on any contour map.

**Tip.** The cosine view unites everything: slope equals gradient length times cosine. Cosine 1 gives the fastest increase along the gradient, minus 1 the fastest decrease opposite it, and 0 gives zero change along the level curve.

**Recap.** Dot the gradient with a unit direction for any slope, follow it for the fastest climb, and expect right angles with level curves.

## Practice

16 questions on this page, each with its working shown.

## Needs first

- [The Multivariable Chain Rule](https://lightmysky.com/learn/mathematics/the-multivariable-chain-rule-mt_CHSHdNxPmJ)
- [The Dot Product: Angles and Projections](https://lightmysky.com/learn/mathematics/the-dot-product-angles-and-projections-mt_yFBcyE4sFw)

## Opens up

- [Lagrange Multipliers](https://lightmysky.com/learn/mathematics/lagrange-multipliers-mt_0RPOBWZ1gs)
- [Critical Points and Optimisation in Two Variables](https://lightmysky.com/learn/mathematics/critical-points-and-optimisation-in-two-variables-mt_4qB5pAGeuR)
- [Conservative Fields and Path Independence](https://lightmysky.com/learn/mathematics/conservative-fields-and-path-independence-mt_5djKpI5F33)
- [Gradient Descent: Following the Slope Downhill](https://lightmysky.com/learn/computing/gradient-descent-following-the-slope-downhill-mt_EjfIT1WgMX)
- [Recovering the Field from the Potential Gradient](https://lightmysky.com/learn/science/recovering-the-field-from-the-potential-gradient-mt_EqCLB9bqG1)
