I haven't ever studied fluid dynamics before and may mix something here, so please, be patient :).
Given flow potential of the form (homogeneus flow over a dipole):
$$ \phi = u_\infty x -\frac{M}{2\pi} \frac{x}{x^2 + y^2} $$
how do I calculate pressure field? I know the answer is like below, and it's derived using Bernoulli's principle. I just don't know how to get there analytically.

In my materials the answer is:
$$ C_p = \frac{p-p_\infty}{\frac{1}{2} \rho u_\infty^2} = 1 - \left( \frac{u}{u_\infty}\right)^2$$
but I don't understand where it comes from.