A gradient of a f:U→Rf:U\to \mathbb{R}, where U⊆RnU\subseteq\mathbb R^n is open, at a point a∈Ua\in U is the vector

∇f(a)=(∂f∂x1(a),…,∂f∂xn(a)),\nabla f(a)=\left(\frac{\partial f}{\partial x_1}(a),\dots,\frac{\partial f}{\partial x_n}(a)\right),

formed from the of ff.

Directional derivatives

With respect to the standard on Rn\mathbb{R}^n, the gradient encodes via Dvf(a)=∇f(a)⋅vD_v f(a)=\nabla f(a)\cdot v whenever ff is at aa. Points where ∇f(a)=0\nabla f(a)=0 are .

Examples
  • If f(x,y)=x2+y2f(x,y)=x^2+y^2, then ∇f(x,y)=(2x,2y)\nabla f(x,y)=(2x,2y).
  • If f(x,y,z)=xeyzf(x,y,z)=x e^{yz}, then ∇f(x,y,z)=(eyz, xzeyz, xyeyz)\nabla f(x,y,z)=\big(e^{yz},\,xze^{yz},\,xye^{yz}\big).