Difference between revisions of "Gradient"
(Stated another way, a gradient is a vector that has orthogonal (coordinate) components that consist of the partial derivatives of a function with respect to each of its variables.) |
(put in an example at the beginning -- hopefully this clears things up, but a bit of restructuring might help) |
||
| Line 3: | Line 3: | ||
In [[mathematics]], the '''gradient''' is a [[vector]] associated to a point <math>p</math> of a [[differentiable]] [[function]] <math>f(x_1,...,x_n)</math> which takes [[real]] values. Specifically, the gradient at <math>p</math> is a vector in <math>R^n</math> which points in the direction in which <math>f</math> increases most rapidly at <math>p</math>. The magnitude of the gradient at <math>p</math> is equal to the maximum [[directional derivative]] of <math>f</math> at <math>p</math>. The gradient is an extension of the idea of [[derivative]] to functions with more than one [[variable]]. | In [[mathematics]], the '''gradient''' is a [[vector]] associated to a point <math>p</math> of a [[differentiable]] [[function]] <math>f(x_1,...,x_n)</math> which takes [[real]] values. Specifically, the gradient at <math>p</math> is a vector in <math>R^n</math> which points in the direction in which <math>f</math> increases most rapidly at <math>p</math>. The magnitude of the gradient at <math>p</math> is equal to the maximum [[directional derivative]] of <math>f</math> at <math>p</math>. The gradient is an extension of the idea of [[derivative]] to functions with more than one [[variable]]. | ||
| − | Stated another way, a gradient is a vector that has | + | Stated another way, a gradient is a vector that has coordinate components that consist of the partial derivatives of a function with respect to each of its variables. For example, if <math>f(x,y) = x^2+y^2</math>, then |
| + | ::<math>\nabla f(x,y) = \left( \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y} \right) = (2x,2y)</math>. Observe that in this case, the gradient vector <math>(2x,2y)</math> is orthogonal to the "level curve" defined by <math>x^2+y^2=r^2</math>, which here is a circle: the gradient points outward from the origin, which is the direction of steepest increase of <math>f</math>, and vectors outward from the origin are perpendicular to circles centered at the origin. We'll see later that this is a case of a more general property of the gradient. | ||
More precisely, we define the gradient, <math>\nabla f</math> of <math>f</math> to be the [[vector field]]: | More precisely, we define the gradient, <math>\nabla f</math> of <math>f</math> to be the [[vector field]]: | ||
Revision as of 22:24, October 31, 2009
| This article/section deals with mathematical concepts appropriate for late high school or early college. |
In mathematics, the gradient is a vector associated to a point Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p} of a differentiable function Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x_1,...,x_n)} which takes real values. Specifically, the gradient at is a vector in which points in the direction in which increases most rapidly at . The magnitude of the gradient at is equal to the maximum directional derivative of at . The gradient is an extension of the idea of derivative to functions with more than one variable.
Stated another way, a gradient is a vector that has coordinate components that consist of the partial derivatives of a function with respect to each of its variables. For example, if , then
- . Observe that in this case, the gradient vector is orthogonal to the "level curve" defined by , which here is a circle: the gradient points outward from the origin, which is the direction of steepest increase of , and vectors outward from the origin are perpendicular to circles centered at the origin. We'll see later that this is a case of a more general property of the gradient.
More precisely, we define the gradient, of to be the vector field:
consisting of the various partial derivatives of . If is a unit vector in , then, by the chain rule, the directional derivative of in the direction of is simply the dot product:
Evidently by the Cauchy-Schwartz inequality, the directional derivative in the direction is maximal in the direction of the gradient, and equal to for a unit vector in the direction of the gradient.
Properties of the Gradient
If is a differentiable function with smooth level sets , then the gradient vector field is perpendicular to the level sets of . For fix a level set Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle S = f^{-1}(c)} , and let Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle v} be a vector tangent to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle S} at Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p} . Then we can find a curve Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \gamma(t)} on Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle S} with Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \gamma'(0) = v} . Now
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f\circ\gamma(t) = c }
since Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle S} is a level set. Taking derivatives of both sides and applying the chain rule, we get that
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \nabla f\cdot \gamma'(0) = \nabla f\cdot v = 0 }
Thus, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \nabla f} is perpendicular to Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle v} at Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p} , i.e., the gradient of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f} is perpendicular to the level sets of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f} .