Math Lab
Home/Class XI/Ch 9/Distance, section formula, and slope

Distance, section formula, and slope

The Cartesian plane assigns to each point PP a pair (x,y)(x, y) , the coordinates. Every geometric quantity (distance, midpoint, slope) becomes an algebraic computation on these coordinates. This subtopic introduces the three workhorses you will use in every later subtopic.

Definitions

  • Distance between P(x1,y1)P(x_1, y_1) and Q(x2,y2)Q(x_2, y_2): PQ=(x2x1)2+(y2y1)2.|PQ| = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}. This is just the Pythagorean theorem applied to the right triangle with horizontal leg x2x1|x_2 - x_1| and vertical leg y2y1|y_2 - y_1|.

  • Section formula (internal division). If RR divides PQPQ internally in the ratio m:nm : n, then R=(mx2+nx1m+n,my2+ny1m+n).R = \left(\frac{m x_2 + n x_1}{m + n}, \frac{m y_2 + n y_1}{m + n}\right).

  • External division. If RR divides PQPQ externally in the ratio m:nm : n (so RR lies outside segment PQPQ), replace nn by n-n: R=(mx2nx1mn,my2ny1mn).R = \left(\frac{m x_2 - n x_1}{m - n}, \frac{m y_2 - n y_1}{m - n}\right).

  • Midpoint (special case m=n=1m = n = 1): M=(x1+x22,y1+y22).M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right).

  • Slope of a line through P(x1,y1)P(x_1, y_1) and Q(x2,y2)Q(x_2, y_2) (with x1x2x_1 \ne x_2): m=y2y1x2x1.m = \frac{y_2 - y_1}{x_2 - x_1}.

If x1=x2x_1 = x_2, the line is vertical and slope is undefined (sometimes said to be "infinite").

Geometric meaning of slope

The slope is the tangent of the angle θ\theta that the line makes with the positive xx-axis (measured counter-clockwise): m=tanθm = \tan\theta. A line going up from left to right has positive slope; going down has negative slope; horizontal has slope 00.

Parallel lines have equal slopes. Perpendicular lines have slopes whose product is 1-1 (provided neither is vertical).

Worked examples

Example 1. Distance between (3,4)(3, 4) and (1,2)(-1, 2).

(3(1))2+(42)2=16+4=20=25\sqrt{(3 - (-1))^2 + (4 - 2)^2} = \sqrt{16 + 4} = \sqrt{20} = 2\sqrt{5}.

Example 2. Find the point dividing the segment from (1,2)(1, 2) to (7,11)(7, 11) in the ratio 2:12 : 1 internally.

R=(27+113,211+123)=(153,243)=(5,8)R = \left(\dfrac{2 \cdot 7 + 1 \cdot 1}{3}, \dfrac{2 \cdot 11 + 1 \cdot 2}{3}\right) = \left(\dfrac{15}{3}, \dfrac{24}{3}\right) = (5, 8).

Example 3. Midpoint of (2,5)(-2, 5) and (4,3)(4, -3).

M=(2+42,5+(3)2)=(1,1)M = \left(\dfrac{-2 + 4}{2}, \dfrac{5 + (-3)}{2}\right) = (1, 1).

Example 4. Slope of the line through (2,3)(2, 3) and (5,9)(5, 9).

m=9352=63=2m = \dfrac{9 - 3}{5 - 2} = \dfrac{6}{3} = 2.

Example 5. Show that (1,2)(1, 2), (4,5)(4, 5), (7,8)(7, 8) are collinear.

Slope (1,2)(4,5)(1,2) \to (4,5): 5241=1\dfrac{5 - 2}{4 - 1} = 1. Slope (4,5)(7,8)(4,5) \to (7,8): 8574=1\dfrac{8 - 5}{7 - 4} = 1. Same slope, common point , collinear.

Try it yourself

  1. Distance between (0,0)(0, 0) and (6,8)(6, 8).
  2. Distance between (5,3)(-5, 3) and (7,2)(7, -2).
  3. Find RR dividing A(2,3)A(2, -3) and B(8,9)B(8, 9) in ratio 1:21 : 2 internally.
  4. Find RR dividing A(1,4)A(1, 4) and B(7,2)B(7, -2) externally in ratio 3:13 : 1.
  5. Midpoint of (p,q)(p, q) and (p+4,q6)(p + 4, q - 6).
  6. Slope of the line joining (3,5)(-3, 5) and (4,2)(4, -2).
  7. If three points A,B,CA, B, C have slopes of ABAB and BCBC equal, what can you conclude?
  8. Find the coordinates of the points that trisect the segment from (1,1)(1, 1) to (7,13)(7, 13).
  9. Are the points (2,1),(3,3),(8,5)(-2, 1), (3, 3), (8, 5) collinear?
  10. Find xx such that the slope of the line through (x,4)(x, 4) and (1,2)(1, 2) is 33.
  11. Show that the points A(1,1)A(1, 1), B(4,5)B(4, 5), C(8,8)C(8, 8) form a right triangle.
  12. Find the length of the median from A(2,5)A(2, 5) to side BCBC where B=(4,7)B = (4, 7) and C=(2,3)C = (-2, 3).

Pitfalls / Tricks

  • For a vertical line (x1=x2x_1 = x_2), slope is undefined , not zero.
  • The section formula gives the coordinates with the same orientation as PP to QQ. Be careful which point is which.
  • For external division, the formula has a minus sign.
  • Insight. Every geometric question , collinearity, perpendicularity, midpoint, division , has a one-line algebraic test. Knowing those tests is half the chapter.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Distance, section, slope
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6