Gradient Calculator

Type a function of x, y and z, and optionally a point, to find its gradient.

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

Optional: a point such as (1, 2) to evaluate the gradient there. Leave empty for the gradient as a formula.

Try

Result

You entered∇[x2+y2+z2](1,2,3)\nabla\left[x^{2} + y^{2} + z^{2}\right]\left(1, 2, 3\right)

∇f(1,2,3)=(2,4,6)\displaystyle \nabla f\left(1, 2, 3\right) = \left(2, 4, 6\right)

Magnitude |∇f|

∣∇f∣=56≈7.483315\displaystyle \left|\nabla f\right| = \sqrt{56} \approx 7.483315
Show the work
  1. Gradient

    The gradient collects the partial derivatives of ff into a vector that points in the direction of steepest increase. Each component treats the other variables as constants.

    Using ∇f=(fx,fy,fz)\nabla f = \left(f_{x}, f_{y}, f_{z}\right)

    ∂f∂x=2x∂f∂y=2y∂f∂z=2z\begin{gathered} \frac{\partial f}{\partial x} = 2x \\ \frac{\partial f}{\partial y} = 2y \\ \frac{\partial f}{\partial z} = 2z \end{gathered}
  2. Gradient vector

    Put the partial derivatives together, in the order of the variables.

    ∇f=(2x,2y,2z)\nabla f = \left(2x, 2y, 2z\right)
  3. Evaluate the gradient at the point

    Substitute the coordinates of the point (1,2,3)\left(1, 2, 3\right) into each component.

    ∇f(1,2,3)=(2,4,6)\nabla f\left(1, 2, 3\right) = \left(2, 4, 6\right)
  4. Result

    The gradient at the point.

Worked examples