\frac{\partial \phi}{\partial x} = 0 + g_x(x, y) = 2xy = P