g(u, v, w) = u^2 - v^2 - w