Statement
For two non‑vertical straight lines
L₁ : y = m₁x + c, L₂ : y = m₂x + d,
the lines are perpendicular ⇔ m₁m₂ = –1.
(When one of the lines is vertical its slope is “∞”; the condition still collapses to the same idea, but the ordinary slope formula cannot be used. We therefore assume finite slopes in this proof.)
Proof 1 – Using direction vectors
-
A convenient direction (tangent) vector for L₁ is
v₁ = (1, m₁) —because if x increases by 1, y increases by m₁.
-
Likewise, a direction vector for L₂ is
v₂ = (1, m₂).
-
Two lines are perpendicular iff their direction vectors are orthogonal, i.e. their dot product is zero:
v₁ · v₂ = 0
⇒ (1, m₁) · (1, m₂) = 0
⇒ 1·1 + m₁m₂ = 0
⇒ m₁m₂ = –1.
-
Conversely, if m₁m₂ = –1, then
v₁ · v₂ = 1 + m₁m₂ = 1 – 1 = 0,
so v₁ ⟂ v₂ and the lines are perpendicular.
Thus L₁ ⟂ L₂ ⇔ m₁m₂ = –1. ∎
Proof 2 – Using the angle‐between‐lines formula
The angle θ between two lines with slopes m₁ and m₂ satisfies
tan θ = |(m₂ – m₁)| / |1 + m₁m₂|.
For the lines to be perpendicular we need θ = 90°, and tan 90° is undefined (goes to ∞).
That happens exactly when the denominator is zero:
1 + m₁m₂ = 0 ⇒ m₁m₂ = –1.
Conversely, if m₁m₂ = –1, the denominator vanishes, tan θ becomes infinite, and θ = 90°; hence the lines are perpendicular.
Again we have L₁ ⟂ L₂ ⇔ m₁m₂ = –1. ∎
Geometric intuition (optional)
If one line climbs up m₁ units vertically for every 1 unit horizontally while the other climbs m₂ units, being “opposite reciprocals” (m₁ = –1/m₂) forces their rise‑over‑run ratios to form a right angle in the plane.
Special cases
• If one line is vertical, its slope is undefined and the other must be horizontal (slope = 0) for perpendicularity. In limit form “∞ · 0 = –1” is not meaningful, but the geometric condition still matches the same idea of opposite reciprocals.