πŸš€ 50 free questions/month

Geometry and Trigonometry - Coordinate geometry: distance, midpoint, and gradient of a line

Grade 10IB

πŸ”‘Concepts

β€’

The gradient (slope) of a line measures its steepness and direction. It is calculated as the change in yy (rise) divided by the change in xx (run): m=y2βˆ’y1x2βˆ’x1m = \frac{y_{2} - y_{1}}{x_{2} - x_{1}}. A positive gradient slopes upwards, while a negative gradient slopes downwards.

A coordinate plane showing a line segment between points A(1,1) and B(5,4) with rise and run indicated.
β€’

The distance between two points is the length of the straight line segment connecting them. It is derived from Pythagoras' Theorem: d=(x2βˆ’x1)2+(y2βˆ’y1)2d = \sqrt{(x_{2} - x_{1})^{2} + (y_{2} - y_{1})^{2}}.

β€’

The midpoint is the exact center point between two coordinates. It is found by averaging the xx-coordinates and the yy-coordinates separately: M=(x1+x22,y1+y22)M = \left( \frac{x_{1} + x_{2}}{2}, \frac{y_{1} + y_{2}}{2} \right).

β€’

The equation of a straight line is typically written in the gradient-intercept form y=mx+cy = mx + c, where mm is the gradient and cc is the yy-intercept (the point where the line crosses the yy-axis).

Graph showing the y-intercept c where the line crosses the vertical axis.

πŸ“Formulae

Gradient: m=y2βˆ’y1x2βˆ’x1m = \frac{y_{2} - y_{1}}{x_{2} - x_{1}}

Distance: d=(x2βˆ’x1)2+(y2βˆ’y1)2d = \sqrt{(x_{2} - x_{1})^{2} + (y_{2} - y_{1})^{2}}

Midpoint: M=(x1+x22,y1+y22)M = \left( \frac{x_{1} + x_{2}}{2}, \frac{y_{1} + y_{2}}{2} \right)

Equation of a line: y=mx+cy = mx + c

πŸ’‘Examples

Problem 1:

Given two points A(βˆ’2,3)A(-2, 3) and B(4,11)B(4, 11), calculate the gradient, the midpoint, and the distance between them.

Solution:

  1. Gradient (mm): m=11βˆ’34βˆ’(βˆ’2)=86=43m = \frac{11 - 3}{4 - (-2)} = \frac{8}{6} = \frac{4}{3}.
  2. Midpoint (MM): M=(βˆ’2+42,3+112)=(22,142)=(1,7)M = \left( \frac{-2 + 4}{2}, \frac{3 + 11}{2} \right) = \left( \frac{2}{2}, \frac{14}{2} \right) = (1, 7).
  3. Distance (dd): d=(4βˆ’(βˆ’2))2+(11βˆ’3)2=62+82=36+64=100=10d = \sqrt{(4 - (-2))^{2} + (11 - 3)^{2}} = \sqrt{6^{2} + 8^{2}} = \sqrt{36 + 64} = \sqrt{100} = 10.

Explanation:

To solve this, we identify x1=βˆ’2,y1=3,x2=4,y2=11x_1 = -2, y_1 = 3, x_2 = 4, y_2 = 11 and substitute them into the standard formulas for coordinate geometry.

Problem 2:

The gradient of a line connecting P(1,4)P(1, 4) and Q(5,k)Q(5, k) is 22. Find the value of kk.

Solution:

  1. Use the gradient formula: m=y2βˆ’y1x2βˆ’x1m = \frac{y_{2} - y_{1}}{x_{2} - x_{1}}.
  2. Substitute known values: 2=kβˆ’45βˆ’12 = \frac{k - 4}{5 - 1}.
  3. Simplify the denominator: 2=kβˆ’442 = \frac{k - 4}{4}.
  4. Multiply both sides by 4: 8=kβˆ’48 = k - 4.
  5. Solve for kk: k=12k = 12.

Explanation:

This problem requires rearranging the gradient formula to solve for an unknown coordinate component when the slope is already known.

Problem 3:

Find the length of the segment CDCD where CC is at (2,βˆ’1)(2, -1) and DD is at (βˆ’4,7)(-4, 7).

Line segment CD plotted on a coordinate plane from (2,-1) to (-4,7).

Solution:

x1=2,y1=βˆ’1,x2=βˆ’4,y2=7x_{1} = 2, y_{1} = -1, x_{2} = -4, y_{2} = 7 d=(βˆ’4βˆ’2)2+(7βˆ’(βˆ’1))2d = \sqrt{(-4 - 2)^{2} + (7 - (-1))^{2}} d=(βˆ’6)2+(8)2d = \sqrt{(-6)^{2} + (8)^{2}} d=36+64d = \sqrt{36 + 64} d=100d = \sqrt{100} d=10d = 10 units

Explanation:

Substitute the coordinates into the distance formula. Be careful with negative signs when calculating the differences; subtracting a negative results in addition.

Problem 4:

A line passes through the point R(3,5)R(3, 5) and has a midpoint M(5,2)M(5, 2) with point SS. Determine the coordinates of SS.

A line segment with endpoints R and S, showing M as the center point.

Solution:

Let S=(x,y)S = (x, y). 3+x2=5β€…β€ŠβŸΉβ€…β€Š3+x=10β€…β€ŠβŸΉβ€…β€Šx=7\frac{3 + x}{2} = 5 \implies 3 + x = 10 \implies x = 7 5+y2=2β€…β€ŠβŸΉβ€…β€Š5+y=4β€…β€ŠβŸΉβ€…β€Šy=βˆ’1\frac{5 + y}{2} = 2 \implies 5 + y = 4 \implies y = -1 S=(7,βˆ’1)S = (7, -1)

Explanation:

Use the midpoint formula in reverse. Set the average of the endpoints equal to the known midpoint coordinates and solve for the unknown variables xx and yy.

Finished reading?

Practice Coordinate geometry: distance, midpoint, and gradient of a line with a worksheet. Answers included.