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

Duf=163\displaystyle D_{\mathbf{u}} f = \frac{16}{3}

Fraction

163\displaystyle \frac{16}{3}
Show the work
  1. Gradient

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

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

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

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

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

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

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

    The directional derivative at the point.

    Duf=163D_{\mathbf{u}} f = \frac{16}{3}

Worked examples