Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 9 Maths Advanced Coordinate Geometry and Graphs

Length of an Interval

20 practice questions 1 video lesson Theory + worked examples

The length of an interval on the number plane comes from Pythagoras' theorem, which gives the distance formula \(d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}\). This NSW Year 9 Advanced maths subtopic finds distances between points (NESA outcome MA5‑LIN‑C‑01).

You will find distances as whole numbers, surds in simplest form and rounded decimals, the sides and perimeters of triangles, and real distances on a map grid. You will show that a triangle is isosceles or right-angled, find an unknown coordinate from a given distance, find a point on the \(x\)-axis that is equally far from two points, and show that three points lie on a line. It is part of Year 9 Advanced Coordinate Geometry and Graphs.

Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 1 video(s)
  • Length of an Interval - Video - Distance between two points Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

The length of an interval is the distance between its end points. Draw the run and the rise, and the interval becomes the hypotenuse of a right-angled triangle, so Pythagoras' theorem gives its length. This Year 9 Advanced maths page covers the distance formula, exact surd answers, scale grids, classifying triangles, and working backwards from a distance to an unknown coordinate.

An interval is the part of a line between two end points. Its length is the distance between those points.

If the interval is horizontal or vertical, only one coordinate changes. Subtract that coordinate: \((-4,3)\) to \((-1,3)\) is \(-1-(-4)=3\) units, and \((2,0.5)\) to \((2,4)\) is \(4-0.5=3.5\) units.

Any other interval is the hypotenuse of a right-angled triangle. The horizontal side is the run (change in \(x\)) and the vertical side is the rise (change in \(y\)). Pythagoras' theorem gives the length: \(d^2 = \text{run}^2 + \text{rise}^2\).

Writing the run and rise with coordinates gives the distance formula. It is the same calculation, written once for every pair of points.

An answer such as \(\sqrt{52}\) is exact. Simplify it to simplest surd form, \(2\sqrt{13}\), or round it as the question asks.

An interval as the hypotenuse of a right-angled trianglePoints A and B joined by a red interval. Dashed horizontal and vertical sides, labelled run and rise, make a right-angled triangle with the interval as its hypotenuse. x y run rise d βˆ’1 1 2 3 4 5 6 7 8 βˆ’1 1 2 3 4 5 0 A(x1, y1) B(x2, y2)
The run and the rise are the two shorter sides. The interval is the hypotenuse, so Pythagoras' theorem gives its length \(d\).
Horizontal and vertical intervalsA horizontal interval from (-4, 3) to (-1, 3), 3 units long, and a vertical interval from (2, 0.5) to (2, 4), 3.5 units long. x y 3 units 3.5 units βˆ’4 βˆ’3 βˆ’2 βˆ’1 1 2 3 4 βˆ’3 βˆ’2 βˆ’1 1 2 3 4 0
Horizontal and vertical intervals need no Pythagoras: subtract the coordinates that change. Length is never negative.

For the points \((x_1,y_1)\) and \((x_2,y_2)\):

\[d = \sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\]
d=(x2−x1)2+(y2−y1)2

Squared form, best for comparing lengths and for unknown coordinates:

\[d^2 = (x_2-x_1)^2+(y_2-y_1)^2\]
d2=run2+rise2
IntervalLength
horizontal, \(y\) the same\(|x_2-x_1|\)
vertical, \(x\) the same\(|y_2-y_1|\)
sloping\(\sqrt{\text{run}^2+\text{rise}^2}\)
Simplest surd form. Take out the largest square factor: \(\sqrt{98} = \sqrt{49\times 2} = 7\sqrt{2}\).
Grid scales. If \(1\) unit stands for \(50\) m, find the length in grid units first, then multiply by \(50\) at the end.

How to find the length of an interval

  1. Sketch the two points and the right-angled triangle under the interval.
  2. Find the run and the rise by subtracting coordinates. Their signs do not matter once squared.
  3. Apply Pythagoras' theorem: \(d^2 = \text{run}^2 + \text{rise}^2\).
  4. Answer exactly (simplest surd) or rounded, as asked, with units if there is a scale.

Problems built on lengths

  1. Perimeter: find every side, keep exact values, and add. Round once, at the end.
  2. Isosceles or right-angled? Compare the three values of \(d^2\). Two equal means isosceles. If the two smaller add to the largest, the triangle is right-angled, with the right angle opposite the longest side. Its area is then half the product of the two shorter sides.
  3. Unknown coordinate: write \(d^2\) with the unknown in it, set it equal to the given length squared and solve. A squared bracket can give two answers (Example 3). Expand if both brackets contain the unknown.
  4. Same distance from two points: set the two squared lengths equal (Example 4). A point on the \(x\)-axis is \((x,0)\); on the \(y\)-axis it is \((0,y)\).
  5. Three points in a line: \(A\), \(B\) and \(C\) are collinear when \(AB + BC = AC\). Simplify each surd so they can be added.
Example 1 β€” Exact length and a decimal
Find the length of the interval joining \(A(-4,1)\) and \(B(2,-3)\). Give the exact answer in simplest surd form, then correct to one decimal place.
Solution

Take the run and the rise from \(A\) to \(B\). A negative rise is fine, because it is squared.

Interval from A(-4, 1) to B(2, -3)The interval AB with a dashed run of 6 and a dashed fall of 4. x y run 6 rise βˆ’4 O A(βˆ’4, 1) B(2, βˆ’3)
\(\text{run}\)\(=\)\(2-(-4) = 6\)
\(\text{rise}\)\(=\)\(-3-1 = -4\)
\(AB^2\)\(=\)\(6^2+(-4)^2\)
\(\)\(=\)\(36+16 = 52\)
\(AB\)\(=\)\(\sqrt{52} = \sqrt{4\times 13}\)
\(\)\(=\)\(\mathbf{2\sqrt{13}}\)
\(\)\(\approx\)\(\mathbf{7.2}\text{ units}\)
AB=52=213≈7.2

