The gradient of a line is a measure of its slope relative to a set of axes.
Two lines with gradients m 1m_1 and m 2m_2 are perpendicular if and only if m 1m 2=−1m_1 m_2 = -1.