In [[mathematics]], the gradient of a real-valued differentiable function <math>f(x_1,...,x_n)</math> at a point <math>p</math> is a vector in <math>R^n</math> which points in the direction in which <math>f</math> increases most rapidly. The magnitude of the gradient at <math>p</math> is equal to the maximum directional derivative of <math>f</math> at <math>p</math>.
+
In [[mathematics]], the gradient of a real-valued differentiable function <math>f(x_1,...,x_n)</math> at a point <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>.
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: