is y-y1=m(X-x1) the formula for perpendicular slope>

this is the general point-slope form of a line.

a line perpendicular to this one has slope -1/m