2d curl formula