🏰 Geometry Kingdom · Geometry

Coordinate Geometry

Use the distance, midpoint and slope formulas to measure and classify figures drawn on the coordinate plane, and to prove that lines are parallel or perpendicular.

In short

  • The midpoint ADDS the two coordinates and halves; the distance SQUARES the two changes, adds, and takes a square root; the slope puts the change in y over the change in x. Every question in this skill is one of those three, run forwards or backwards.
  • Equal slopes mean parallel, and slopes whose product is -1 mean perpendicular. A vertical segment has no slope number, so compare it by looking: vertical is parallel to vertical and perpendicular to horizontal.
  • A ratio a : b cuts a segment into a + b equal parts, so the point sits a / (a + b) of the way along β€” measured from the end the segment is directed FROM.
  • Squared lengths settle whether sides are equal and slopes settle whether they are parallel or perpendicular, and between them they name any triangle or quadrilateral from its corners alone.
  • The shoelace formula gives an exact area with no square roots, as long as the corners are listed in order round the shape and the final difference is halved.

Three formulas, and where they come from

Master Pytha surveys Pythagoras Pass with pegs and a chain, and he never measures anything twice: once two pegs have coordinates, everything about the segment between them can be calculated. Three formulas do the whole job, and none of them is worth memorising until you have seen where it comes from.

The midpoint is the average of the two ends, taken one coordinate at a time:

M = ((x1 + x2) / 2, (y1 + y2) / 2)

Halfway across and halfway up is halfway along β€” that is the whole idea. Notice that it ADDS the coordinates and then halves. Subtracting and halving gives you half the journey, which is a direction, not a place.

The distance is the Pythagorean theorem wearing coordinates. Draw a right triangle under the segment with one leg running across and one running up, and the segment itself is the hypotenuse:

d = sqrt((x2 - x1)2 + (y2 - y1)2)

The two subtractions can come out negative, and it does not matter in the least, because squaring makes both of them positive. What does matter is the square root at the end: stop one step early and you have reported d2 instead of d.

The slope measures the steepness of the segment as rise over run:

m = (y2 - y1) / (x2 - x1)

The change in y sits on top. If the two pegs happen to have the same x-coordinate the run is 0, and since nothing may be divided by 0, that segment has no slope number at all β€” it is vertical, and you say so in words.

Parallel and perpendicular, decided by slope alone

Two segments are parallel when they have exactly the same slope. That is the easy test, and it stays true however long the segments are and wherever they sit on the grid β€” slope is about direction, not position.

Two segments are perpendicular when their slopes multiply to -1. Another way to say the same thing: one slope is the other one turned upside down AND given the opposite sign. That is why 2/3 and -3/2 are perpendicular, while 2/3 and 3/2 are not, and neither are 2/3 and -2/3.

parallel: m1 = m2 perpendicular: (m1)(m2) = -1

Both tests need the two slopes worked out the same way round. Take the points in one order for the first fraction and the other order for the second, and you flip the sign of one slope without meaning to β€” which turns a parallel pair into a pair that looks like nothing at all.

Vertical segments are the one case where multiplying is no help, because a vertical segment has no slope number to multiply. Handle it by looking instead:

  • vertical with vertical: parallel.
  • vertical with horizontal (slope 0): perpendicular.
  • vertical with anything slanted: neither.

A slope of 0 is a perfectly good number, by the way, and it is not the same thing as having no slope. A horizontal segment has slope 0; a vertical one has no slope at all.

Cutting a segment in a given ratio

A midpoint splits a segment 1 : 1. Any other split is asked for as a ratio, and the trap is built into the way ratios are written.

If P divides the directed segment from A to B so that AP : PB = 2 : 3, then AB has been cut into 2 + 3 = 5 equal parts and P sits after two of them. So P is 2/5 of the way from A to B, not 2/3. The parts have to be added before anything is divided.

The word directed tells you which end to count from. "From A to B" means start at A, and the first number of the ratio is the piece nearest A. Read the ratio from the wrong end and you land at the mirror-image point, which is a different place unless the ratio happens to be 1 : 1.

The method is then three short steps:

change from A to B: (x2 - x1, y2 - y1) take your share: (a / (a + b)) of each change add the share to A: P = (x1 + share across, y1 + share up)

For example, from A(1, 2) to B(11, 7) in the ratio 3 : 2, the whole change is (10, 5), the share is 3/5 of each, which is (6, 3), and P = (1 + 6, 2 + 3) = (7, 5). The last step is the one people drop: the share tells you how far to travel, and travelling has to start from A.

Proving what a figure is from its corners

Give a figure coordinates and its name stops being a matter of opinion. Two tools settle everything.