Simplify the surd by taking out the largest square factor, \(4\). Round only the decimal answer.

Example 2 β€” Classifying a triangle
Triangle \(PQR\) has vertices \(P(-1,-2)\), \(Q(3,1)\) and \(R(-1,3)\).
(i) Show that the triangle is isosceles.
(ii) Is it right-angled?
(iii) Find its perimeter, correct to one decimal place.
Solution

Work with the squared lengths. They are whole numbers, and they are what the comparisons need.

Triangle PQRTriangle with vertices P(-1, -2), Q(3, 1) and R(-1, 3). Sides PQ and PR are marked equal. x y O P(βˆ’1, βˆ’2) Q(3, 1) R(βˆ’1, 3)

(i)

\(PQ^2\)\(=\)\(4^2+3^2 = 25\)
\(QR^2\)\(=\)\((-4)^2+2^2 = 20\)
\(PR^2\)\(=\)\(0^2+5^2 = 25\)

\(PQ = PR = 5\), so the triangle is isosceles. \(PR\) is vertical, so its length is just \(3-(-2)=5\).

(ii) The longest sides are \(PQ\) and \(PR\). Test every pair: \(20+25=45 \ne 25\), and \(25+25=50\ne 20\). No pair of squares adds to the third, so it is not right-angled.

(iii)

\(\text{perimeter}\)\(=\)\(5+5+\sqrt{20}\)
\(\)\(=\)\(14.472\ldots\)
\(\)\(\approx\)\(\mathbf{14.5}\text{ units}\)
P=10+20≈14.5
Example 3 β€” An unknown coordinate
The point \(B(k,-1)\) is \(5\) units from \(A(-1,2)\). Find the possible values of \(k\).
Solution

Write the squared length with \(k\) in it and set it equal to \(5^2\).

\((k-(-1))^2+(-1-2)^2\)\(=\)\(5^2\)
\((k+1)^2+9\)\(=\)\(25\)
\((k+1)^2\)\(=\)\(16\)
\(k+1\)\(=\)\(4\ \text{ or }\ -4\)
\(k\)\(=\)\(\mathbf{3}\ \text{ or }\ \mathbf{-5}\)
(k+1)2=16
Two possible positions of BFrom A(-1, 2), two points with y-coordinate -1 are 5 units away: (3, -1) and (-5, -1). x y 5 5 O A(βˆ’1, 2) (3, βˆ’1) (βˆ’5, βˆ’1)

A square root has two signs. Both points are \(5\) units from \(A\): one to the right, one to the left. Check: run \(4\), fall \(3\), \(\sqrt{16+9}=5\).

Example 4 β€” Equal distances
The point \(P\) lies on the \(y\)-axis and is the same distance from \(A(-2,1)\) as from \(B(4,3)\). Find the coordinates of \(P\).
Solution

A point on the \(y\)-axis has \(x=0\), so let it be \(P(0,y)\). Set \(PA^2=PB^2\); no square roots are needed.

\(2^2+(y-1)^2\)\(=\)\(4^2+(y-3)^2\)
\(4+y^2-2y+1\)\(=\)\(16+y^2-6y+9\)
\(5-2y\)\(=\)\(25-6y\)
\(4y\)\(=\)\(20\)
\(y\)\(=\)\(5\)
PA2=PB2
Point P on the y-axis equidistant from A and BP(0, 5) on the y-axis joined to A(-2, 1) and B(4, 3); both intervals are the same length. x y O A(βˆ’2, 1) B(4, 3) P(0, 5)

So \(\boldsymbol{P(0,5)}\). Check: \(PA^2 = 4+16 = 20\) and \(PB^2 = 16+4 = 20\). The \(y^2\) terms cancel, which is why the equation is linear.

Common pitfalls

Square the negative, not just the number. \((-4)^2 = 16\). On a calculator, type the brackets. Typing \(-4^2\) gives \(-16\).
Subtract the matching coordinates. Run uses the two \(x\)-values and rise uses the two \(y\)-values. Mixing an \(x\) with a \(y\) is the most common slip.
Watch for two answers. When the unknown is inside a squared bracket, \((k+1)^2 = 16\) gives \(k+1 = 4\) or \(-4\). Keep both unless the question rules one out.
Do not add the run and the rise. \(6+4=10\) is the walk around two sides, not the straight-line distance. The interval is the hypotenuse: \(\sqrt{36+16}\).

Frequently asked questions

How do you find the length of an interval?

Find the run (change in \(x\)) and the rise (change in \(y\)). The interval is the hypotenuse of a right-angled triangle, so its length is \(\sqrt{\text{run}^2+\text{rise}^2}\).

What is the distance formula?

The distance between \((x_1,y_1)\) and \((x_2,y_2)\) is \(\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\). It is Pythagoras' theorem written with coordinates.

Does it matter which point you start from?

No. Swapping the points changes the signs of the run and rise, but squaring removes the sign, so the length is the same.

How do you show a triangle is right-angled using coordinates?

Find \(d^2\) for each side. If the two smaller values add up to the largest one, the triangle is right-angled, and the right angle is opposite the longest side.

How do you write a distance in simplest surd form?

Find the largest square number that divides the number under the root and take its square root outside: \(\sqrt{52} = \sqrt{4\times 13} = 2\sqrt{13}\).