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 y+y3]\nabla\left[x^{2}\,y + y^{3}\right]

∇f=(2x y,x2+3y2)\displaystyle \nabla f = \left(2x\,y, x^{2} + 3y^{2}\right)
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)\nabla f = \left(f_{x}, f_{y}\right)

    ∂f∂x=2x y∂f∂y=x2+3y2\begin{gathered} \frac{\partial f}{\partial x} = 2x\,y \\ \frac{\partial f}{\partial y} = x^{2} + 3y^{2} \end{gathered}
  2. Gradient vector

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

    ∇f=(2x y,x2+3y2)\nabla f = \left(2x\,y, x^{2} + 3y^{2}\right)
  3. Result

    The gradient of the function.

Worked examples