A partial derivative of a function of many variables is the derivative of that function with respect to one of its arguments.
For example, if then has three partial derivatives at the point :
The del operator, or nabla symbol, written , represents the vector where the value is the arity (number of arguments) of the function in question.
The product of and a function is a vector storing, in order, all of the partial derivatives of .
The gradient applies when is a scalar-valued function of many variables. For example, the gradient of temperature in a closed room is , where , , and are the Cartesian coordinates in the three spatial dimensions: length, width, and height, respectively. and are likely to be close to zero at most points, but probably has a small positive value, since the air nearer the ceiling (greater ) is warmer than the air nearer the floor (lesser ). Therefore, the typical direction of the gradient vector is close to upwards.
When is a vector-valued function or vector field whose values are in the same dimensions as its arguments, the dot product of with yields the divergence where the notation refers to the -direction component of vector .
Informally, the divergence measures how much the field "spreads out" from a point. This is because the term in the sum corresponding to each dimension is positive if the change in the component of the field in the dimension agrees with change in the the argument coordinate in the dimension (pushing the field away from the point) and negative if the change in the component disagrees with change in the coordinate (pulling the field toward the point), with magnitude determined by the rate of such change of the field.
If has values and arguments in three dimensions (here , , and ), then we can also take the cross product of and to obtain the curl as follows:
Because the cross product is perpendicular to its factors, and its magnitude is determined by how nearly perpendicular to each other the factors are, curl measures change of the field perpendicular to change in position; hence, how much the field curves around the point. According to the curl right-hand rule, the direction of the field around a point is counterclockwise from the perspective of the head of the curl vector at the point.
Partial derivatives (the gradient in particular) are crucial in multiple linear regression and therefore in artificial intelligence and machine learning.