Finite Differences

We can compute the gradient using standard finite difference methods, as follows