Squared lengths decide whether sides are equal. You never need the square roots for this: if AB2 = BC2 then AB = BC, because both lengths are positive. Keeping the squares makes the arithmetic exact and the comparison instant.

Slopes decide whether sides are parallel or perpendicular, exactly as in the section above.

For a triangle, ask two questions. Are any two sides equal? Is any corner a right angle? A corner is right when the two smaller squared sides add to the largest one β€” the converse of the Pythagorean theorem β€” or when the slopes of the two sides meeting there multiply to -1. The two answers together give the description, which is why the options are written as pairs of facts: "right-angled and isosceles", "isosceles, but not right-angled", "right-angled, but not isosceles", "scalene, with no right angle". One and only one of them can be true.

Equilateral is never an option on a grid. No triangle with whole-number corners can have all three sides equal, so if you find yourself choosing it, two of the squared sides will disagree on a second look.

For a quadrilateral with its corners listed in order, work through the family in order of fussiness:

  • both pairs of opposite sides parallel: a parallelogram at least. Then equal adjacent sides make it a rhombus, a right angle makes it a rectangle, and both together make it a square.
  • exactly one pair of opposite sides parallel: a trapezoid.
  • no parallel sides but two pairs of equal sides sitting next to each other: a kite.

Every square is also a rectangle, a rhombus and a parallelogram, so the question always asks for the most specific name β€” the smallest family the shape belongs to. Stopping at "parallelogram" when the corners are square is the commonest way to lose a right answer.

Measuring on the grid, and how to write the answer

Perimeter is the sum of the side lengths, one distance formula per side. Sides that run along a grid line need no formula at all: just subtract the coordinate that changes. Round only once, at the very end, after every side has been added.

Area is easiest with the shoelace formula, which needs the corners listed in order round the shape and no square roots at all. Pair each x with the NEXT y and add those products; pair each y with the next x and add those; subtract, take the size of the result, and halve it. For a triangle A(1, 1), B(5, 2), C(2, 6):

one way: (1)(2) + (5)(6) + (2)(1) = 34 other way: (1)(5) + (2)(2) + (6)(1) = 15 area = |34 - 15| / 2 = 19 / 2 = 9.5

The halving at the end is the step that goes missing most often. A negative difference simply means you walked round the shape the other way, so drop the minus sign.

Now the conventions this skill uses when it asks you for an answer.

  • A point is typed as an ordered pair. "(3, -2)", "3, -2" and "x = 3, y = -2" are all accepted. When a midpoint lands between grid lines, write the half as a decimal β€” "2.5" β€” or as a fraction, "5/2"; both pass, and the prompt says decimals are fine.
  • A length or a perimeter is a single number. When it comes out whole, give the whole number. When it does not, the prompt says "round to 1 decimal place", so sqrt(97) is answered 9.8.
  • An area is a single number too, and it may end in .5. A lattice triangle very often has an area like 9.5, so decimals are welcome and 19/2 is accepted as well.
  • Classifications are multiple choice, and the options are written so that exactly one of them is true: the most specific name for a quadrilateral, and a description of a triangle that states both facts about it. Here "trapezoid" means exactly one pair of parallel sides, so a parallelogram is never called one.

Worked examples

Example 1

M(1, -3) is the midpoint of segment AB, and one endpoint is A(-1, -5). Where is B?

  1. This is the midpoint formula running backwards: the midpoint is known and an endpoint is missing.
  2. Find the step from A to M: across 1 - (-1) = 2, up -3 - (-5) = 2.
  3. M is halfway along, so the same step again lands on B: x = 1 + 2 = 3 and y = -3 + 2 = -1.
  4. Check it with the formula forwards: ((-1 + 3) / 2, (-5 + (-1)) / 2) = (1, -3), which is M. So B = (3, -1).

Example 2

Segment AB joins A(-2, -4) to B(0, -7). Segment CD joins C(-1, -3) to D(5, 1). Are AB and CD parallel, perpendicular, or neither?

  1. Slope of AB = (-7 - (-4)) / (0 - (-2)) = -3 / 2.
  2. Slope of CD = (1 - (-3)) / (5 - (-1)) = 4 / 6 = 2 / 3. Take both points in the same order in both fractions.
  3. The slopes are not equal, so the segments are not parallel.
  4. Multiply them: (-3/2)(2/3) = -6/6 = -1. A product of -1 means the segments are perpendicular.

Example 3

Point P lies on the directed segment from A(1, 2) to B(11, 2) and divides it so that AP : PB = 3 : 2. Where is P?

  1. Add the parts of the ratio first: 3 + 2 = 5, so AB is cut into five equal pieces and P sits after three of them β€” 3/5 of the way from A to B.
  2. Whole change from A to B: across 11 - 1 = 10, up 2 - 2 = 0.
  3. Take 3/5 of each change: across 3/5 of 10 = 6, up 3/5 of 0 = 0.
  4. Add the share to A, because the segment is directed from A: P = (1 + 6, 2 + 0) = (7, 2). Adding it to B instead would land at the point 3/5 of the way back, which is a different place.

