I am being asked to find and plot the geometric region on the complex plane for the following sets: $$ \left\{ z \middle| Im\left(\frac{z-z_1}{z-z_2}\right)=0\right\} $$
$$ \left\{ z \middle| Re\left(\frac{z-z_1}{z-z_2}\right)=0\right\} $$
I am not sure on how to begin the solution.
Consider points $z,z_{1},z_{2}$ on a complex plane.
$Im\left(\frac{z-z_{1}}{z-z_{2}}\right)=0$ if and only if $\angle z_{1}zz_{2}=0,\pi$ i.e. $z$ lies on the line that pass through $z_{1}$ and $z_2$.
$Re\left(\frac{z-z_{1}}{z-z_{2}}\right)=0$ if and only if $\angle z_{1}zz_{2}=\pm\frac{\pi}{2}$ i.e. $z$ lies on the circle with diameter $|z_{1}-z_{2}|$ centered at $\frac{z_{1}+z_{2}}{2}$