Find the gradient of the given function. Assume the variables are restricted to a domain on which the function is defined.