Perpendicular bisector

Find the perpendicular bisector of the segment ABAB with A(1,0)A(-1, 0) and B(3,2)B(3, 2). First the midpoint MM is (1+32,0+22)=(1,1)\left( \dfrac{-1 + 3}{2}, \dfrac{0 + 2}{2} \right) = (1, 1).

The slope of ABAB is 203(1)=12\dfrac{2 - 0}{3 - (-1)} = \dfrac{1}{2}, so the perpendicular slope is 2-2. Passing through M(1,1)M(1, 1), the line is y1=2(x1)y - 1 = -2(x - 1), that is y=2x+3y = -2x + 3. Every point on this line is equidistant from AA and BB. The large dots mark AA, BB, and the midpoint MM.