For y=m1x+c1 and y=m2x+c2 to be perpendicular, the angle between them must be π/2: taking the cotangent of tanφ=1+m1m2m2−m1 gives cotφ=m2−m11+m1m2, and cot(π/2)=0 forces 1+m1m2=0, i.e.
m1m2=−1.
In general form, a1x+b1y+c1=0 and a2x+b2y+c2=0 are perpendicular exactly when a1a2+b1b2=0.
Two ready-made results, mirroring the parallel case:
- Every line perpendicular to ax+by+c=0 has the form bx−ay=k.
- The line through (x1,y1) perpendicular to ax+by+c=0 is bx−ay=bx1−ay1.
Summary table:
| Form of the two lines | Parallel | Perpendicular |
|---|
| y=m1x+c1 and y=m2x+c2 | m2=m1 | m1m2=−1 |
| a1x+b1y+c1=0 and a2x+b2y+c2=0 | a1b2=a2b1 | a1a2+b1b2=0 |