Prerequisite concepts
The gradient lives in the domain and has the same number of spatial dimensions as the original function
The gradient of an $n$ dimensional function is $n$ dimensional. This is not to be confused with the gradient having the same physical dimensions (e.g., Newtons) as the original function.