well, du/dx = 0 and du/dy = 0.
now if you fix a value for y, say y = y0, consider the function g(x) = u(x,y0). dg/dx = 0, so g is a constant.
similarly, fix a value for x, say x = x0, consider the function h(y) = u(x0,y). dh/dy = 0, so h is a constant.
imagine you start at a point z0, first...