Find the boundary between each two of the equations P1, P2, P3 by solving:
P1 = P2 , P1 = P3 , P2 = P3
Plot the boundary lines on a single figure that also includes the contours of M, P1, P2 and P3.