Differences between revisions 5 and 12 (spanning 7 versions)
Revision 5 as of 2025-03-27 15:40:11
Size: 1123
Comment: Moved page
Revision 12 as of 2026-08-09 02:25:08
Size: 1784
Comment: Fix link
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
A '''gradient''' is a vector of partial derivatives. It describes the direction of steepest ascent for a differentiable function. A '''gradient''' is a vector of [[Calculus/PartialDerivative|partial derivatives]]. It describes the direction of steepest ascent for a [[Calculus/Derivative|differentiable]] function.
Line 13: Line 13:
The gradient of function ''f'' is notated as ''∇f''. In terms of [[Calculus/PartialDerivatives|partial derivatives]], the gradient of ''f(x,,1,,, x,,2,,, ... x,,n,,)'' is: The gradient of function ''f'' is notated as ''∇f''. In terms of [[Calculus/PartialDerivative|partial derivatives]], the gradient of ''f(x,,1,,, x,,2,,, ... x,,n,,)'' is:
Line 21: Line 21:
Note the assumption; it is not negligible. For example, ''(xy)/(x^2^ + y^2^)'' is partially derivable but is itself not totally derivable at point ''p = [0 0]''. Furthermore, it is not derivable if rotated; the [[LinearAlgebra/Basis|basis]] must be [[LinearAlgebra/Orthonormalization|orthonormal]]. Note the assumption; it is not negligible. For example, ''(xy)/(x^2^ + y^2^)'' is partially derivable but is itself not totally derivable at point ''p = [0 0]''. Furthermore, it is not derivable if rotated; the [[LinearAlgebra/Basis|basis]] must be [[LinearAlgebra/Orthogonality|orthonormal]].

Also note that, technically, this is the [[LinearAlgebra/Transposition|transpose]] of the gradient; vectors are by default columns.



=== Relation to Jacobian Matrices ===

A [[Calculus/JacobianMatricesAndDeterminants|Jacobian matrix]] is a square matrix of partial derivatives. Consider a vector-valued function, such as a [[Calculus/ParametricEquation|parameterized]] function, but for simplicity let ''F(X) = <f,,1,,(X), f,,2,,(X)>'' where ''X'' is a vector as ''X = <x,,1,,``, x,,2,,``, ... x,,n,,>''. A gradient can be calculated for each of the component function.

{{attachment:jacobian.svg}}

Gradient

A gradient is a vector of partial derivatives. It describes the direction of steepest ascent for a differentiable function.


Notation

The gradient of function f is notated as ∇f. In terms of partial derivatives, the gradient of f(x1, x2, ... xn) is:

gradient.svg

At a given point p, as long as the function f is differentiable at p, the gradient vector is:

gradientvector.svg

Note the assumption; it is not negligible. For example, (xy)/(x2 + y2) is partially derivable but is itself not totally derivable at point p = [0 0]. Furthermore, it is not derivable if rotated; the basis must be orthonormal.

Also note that, technically, this is the transpose of the gradient; vectors are by default columns.

Relation to Jacobian Matrices

A Jacobian matrix is a square matrix of partial derivatives. Consider a vector-valued function, such as a parameterized function, but for simplicity let F(X) = <f1(X), f2(X)> where X is a vector as X = <x1, x2, ... xn>. A gradient can be calculated for each of the component function.

jacobian.svg


Usage

By setting a gradient to 0, critical points (local minima, local maxima, and inflections) can be calculated.

More generally, gradient descent can be used to estimate minima.


CategoryRicottone

Calculus/Gradient (last edited 2026-08-09 02:25:08 by DominicRicottone)