Example 4

The vertices of quadrilateral ABCD, in order, are A(-2, -1), B(3, -1), C(7, 2), D(2, 2). What is the most specific name for ABCD?

  1. Side vectors in order: A to B is (5, 0), B to C is (4, 3), C to D is (-5, 0), D to A is (-4, -3).
  2. AB and DC point the same way, and BC and AD point the same way, so both pairs of opposite sides are parallel: ABCD is a parallelogram at least.
  3. Squared side lengths: AB2 = 25, BC2 = 25, CD2 = 25, DA2 = 25. All four sides are equal, so it is a rhombus.
  4. Test a corner for squareness: the slopes at B are 0 (for AB) and 3/4 (for BC), whose product is 0, not -1. The corners are not right angles, so the most specific name is rhombus, not square.

Practice problems, with solutions

Three problems of increasing difficulty, each with the full working. In the game these are generated fresh every time; these three are fixed so this page always shows the same ones.

Problem 1

Difficulty 1 of 5

Master Pytha has driven two survey pegs into the pass: A(4, 0) and B(8, 4). Where is the midpoint M of segment AB? Give the ordered pair; decimals are fine.

Answer: (6, 2)

  1. Midpoint formula: M = ((x1 + x2) / 2, (y1 + y2) / 2).
  2. x: (4 + 8) / 2 = 12 / 2 = 6.
  3. y: (0 + 4) / 2 = 4 / 2 = 2.
  4. M = (6, 2).

Problem 2

Difficulty 3 of 5

Master Pytha's survey triangle has corners A(2, -3), B(8, 2) and C(6, -7). How long is side CA? Round to 1 decimal place.

Answer: 5.7 units

  1. Side CA joins (6, -7) to (2, -3).
  2. Across: 2 - (6) = -4. Up: -3 - (-7) = 4.
  3. CA2 = (-4)2 + (4)2 = 16 + 16 = 32.
  4. CA = sqrt(32) = 5.6569..., which is 5.7 to 1 decimal place.

Problem 3

Difficulty 4 of 5

Segment AB joins A(1, -4) to B(0, -3). Segment CD joins C(4, -4) to D(9, -4). Are AB and CD parallel, perpendicular, or neither?

  1. parallel
  2. neither parallel nor perpendicular
  3. perpendicular

Answer: B. neither parallel nor perpendicular

  1. Slope of AB = (-3 - (-4)) / (0 - (1)) = -1.
  2. Slope of CD = (-4 - (-4)) / (9 - (4)) = 0.
  3. The slopes are -1 and 0; their product is 0.
  4. AB and CD are neither parallel nor perpendicular.

Common mistakes

  • Subtracting instead of adding in the midpoint formula: answering ((x2 - x1) / 2, (y2 - y1) / 2). That is half the journey from A to B, not the place halfway along it.
  • Stopping before the square root, so the answer is d2 rather than d. If the two changes were 9 and 4, the distance is sqrt(97), which is about 9.8, not 97.
  • Writing the slope as run over rise. The change in y always goes on top; turning the fraction over measures a different quantity and gives a different line.
  • Reading a ratio as a fraction: treating 2 : 3 as 2/3 of the way along instead of 2/5. The parts must be added before anything is divided.
  • Counting a partition point from the wrong end. AP : PB names AP first, so the counting starts at A; starting at B lands on the mirror-image point.
  • Calling a square a rectangle, or a rhombus a parallelogram, when the question asks for the most specific name. Both answers are true, but only the smallest family that fits is the one wanted.
  • Forgetting to halve the shoelace difference. That difference is twice the area every time, whatever the shape.

What you should be able to do

  • Find the midpoint of a segment and the distance between two points.
  • Use slopes to decide whether two segments are parallel, perpendicular or neither.
  • Find the point that divides a segment in a given ratio.
  • Classify a triangle or quadrilateral from the coordinates of its vertices and find its perimeter or area.

Where this fits in the curriculum

Common Core

  • HSG-GPE.B.4

    High school β€” Use coordinates to prove simple geometric theorems algebraically.

  • HSG-GPE.B.5

    High school β€” Prove the slope criteria for parallel and perpendicular lines and use them to solve geometric problems.

  • HSG-GPE.B.6

    High school β€” Find the point on a directed line segment between two given points that partitions the segment in a given ratio.

  • HSG-GPE.B.7

    High school β€” Use coordinates to compute perimeters of polygons and areas of triangles and rectangles, for example using the distance formula.

SAT

Learn these first

This leads on to