When lines are perpendicular the slopes of both are opposite and reciprocal, that is:
[tex]m\text{ and - }\frac{1}{m}[/tex]In words, if we have a line with slope = m, the perpendicular line to that line will have a slope = - 1/m ( opposite and reciprocal).