If are intercepts of the line which is perpendicular to the line passing through the points and passing through the point then
Equation of line passing through the point and perpendicular to the line having slope is
Isolate the constant term and then divide with that constant on both sides
Hence,