Canonical: https://knowlpedia.com/real-analysis/gradient/

# Gradient

Vector of first partial derivatives of a scalar function

A **gradient** of a [differentiable function](https://knowlpedia.com/real-analysis/differentiable-map/) \(f:U\to \mathbb{R}\), where \(U\subseteq\mathbb R^n\) is open, at a point \(a\in U\) is the vector
\[
\nabla f(a)=\left(\frac{\partial f}{\partial x_1}(a),\dots,\frac{\partial f}{\partial x_n}(a)\right),
\]

formed from the [partial derivatives](https://knowlpedia.com/real-analysis/partial-derivative/) of \(f\).

## Directional derivatives

With respect to the standard [inner product](https://knowlpedia.com/linear-algebra/inner-product/) on \(\mathbb{R}^n\), the gradient encodes [directional derivatives](https://knowlpedia.com/real-analysis/directional-derivative/) via \(D_v f(a)=\nabla f(a)\cdot v\) whenever \(f\) is [differentiable](https://knowlpedia.com/real-analysis/differentiable-map/) at \(a\). Points where \(\nabla f(a)=0\) are [critical points](https://knowlpedia.com/real-analysis/critical-point/).

## Examples

- If \(f(x,y)=x^2+y^2\), then \(\nabla f(x,y)=(2x,2y)\).
- If \(f(x,y,z)=x e^{yz}\), then \(\nabla f(x,y,z)=\big(e^{yz},\,xze^{yz},\,xye^{yz}\big)\).
