Gradient
The gradient of a scalar-valued function is the vector of partial derivatives with respect to each component of its input vector that points in the direction of steepest ascent at :
The magnitude of the gradient gives the rate of increase in the direction of . It is important to note that indicates a stationary point, and not necessarily an extremum.
The Gradient Lives in the Domain domain, not the output space.
The gradient doesn’t lie on the surface of the function - it lives in the
For a function , the gradient is 2-dimensional, describing direction and rate of change within the input plane, not in the 3D surface of .