It's a little confusing that `fxx` is the second derivative of f wrt x, and fx and gy are f(x) and g(y).