Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2025-03-27 13:39:44
Size: 919
Comment: Renamed page
Revision 4 as of 2025-03-27 13:56:08
Size: 1125
Comment: Added optimization context
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from Calculus/GradientVector
= Gradient Vector =
= Gradient =
Line 4: Line 3:
A '''gradient vector''' describes the direction of steepest ascent for a differentiable function. A '''gradient''' is a vector of partial derivatives. It describes the direction of steepest ascent for a differentiable function.
Line 14: Line 13:
In terms of [[Calculus/PartialDerivatives|partial derivatives]], the gradient vector of ''f(x,,1,,, x,,2,,, ... x,,n,,)'' is ''[∂f/∂x,,1,, ∂f/∂x,,2,, ... ∂f/∂x,,n,,]''. The gradient is notated as ''∇f''. 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:

{{attac
hment:gradient.svg}}
Line 18: Line 19:
{{attachment:gradient.svg}} {{attachment:gradientvector.svg}}
Line 21: Line 22:

----



== Usage ==

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

More generally, [[Statistics/GradientDescent|gradient descent]] can be used to estimate minima.

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.


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 2025-03-27 15:40:11 by DominicRicottone)