Directional Derivative Calculator

Type a function, a point and a direction to find the rate of change in that direction.

Use x, y and z. Type powers with ^ and functions with brackets: sin(xy), e^(x + y), ln(x), sqrt(x).

The point as 2 or 3 numbers, one for each variable, such as (1, 2) or (1, 2, 3).

A direction with one number for each variable. It is divided by its own length, so any length works.

Try

Result

You enteredDuf(1,1), u=(1,1)D_{\mathbf{u}} f\left(1, 1\right),\ \mathbf{u} = \left(1, 1\right)

Duf=22≈2.828427\displaystyle D_{\mathbf{u}} f = 2\sqrt{2} \approx 2.828427

Decimal

≈2.828427\displaystyle \approx 2.828427
Show the work
  1. Gradient

    The directional derivative needs the gradient of ff, the vector of its partial derivatives.

    ∇f=(fx,fy)=(2x,2y)\begin{aligned} \nabla f &= \left(f_x, f_y\right) \\ &= \left(2x, 2y\right) \end{aligned}
  2. Gradient at the point

    Substitute the point (1,1)\left(1, 1\right) into the gradient.

    ∇f(1,1)=(2,2)\nabla f\left(1, 1\right) = \left(2, 2\right)
  3. Unit vector in the direction

    The directional derivative uses a unit vector, so the direction (1,1)\left(1, 1\right) is normalised: divided by its length 2\sqrt{2}.

    Using u=v∣v∣\mathbf{u} = \frac{\mathbf{v}}{\left|\mathbf{v}\right|}

    u^=12(1,1)\hat{u} = \frac{1}{\sqrt{2}}\left(1, 1\right)
  4. Directional derivative

    Take the dot product of the gradient with the unit vector: it is the rate of change of f in that direction.

    Duf=∇f⋅u=(2,2)⋅12(1,1)=22\begin{aligned} D_{\mathbf{u}} f &= \nabla f \cdot \mathbf{u} \\ &= \left(2, 2\right) \cdot \frac{1}{\sqrt{2}}\left(1, 1\right) \\ &= 2\sqrt{2} \end{aligned}
  5. Result

    The directional derivative at the point.

    Duf=22D_{\mathbf{u}} f = 2\sqrt{2}

Worked examples