What would you like to understand?

Popular destinationsCalculatorsCoursesPracticeFormulas

Unlock Premium Help

Explore every tutor and study workspace for seven days, with no daily AI cap during the trial.

Choose a billing period
Ask a parent to pay

Nothing is charged during the first seven days. Unless you cancel, the plan you selected begins when the trial ends and renews on its stated schedule. Manage cancellation from your plan page. Stripe handles the payment details.

Directional Derivative Calculator

Estimate the directional derivative of f(x,y) along a normalized vector.

Define the function and interval

Directional Derivative inputs

Enter the expression, point, or bounds that define this calculus question.

Calculated valueEnter the known values

The method, result, and an independent check will appear here.

Method for this result

  1. Complete the inputs and calculate.

Independent numerical check

  1. The check will use a different relationship or reverse operation where possible.

The rate, accumulation, or approximation being computed

D_u f = ∇f · u, where ∇f = (∂f/∂x, ∂f/∂y) and u = v / |v|

Independent variables, bounds, and conditions

Symbols and inputs for Directional Derivative Calculator
SymbolQuantityMeaning
∇fGradientThe vector of partial derivatives. It points uphill, steepest first.
vDirection vectorThe way you want to walk. Its length does not matter; only its direction does.
uUnit directionv divided by its own length, so |u| = 1. Skipping this step scales the answer wrongly.
D_u fDirectional derivativeRise per unit of horizontal travel in direction u. Same units as ∂f/∂x.

Follow one changing quantity from setup to result

  1. The function and point: f(x, y) = x²y + 3y at the point (2, 1), in the direction v = (3, 4)
  2. Partial derivatives: ∂f/∂x = 2xy and ∂f/∂y = x² + 3
  3. Evaluate the gradient at (2, 1): ∇f = (2·2·1, 2² + 3) = (4, 7)
  4. Length of the direction vector: |v| = √(3² + 4²) = √25 = 5
  5. Shrink it to a unit vector: u = (3/5, 4/5) = (0.6, 0.8)
  6. Dot the gradient with u: 4(0.6) + 7(0.8) = 2.4 + 5.6
  7. The slope in that direction: 8.0

Where behavior and calculation can separate

D_u f = (4, 7) · (3, 4) = 12 + 28 = 40

The direction vector was never shrunk to length 1, so the answer is 5 times too big.

Repair: Divide by |v| = 5 first: (4, 7) · (0.6, 0.8) = 8.

Leaving the answer as a vector

The dot product of two vectors is a single number, and a slope has to be a number.

Repair: D_u f = 8, not (2.4, 5.6).

Assuming the maximum directional derivative equals the largest partial derivative

The largest partial here is 7, but walking diagonally beats both axes.

Repair: The maximum is |∇f| = √65 ≈ 8.06, in the direction of ∇f itself.

Change the interval or condition

  1. A different case: walk sideways instead of uphill: same point (2, 1), same gradient (4, 7), direction v = (7, −4)
  2. Note that v is perpendicular to the gradient: (4)(7) + (7)(−4) = 28 − 28 = 0
  3. Length of v: √(7² + (−4)²) = √65 ≈ 8.062
  4. Unit vector: u ≈ (0.868, −0.496)
  5. Dot with the gradient: 4(0.868) + 7(−0.496) = 3.472 − 3.472 = 0
  6. Read it: zero slope means you are walking along a level curve, staying at the same height
  7. Reverse the gradient instead: v = (−4, −7) gives D_u f = −65/√65 = −√65 ≈ −8.062, the steepest possible descent

Every direction at the point (2, 1), where ∇f = (4, 7) and |∇f| = √65 ≈ 8.062

Every direction at the point (2, 1), where ∇f = (4, 7) and |∇f| = √65 ≈ 8.062
Direction vUnit vector uD_u fWhat it means
(4, 7)(0.496, 0.868)8.062steepest climb, equal to |∇f|
(3, 4)(0.6, 0.8)8.000very close to the steepest direction
(1, 0)(1, 0)4this is just ∂f/∂x
(0, 1)(0, 1)7this is just ∂f/∂y
(7, −4)(0.868, −0.496)0along the level curve, no change in height
(−4, −7)(−0.496, −0.868)−8.062steepest descent

Questions about interpreting the result

Why must the direction vector have length 1?

Because D_u f is a rate per unit of distance travelled. If u were twice as long you would be measuring rise over two steps and calling it one, which is why (3, 4) unnormalised gives 40 instead of 8.

What does a directional derivative of zero mean?

You are moving along a level curve, so the height is momentarily unchanged. That happens exactly when the direction is perpendicular to the gradient, which is the second worked example above.

How is this different from a partial derivative?

A partial derivative is a directional derivative in one of the two axis directions. The table shows it directly: u = (1, 0) returns 4, which is ∂f/∂x, and u = (0, 1) returns 7, which is ∂f/∂y.

Can the answer be negative?

Yes, and it simply means the surface drops off in that direction. The most negative value possible is −|∇f|, reached by walking exactly opposite the gradient, which here gives −8.062.

Understand the result from Directional Derivative Calculator

Compare another tool, review the underlying idea, then solve a fresh problem without copying the example.

Calculators related to Directional Derivative Calculator

See all calculators →

Calculus calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Taylor polynomial calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Graphing calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Understand calculus behind this calculator

A calculator can check the arithmetic; use the calculus subject guide to rebuild the method, calculus practice questions to test selection, and the math formula library to confirm conditions and notation.