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,0)D_{\mathbf{u}} f\left(1, 1\right),\ \mathbf{u} = \left(1, 0\right)

Duf=2\displaystyle D_{\mathbf{u}} f = 2
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,0)\left(1, 0\right) is normalised: divided by its length 1=1\sqrt{1} = 1.

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

    u^=(1,0)\hat{u} = \left(1, 0\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)⋅(1,0)=2\begin{aligned} D_{\mathbf{u}} f &= \nabla f \cdot \mathbf{u} \\ &= \left(2, 2\right) \cdot \left(1, 0\right) \\ &= 2 \end{aligned}
  5. Result

    The directional derivative at the point.

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

Worked examples