Let be a differentiable function. Remember that the gradient of function f is defined in the following way:
To calculate imagine that y=C for some constant and take the derivative with respect to x. To obtain
Employing the analogous tehnique or observing the symmetry yields:
Which gives