Perpendicular lines have negative reciprocal slopes
The product of the two slopes should be equal to \$-1\$.