Slope of a Line, Angle Between Two Lines & Collinearity
Coordinate geometry links algebra and geometry, allowing geometric curves and lines to be expressed as algebraic equations. A straight line is the simplest geometric locus: an algebraic curve of degree one in two variables x and y.
1. Inclination and Slope (Gradient) of a Line
If a straight line makes an angle θ with the positive direction of the x-axis measured in the anticlockwise direction, then θ is called the inclination of the line (0° ≤ θ < 180°).
- Horizontal Line (parallel to x-axis): θ = 0° ⇒
m = tan 0° = 0. - Vertical Line (perpendicular to x-axis): θ = 90° ⇒
m = tan 90° is undefined (∞). - Acute Inclination (0° < θ < 90°): Slope m > 0 (positive).
- Obtuse Inclination (90° < θ < 180°): Slope m < 0 (negative).
2. Slope of a Line Passing Through Two Given Points
Let P(x1, y1) and Q(x2, y2) be two distinct points on a non-vertical straight line. The slope m of the secant line passing through P and Q is given by:
If x1 = x2, the line is vertical, and its slope is undefined.
3. Conditions for Parallelism and Perpendicularity of Lines
Let L1 and L2 be two non-vertical lines having slopes m1 and m2 respectively:
A. Parallel Lines (L1 || L2)
Two lines are parallel if and only if their inclinations are equal (θ1 = θ2):
Equal slopes indicate parallel lines.
B. Perpendicular Lines (L1 ⊥ L2)
Two lines are mutually perpendicular if θ2 = θ1 + 90°. Then m2 = tan(θ1 + 90°) = −cot θ1 = −1/m1:
The product of slopes of perpendicular lines is −1.
4. Angle Between Two Intersecting Lines
When two lines L1 and L2 with slopes m1 and m2 intersect, they form two supplementary angles θ and (180° − θ). The acute angle θ between them is given by:
- If
m2 − m1 = 0 ⇒ m1 = m2: tan θ = 0 ⇒ θ = 0° (Lines are parallel). - If
1 + m1 m2 = 0 ⇒ m1 m2 = −1: tan θ = ∞ ⇒ θ = 90° (Lines are perpendicular).
5. Collinearity of Three Points
Three points A(x1, y1), B(x2, y2), and C(x3, y3) lie on a single straight line (collinear) if and only if:
(y2 − y1) / (x2 − x1) = (y3 − y2) / (x3 − x2)
Alternatively, the area of triangle formed by three collinear points must be identically zero:
Practice problems
Try each problem yourself first, then open the solution to check your working.
Problem 1. Find the acute angle between the lines y = (2 − √3)x + 5 and y = (2 + √3)x − 1.
Show answer
m1 = 2 − √3, m2 = 2 + √3, so m2 − m1 = 2√3 and m1m2 = 4 − 3 = 1.
tan θ = |(m2 − m1)/(1 + m1m2)| = 2√3/2 = √3.
Answer: θ = 60° (the slopes are tan 15° and tan 75°, which differ by 60°).
Problem 2. Find k if the points (1, 2), (3, k) and (5, 6) are collinear.
Show answer
Slope of the line through (1, 2) and (5, 6) is (6 − 2)/(5 − 1) = 1.
The slope from (1, 2) to (3, k) must also be 1: (k − 2)/(3 − 1) = 1, so k = 4.
Check: (3, 4) lies on y = x + 1.
Answer: k = 4.
Problem 3. The lines 2x + ky = 3 and 3x − 2y = 7 are perpendicular. Find k.
Show answer
Slopes: m1 = −2/k and m2 = 3/2.
Perpendicular lines satisfy m1m2 = −1: (−2/k)(3/2) = −3/k = −1, so k = 3.
Check: 2x + 3y = 3 has slope −2/3 and (−2/3)(3/2) = −1.
Answer: k = 3.
Saved on this device only — no account, no sign-in.