Skip to content
LoveToCalc

Theorem — what does that mean?

Directional derivative

How fast f changes when you move in a chosen direction: the gradient dotted with a unit vector.

In Swedish: Riktningsderivata

Directional derivative

The relation

Du=fxu₁+fyu₂

The directional derivative of f(x, y) is the rate of change of f in the direction of a unit vector u: ∇f · u = ∂f/∂x·u₁ + ∂f/∂y·u₂, when f is differentiable.

Du=3.2

D u equals (4 times 0.6) plus (1 times 0.8), equals 2.4 plus 0.8, equals 3.2

Working3 steps

Practice questions

You are given

  • fx=2
  • u₁=0
  • fy=7
  • u₂=-1

The formula

u = (u₁, u₂) must be a unit vector, |u| = 1. The directional derivative is defined as the limit of the difference quotient for a step h from (a, b) along u as h goes to 0: the rate of change of f per unit of length in the direction u. The formula is the gradient dotted with u, a dot product. The card takes the two partial derivatives and the two components of u and returns Duf. If the components do not make a unit vector, it says so and gives the rate per unit length.

Holds when f is differentiable at (a, b). For u = (1, 0) it is fx and for u = (0, 1) it is fy, so the partial derivatives are the directional derivatives along the axes. Turning u to −u changes the sign.

Worked example: x²y at (1, 2), towards (4, 6)

Using v = (3, 4) without dividing by its length gives 4 · 3 + 1 · 4 = 16, which is five times too large.

Largest, smallest and zero

With θ the angle between ∇f and u, Duf = |∇f| cos θ.

The largest rate holds when ∇f ≠ 0. Where ∇f = 0 every direction has rate 0.

When the formula fails

Take f(x, y) = xy²/(x² + y²) with f(0, 0) = 0. For a unit vector u, f(hu₁, hu₂)/h = u₁u₂², so every directional derivative at the origin exists. Both partial derivatives are 0 there, so ∇f · u = 0, but for u = (0.6, 0.8) the directional derivative is 0.6 · 0.64 = 0.384. The formula fails because f is not differentiable at the origin: all the directional derivatives existing is not enough.

Common mistakes

Related: tangent plane, total differential.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
Dufxu₁+fyu₂4·0.6+1·0.83.2

Last reviewed November 8, 2026 ·How pages are reviewed

CalculusAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.