Directional Derivative Notes

Published on: September 29, 2026

This Directional Derivative Calculator finds how fast a function changes as you move in a chosen direction, and shows the working line by line. The gradient is built first, and the direction is rescaled to length one, because otherwise a longer arrow would fake a faster change. The dot product of the two is the rate. Following the same pattern every time keeps the direction normalised before it is used.

Step-by-step method

  1. Set up the problem.
  2. Find the gradient by taking the partial derivatives.
  3. Turn the direction into a unit vector.
  4. Dot the gradient with the unit vector.
  5. Evaluate at the given point.

Formula:

\(D_{\mathbf{u}} f = \nabla f \cdot \mathbf{u}, \quad \mathbf{u} = \frac{\mathbf{v}}{\lVert \mathbf{v} \rVert}\)
See Example 1 Hide Example 1

Problem

\(f = x^{2} y,\; \mathbf{v} = \langle 3, 4 \rangle,\; P = (1, 2)\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Find the gradient by taking the partial derivatives.
  3. Turn the direction into a unit vector.
  4. Dot the gradient with the unit vector.
  5. Evaluate at the given point.

Step 1

Step 1 - Set up the problem.

In this problem:

\(f = x^{2} y,\; \mathbf{v} = \langle 3, 4 \rangle,\; P = (1, 2)\)

Step 2

Step 2 - Find the gradient by taking the partial derivatives.

In this problem:

\(\nabla f = \left\langle 2 x y,\; x^{2} \right\rangle\)

Step 3

Step 3 - Turn the direction into a unit vector.

In this problem:

\(\mathbf{u} = \left\langle \frac{3}{5},\; \frac{4}{5} \right\rangle\)

Step 4

Step 4 - Dot the gradient with the unit vector.

In this problem:

\(D_{\mathbf{u}} f = \frac{2 x \left(2 x + 3 y\right)}{5}\)

Step 5

Step 5 - Evaluate at the given point.

In this problem:

\(D_{\mathbf{u}} f(1, 2) = \frac{16}{5}\)

Final Answer

\(D_{\mathbf{u}} f = \frac{16}{5}\)
See Example 2 Hide Example 2

Problem

\(f = x^{2} + y^{2},\; \mathbf{v} = \langle 1, 1 \rangle,\; P = (1, 2)\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Find the gradient by taking the partial derivatives.
  3. Turn the direction into a unit vector.
  4. Dot the gradient with the unit vector.
  5. Evaluate at the given point.

Step 1

Step 1 - Set up the problem.

In this problem:

\(f = x^{2} + y^{2},\; \mathbf{v} = \langle 1, 1 \rangle,\; P = (1, 2)\)

Step 2

Step 2 - Find the gradient by taking the partial derivatives.

In this problem:

\(\nabla f = \left\langle 2 x,\; 2 y \right\rangle\)

Step 3

Step 3 - Turn the direction into a unit vector.

In this problem:

\(\mathbf{u} = \left\langle \frac{\sqrt{2}}{2},\; \frac{\sqrt{2}}{2} \right\rangle\)

Step 4

Step 4 - Dot the gradient with the unit vector.

In this problem:

\(D_{\mathbf{u}} f = \sqrt{2} \left(x + y\right)\)

Step 5

Step 5 - Evaluate at the given point.

In this problem:

\(D_{\mathbf{u}} f(1, 2) = 3 \sqrt{2} \approx 4.24\)

Final Answer

\(D_{\mathbf{u}} f = 3 \sqrt{2} \approx 4.24\)
See Example 3 Hide Example 3

Problem

\(f = x y^{2},\; \mathbf{v} = \langle 3, 4 \rangle,\; P = (2, 1)\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Find the gradient by taking the partial derivatives.
  3. Turn the direction into a unit vector.
  4. Dot the gradient with the unit vector.
  5. Evaluate at the given point.

Step 1

Step 1 - Set up the problem.

In this problem:

\(f = x y^{2},\; \mathbf{v} = \langle 3, 4 \rangle,\; P = (2, 1)\)

Step 2

Step 2 - Find the gradient by taking the partial derivatives.

In this problem:

\(\nabla f = \left\langle y^{2},\; 2 x y \right\rangle\)

Step 3

Step 3 - Turn the direction into a unit vector.

In this problem:

\(\mathbf{u} = \left\langle \frac{3}{5},\; \frac{4}{5} \right\rangle\)

Step 4

Step 4 - Dot the gradient with the unit vector.

In this problem:

\(D_{\mathbf{u}} f = \frac{y \left(8 x + 3 y\right)}{5}\)

Step 5

Step 5 - Evaluate at the given point.

In this problem:

\(D_{\mathbf{u}} f(2, 1) = \frac{19}{5}\)

Final Answer

\(D_{\mathbf{u}} f = \frac{19}{5}\)
See Example 4 Hide Example 4

Problem

\(f = x^{2} + 3 y,\; \mathbf{v} = \langle 1, 2 \rangle,\; P = (1, 1)\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Find the gradient by taking the partial derivatives.
  3. Turn the direction into a unit vector.
  4. Dot the gradient with the unit vector.
  5. Evaluate at the given point.

Step 1

Step 1 - Set up the problem.

In this problem:

\(f = x^{2} + 3 y,\; \mathbf{v} = \langle 1, 2 \rangle,\; P = (1, 1)\)

Step 2

Step 2 - Find the gradient by taking the partial derivatives.

In this problem:

\(\nabla f = \left\langle 2 x,\; 3 \right\rangle\)

Step 3

Step 3 - Turn the direction into a unit vector.

In this problem:

\(\mathbf{u} = \left\langle \frac{\sqrt{5}}{5},\; \frac{2 \sqrt{5}}{5} \right\rangle\)

Step 4

Step 4 - Dot the gradient with the unit vector.

In this problem:

\(D_{\mathbf{u}} f = \frac{2 \sqrt{5} \left(x + 3\right)}{5}\)

Step 5

Step 5 - Evaluate at the given point.

In this problem:

\(D_{\mathbf{u}} f(1, 1) = \frac{8 \sqrt{5}}{5} \approx 3.58\)

Final Answer

\(D_{\mathbf{u}} f = \frac{8 \sqrt{5}}{5} \approx 3.58\)