Directional Derivative Calculator

Published on: July 21, 2026
Final Answer: Free • Full Steps: Pro

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\)

Example Problems

Click one to load it into the box and solve it.