Vector Calculus
Gradients are part of the vector calculus world. Instead of having partial derivatives just floating around and not organized in any way, we organize them into a horizontal vector also known as gradient.
The gradient of f(x,y)=x2+y3 is:
∇f(x,y)=[∂x∂f∂y∂f]=[2x3y2] Matrix Calculus
When we add derivatives of another function g(x,y) to the above function f(x,y), we move from the world of vector calculus to matrix calculus.
The gradient of g(x,y)=2x+y8 is:
∇g(x,y)=[∂x∂g∂y∂g]=[28y7] If we have two or more functions, we can also organize their gradients into a matrix by stacking the gradients. When we do so, we get the Jacobian matrix (or just the Jacobian) where the each gradient is represented as a row:
J=[∇f(x,y)∇g(x,y)]=[∂x∂f∂y∂f∂x∂g∂y∂g]=[2x3y228y7] Links: