Learn on your own. Parents beside you. Teachers guide.

Lemonmath
Tiếng Việt

Coordinate geometry

Lesson 2.3 · 45 min read · Updated

Two friends live at A(1, 2)A(1,\ 2) and B(7, 10)B(7,\ 10) on a town map, with units in kilometres. They want to meet halfway. Where should they meet, how far apart do they live, and which points are exactly the same distance from both homes? A sketch helps, but three short formulas answer all three questions exactly.

Coordinate geometry turns pictures into numbers. Once a point has coordinates and a line has an equation, questions about distance, direction and meeting points become calculations. The ideas are few, and they come back in almost every other part of the course, so it pays to make them second nature.

Gradient, length and midpoint

For points A(x1, y1)A(x_1,\ y_1) and B(x2, y2)B(x_2,\ y_2): gradient=y2−y1x2−x1,AB=(x2−x1)2+(y2−y1)2,midpoint=(x1+x22, y1+y22).\text{gradient}=\frac{y_2-y_1}{x_2-x_1},\qquad AB=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2},\qquad \text{midpoint}=\left(\frac{x_1+x_2}{2},\ \frac{y_1+y_2}{2}\right). The gradient tells you how steep the line is: it is the change in yy for each 11 unit increase in xx. The length formula is Pythagoras' theorem applied to the horizontal and vertical steps between the points, and the midpoint is simply the average of the coordinates.

Equations of straight lines

A line with gradient mm and yy-intercept cc has equation y=mx+cy=mx+c. Through a point (x_1,\ y_1) with gradient m, the line is y-y_1=m(x-x_1). A line can also be written as ax+by=c; to find its gradient, rearrange to make y the subject.

Parallel lines have equal gradients. Perpendicular lines have gradients that multiply to -1: if one gradient is m, the other is -\dfrac1m. Why? Turning a line through 90^\circ swaps its horizontal and vertical steps and changes one sign, so \dfrac{\text{rise}}{\text{run}} becomes -\dfrac{\text{run}}{\text{rise}}.

Perpendicular bisectors and intersections

The perpendicular bisector of AB passes through the midpoint of AB and is perpendicular to it. Every point on it is the same distance from A and from B, so it answers the friends' third question.

2468101224681012xyOABM
The segment AB and its perpendicular bisector

To find where two lines meet, solve their equations simultaneously.

Now look back at the two friends. They live 10 km apart, they can meet at (4,\ 6), and any café on the line 3x+4y=36 is exactly as far from one home as from the other. Three formulas and one idea, perpendicular gradients, answered everything. When a coordinate question looks long, it is usually these same few tools used one after another, so start by asking which of them the question needs: a gradient, a length, a midpoint or an equation.

A sketch is still worth the few seconds it takes. It does not need to be accurate; it only needs to show roughly where the points are. Then, if your midpoint lands far from both points, or a line that should go uphill has a negative gradient, the sketch tells you at once that something has gone wrong.

Similar exercises

Exercise 1

Find the gradient of the line through (-2,\ 5) and (4,\ -1).

What you need and how to start

What you need: m=\dfrac{y_2-y_1}{x_2-x_1}.

Show solution

The change in y is -1-5=-6 and the change in x is 4-(-2)=6.

So the gradient is \dfrac{-6}{6}=-1: the line goes down 1 unit for every 1 unit to the right.

Answer. -1.

Exercise 2

Find the equation of the line through (3,\ -1) and (5,\ 7).

What you need and how to start

What you need: find the gradient, then use one of the points.

Show solution

The gradient is the change in y divided by the change in x: \dfrac{7-(-1)}{5-3}=\dfrac82=4. Either point can then be used; we take the first.

Through (3,\ -1): y-(-1)=4(x-3), so y+1=4x-12 and y=4x-13. Check with (5,\ 7): 4(5)-13=7.

So the line is y=4x-13.

Answer. y=4x-13.

Exercise 3

Find the gradient of a line perpendicular to 2x-5y=10.

What you need and how to start

What you need: rearrange to y=\dots to find the gradient.

Show solution

Rearranging, 5y=2x-10, so y=\dfrac25x-2 and the gradient is \dfrac25.

A perpendicular line has gradient equal to the negative reciprocal, -\dfrac52.

So the perpendicular gradient is -\dfrac52.

Answer. -\dfrac52.

Exercise 4

Find the midpoint and the length of the segment joining (-3,\ 4) and (5,\ -2).

What you need and how to start

What you need: average the coordinates; use Pythagoras for the length.

Show solution

The midpoint is \left(\dfrac{-3+5}{2},\ \dfrac{4+(-2)}{2}\right)=(1,\ 1).

The steps are 5-(-3)=8 and -2-4=-6, so the length is \sqrt{8^2+6^2}=\sqrt{100}=10.

So the midpoint is (1,\ 1) and the length is 10 units.

Answer. (1,\ 1); 10.

Exercise 5

Are the lines y=-2x+3 and 4x+2y=7 parallel? Explain.

What you need and how to start

What you need: compare the gradients.

Show solution

The first line has gradient -2. Rearranging the second, 2y=-4x+7, so y=-2x+3.5, which also has gradient -2.

The gradients are equal and the intercepts are different, so the lines are parallel and distinct.

So yes, the lines are parallel.

Answer. Yes; both have gradient -2.

Applied exercises

Exercise 6

The triangle PQR has vertices P(0,\ 0), Q(6,\ 2) and R(2,\ 6).

a) Show that the triangle is isosceles.

b) Find its area.

What you need and how to start

What you need: compare PQ and PR; the line from P to the midpoint of QR is a height.

Show solution

a) PQ=\sqrt{36+4}=\sqrt{40} and PR=\sqrt{4+36}=\sqrt{40}, so PQ=PR and the triangle is isosceles.

b) The midpoint of QR is M(4,\ 4). In an isosceles triangle, PM is perpendicular to QR, so it is the height. QR=\sqrt{16+16}=\sqrt{32} and PM=\sqrt{16+16}=\sqrt{32}, so the area is \tfrac12\times\sqrt{32}\times\sqrt{32}=16.

So the triangle is isosceles with area 16 square units.

Answer. a) PQ=PR=\sqrt{40}; b) 16.

Exercise 7

The line through (1,\ k) and (4,\ 10) has gradient 2. Find k.

What you need and how to start

What you need: \dfrac{10-k}{4-1}=2.

Show solution

The gradient is \dfrac{10-k}{3}, so \dfrac{10-k}{3}=2.

Then 10-k=6, so k=4. Check: from (1,\ 4) to (4,\ 10) the rise is 6 over a run of 3.

So k=4.

Answer. k=4.

Exercise 8

The line 3x+4y=36 meets the axes at P and Q. Find the area of the triangle OPQ, where O is the origin.

What you need and how to start

What you need: set y=0, then x=0.

Show solution

When y=0, 3x=36, so P=(12,\ 0). When x=0, 4y=36, so Q=(0,\ 9).

The triangle OPQ has a right angle at O, with legs 12 and 9, so its area is \tfrac12\times12\times9=54.

So the area is 54 square units.

Answer. 54.

Exercise 9 Challenge

Find the point that is the same distance from (0,\ 0), (6,\ 0) and (0,\ 8).

What you need and how to start

What you need: the point lies on two perpendicular bisectors.

Show solution

The perpendicular bisector of (0,\ 0) and (6,\ 0) is the vertical line x=3, and that of (0,\ 0) and (0,\ 8) is the horizontal line y=4.

They meet at (3,\ 4), which is \sqrt{9+16}=5 from (0,\ 0), and also \sqrt{9+16}=5 from (6,\ 0) and from (0,\ 8).

So the point is (3,\ 4), the centre of the circle through all three points.

Answer. (3,\ 4).

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. The gradient of y=-3x+2 is
Question 2. A line has gradient \dfrac23. A perpendicular line has gradient
Question 3. The midpoint of (2,\ 8) and (6,\ 0) is
Question 4. The y-intercept of 2x+y=5 is

Part II. True or false

Question 1. Consider the line y=2x-4. Decide whether each statement is true or false.
a) Its gradient is 2.
b) It passes through (2,\ 0).
c) Its y-intercept is -4.
d) It is parallel to y=-2x.

Part III. Short answer

Question 1. Find the distance from (0,\ 0) to (6,\ 8).

Question 2. Find the gradient of the line through (1,\ 3) and (3,\ 11).

Show answers and explanations
  1. Part I, question 1: B. In y=mx+c, m is the gradient.
  2. Part I, question 2: A. The negative reciprocal.
  3. Part I, question 3: C. \left(\dfrac{2+6}{2},\ \dfrac{8+0}{2}\right).
  4. Part I, question 4: D. y=-2x+5.
  5. Part II, question 1: a) True; b) True; c) True; d) False. Parallel lines need equal gradients.
  6. Part III, question 1: 10. \sqrt{36+64}=10.
  7. Part III, question 2: 4. \dfrac{11-3}{3-1}=4.
📈 My progress

Finding Lemonmath useful?

Send this page to a friend, a parent or a teacher who could use it. Studying on your own is easier with company, and Lemonmath is free for everyone.

Facebook ✉ Email