impera Open Impera

IB MYP Mathematics · Geometry and trigonometry

Coordinate geometry

1Midpoints

Coordinate geometry uses algebra to describe points, lines and shapes on a grid.

The midpoint of a line segment is the point halfway between its ends. Find it by averaging the coordinates.

$$\text{midpoint} = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right)$$

Worked example

The midpoint of A(1, 2) and B(7, 10)

  1. $x$: (1 + 7) ÷ 2 = 4.
  2. $y$: (2 + 10) ÷ 2 = 6.
  3. Midpoint: (4, 6).
Worked example

Finding an endpoint

  1. M(3, −1) is the midpoint of P(−2, 4) and Q. Find Q.
  2. From P to M: 5 right and 5 down.
  3. Repeat from M: (3 + 5, −1 − 5) = (8, −6).
  4. Check: the midpoint of (−2, 4) and (8, −6) is (3, −1).
Check yourself

What is the midpoint of (2, 8) and (6, −4)?

  • (4, 6)

  • (4, 2)

  • (2, 6)

  • (8, 4)

Show the answer

(4, 2)

Average the x values and the y values: (8 ÷ 2, 4 ÷ 2).

2Distance between two points

The distance between two points comes from Pythagoras' theorem: the differences in $x$ and $y$ are the two shorter sides of a right-angled triangle.

$$d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}$$

Worked example

The length of AB for A(1, 2) and B(7, 10)

  1. Difference in $x$: 6. Difference in $y$: 8.
  2. $d = \sqrt{36 + 64} = \sqrt{100} = 10$.
Worked example

With negatives. P(−3, 4) and Q(2, −8)

  1. Difference in $x$: 2 − (−3) = 5. Difference in $y$: −8 − 4 = −12.
  2. $d = \sqrt{25 + 144} = \sqrt{169} = 13$.
  3. Squaring removes the negative sign, so the order of subtraction does not matter here.

Leave answers as exact square roots (such as $\sqrt{20} = 2\sqrt{5}$) unless a decimal is asked for.

Check yourself

What is the distance between (1, 1) and (4, 5)?

  • 5

  • 25

  • 7

  • 3.5

Show the answer

5

√(3² + 4²) = √25.

3Gradients and equations of lines

The gradient of the line through two points is $\dfrac{y_2 - y_1}{x_2 - x_1}$.

  • Parallel lines have equal gradients.
  • Perpendicular lines have gradients that multiply to −1.

To find the equation of a line, use $y = mx + c$, or the form $y - y_1 = m(x - x_1)$, which avoids a separate step for $c$.

Worked example

The line through A(1, 2) and B(7, 10)

  1. Gradient: (10 − 2) ÷ (7 − 1) = 8/6 = 4/3.
  2. $y - 2 = \frac{4}{3}(x - 1)$.
  3. Multiply by 3: $3y - 6 = 4x - 4$.
  4. $3y = 4x + 2$, or $4x - 3y + 2 = 0$.
Worked example

The perpendicular bisector of AB

  1. It passes through the midpoint (4, 6).
  2. Its gradient is the negative reciprocal of 4/3: −3/4.
  3. $y - 6 = -\frac{3}{4}(x - 4)$.
  4. $4y - 24 = -3x + 12$, so $3x + 4y = 36$.
  5. Every point on this line is the same distance from A as from B.
Check yourself

A line has gradient 2/5. What is the gradient of a line perpendicular to it?

  • 5/2

  • −5/2

  • 2/5

  • −2/5

Show the answer

−5/2

The negative reciprocal: turn the fraction over and change the sign.

4Proving properties of shapes

Coordinates let you prove facts about shapes by calculation. Choose the right tool.

  • Equal lengths: use the distance formula.
  • Parallel sides: show the gradients are equal.
  • Right angles: show the gradients multiply to −1.
  • Bisecting diagonals: show they share a midpoint.
Worked example

Show that A(0, 0), B(4, 2), C(3, 4) is a right-angled triangle

  1. Gradient of AB: 2/4 = 1/2.
  2. Gradient of BC: (4 − 2) ÷ (3 − 4) = −2.
  3. Product: ½ × (−2) = −1.
  4. AB is perpendicular to BC, so the triangle has a right angle at B.
Worked example

Show that P(1, 1), Q(5, 2), R(6, 6), S(2, 5) is a parallelogram

  1. Midpoint of PR: (3.5, 3.5).
  2. Midpoint of QS: (3.5, 3.5).
  3. The diagonals bisect each other, so PQRS is a parallelogram.
  4. Further: PQ = $\sqrt{17}$ and QR = $\sqrt{17}$, so all sides are equal and it is a rhombus.

End a proof with a sentence stating what you have shown and why.

Check yourself

How would you show that two sides of a quadrilateral are parallel?

  • Show that their gradients multiply to −1

  • Show that their lengths are equal

  • Show that their gradients are equal

  • Show that their midpoints are the same

Show the answer

Show that their gradients are equal

Parallel lines have the same gradient.

5Intersections and areas

The point where two lines intersect satisfies both equations, so solve them simultaneously.

Worked example

Where do y = 2x − 1 and y = −x + 8 meet?

  1. $2x - 1 = -x + 8$.
  2. $3x = 9$, so $x = 3$.
  3. $y = 2(3) - 1 = 5$.
  4. They meet at (3, 5).

Intercepts: a line crosses the $y$-axis where $x = 0$ and the $x$-axis where $y = 0$. For $3x + 4y = 36$: the $x$-intercept is (12, 0) and the $y$-intercept is (0, 9).

Areas on a grid: find a base and a perpendicular height, or box the shape in a rectangle and subtract the corner triangles.

Worked example

The triangle formed by 3x + 4y = 36 and the axes

  1. The vertices are (0, 0), (12, 0) and (0, 9).
  2. Base 12, height 9.
  3. Area: ½ × 12 × 9 = 54 square units.
Worked example

A triangle not aligned with the axes: (1, 1), (5, 2), (3, 6)

  1. Enclose it in the rectangle from (1, 1) to (5, 6): area 4 × 5 = 20.
  2. Subtract three right-angled triangles: ½ × 4 × 1 = 2; ½ × 2 × 4 = 4; ½ × 2 × 5 = 5.
  3. Area: 20 − 11 = 9 square units.
Check yourself

Where does the line 2x + 5y = 20 cross the x-axis?

  • (0, 4)

  • (0, 10)

  • (4, 0)

  • (10, 0)

Show the answer

(10, 0)

Put y = 0: 2x = 20.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera