The mid-point of line joining points whose position vectors are a and b is M(2a+b) and the direction ratio vector of line joining of given points is (a−b)
Let a variable point p(r) on the perpendicular bisector of AB, so MP⊥BA ⇒(r−2a+b)⋅(a−b)=0 ⇒(2r−a−b)⋅(a−b)=0