Length of an Interval
The length of an interval on the number plane is found with Pythagoras' theorem: the interval is the longest side of a right-angled triangle whose two shorter sides are the run and the rise. This NSW Year 9 Core maths subtopic is Stage 5 Core content under NESA outcome MA5‑LIN‑C‑01.
You will find the run and rise from two points, including negative coordinates where subtracting a negative makes the run longer, and calculate lengths such as the distance from \((1,-2)\) to \((8,22)\), which is \(25\) units. You will handle horizontal and vertical intervals, round answers or leave them as surds, find perimeters of shapes on the plane, decide whether a triangle is isosceles or right-angled, use a map grid where \(1\) unit is \(100\) m, and find a missing coordinate. It is part of Year 9 Core Straight Line.
Every question with a fully worked solution.
- Length of an Interval - Video - Distance between two points Watch
Theory
The length of an interval is the distance between its two end points. Draw the run across and the rise up, and the interval becomes the hypotenuse of a right-angled triangle. This Year 9 maths page uses Pythagoras' theorem on the Cartesian plane to find distances, with negative coordinates, surds and rounding.
An interval is the part of a line between two points. Its length is the straight-line distance from one end to the other.
Go across from one point and up (or down) to the other. The distance across is the run, the difference of the \(x\)-coordinates. The distance up is the rise, the difference of the \(y\)-coordinates.
The run and the rise are the two shorter sides of a right-angled triangle. The interval is the hypotenuse, so Pythagoras' theorem gives its length.
If the two points have the same \(y\)-coordinate, the interval is horizontal and its length is just the run. If they have the same \(x\)-coordinate, it is vertical and its length is just the rise.
A length is never negative. It does not matter which point you start from.
For the points \((x_1, y_1)\) and \((x_2, y_2)\):
How to find the length of an interval
- Sketch the two points. If they share a coordinate, the interval is horizontal or vertical: just subtract.
- Find the run (\(x_2 - x_1\)) and the rise (\(y_2 - y_1\)). Take care when subtracting a negative.
- Square the run and the rise separately, then add them to get \(d^2\).
- Take the square root to get \(d\). Leave it as a surd, or round if the question asks.
- Check by counting squares on a grid, or by making sure \(d\) is longer than both the run and the rise.
(i) the interval from \(A(-3,4)\) to \(B(5,4)\)
(ii) the interval from \(P(4,-4)\) to \(Q(4,3)\).
(i) The \(y\)-coordinates are both \(4\), so \(AB\) is horizontal. Its length is the run.
| \(AB\) | \(=\) | \(5 - (-3)\) |
| \(\) | \(=\) | \(\mathbf{8} \text{ units}\) |
(ii) The \(x\)-coordinates are both \(4\), so \(PQ\) is vertical. Its length is the rise.
| \(PQ\) | \(=\) | \(3 - (-4)\) |
| \(\) | \(=\) | \(\mathbf{7} \text{ units}\) |
Subtracting a negative adds. Counting squares on the grid gives the same lengths.
The points are too far apart to count squares, so use the run, the rise and Pythagoras' theorem.
| \(\text{run}\) | \(=\) | \(8 - 1 = 7\) |
| \(\text{rise}\) | \(=\) | \(22 - (-2) = 24\) |
| \(d^2\) | \(=\) | \(7^2 + 24^2\) |
| \(\) | \(=\) | \(49 + 576 = 625\) |
| \(d\) | \(=\) | \(\sqrt{625} = \mathbf{25} \text{ units}\) |
| \(\text{run}\) | \(=\) | \(1 - (-4) = 5\) |
| \(\text{rise}\) | \(=\) | \(-3 - 2 = -5\) |
| \(d^2\) | \(=\) | \(5^2 + (-5)^2\) |
| \(\) | \(=\) | \(25 + 25 = 50\) |
| \(d\) | \(=\) | \(\sqrt{50} = 7.071\ldots\) |
| \(\) | \(\approx\) | \(\mathbf{7.1} \text{ units}\) |
The negative rise does no harm, because squaring makes it positive. Leave \(\sqrt{50}\) as it is if the question does not ask for decimals.
Work out the square of each side. There is no need to take square roots to compare them.
| \(AB^2\) | \(=\) | \(6^2 + 2^2 = 40\) |
| \(AC^2\) | \(=\) | \(2^2 + 6^2 = 40\) |
| \(BC^2\) | \(=\) | \((2 - 6)^2 + (6 - 2)^2\) |
| \(\) | \(=\) | \(16 + 16 = 32\) |
\(AB^2 = AC^2\), so \(AB = AC\) and the triangle is isosceles. Since \(32 + 40 \ne 40\), it is not right-angled.
Common pitfalls
Frequently asked questions
How do you find the length of an interval?
Find the run, the difference of the \(x\)-coordinates, and the rise, the difference of the \(y\)-coordinates. Square both, add them, and take the square root.
What is the distance formula?
\(d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}\). It is Pythagoras' theorem with the run and the rise as the shorter sides.
Does it matter which point is first in the distance formula?
No. Swapping the points changes the sign of the run and the rise, but squaring removes the sign, so the distance is the same.
How do you find the distance between two points with the same y-coordinate?
The interval is horizontal, so there is no rise. Subtract the \(x\)-coordinates. From \((-3, 4)\) to \((5, 4)\) the distance is \(5 - (-3) = 8\) units.
Can a distance be negative?
No. A distance is a length, so it is always positive or zero. A negative run or rise becomes positive when it is squared.