find the equation of the line perpendicular to AB and passing midpoint of AB