Coordinate geometry: midpoint, distance, parallel lines, and perpendicular lines
Overview
Coordinate geometry uses numbers to describe points, distances, and directions on a plane. Instead of saying "the point is somewhere above and to the right," we write an ordered pair such as $(4,3)$ and use it for calculation.
This chapter focuses on four tools:
- the midpoint of a line segment;
- the distance between two points;
- the gradient test for parallel lines;
- the gradient test for perpendicular lines.
The big idea is that a drawn line segment can be studied by its endpoints. Once the endpoints are known, learners can find its centre, its length, and how steep it is without measuring the drawing.
These ideas are strongly connected. The distance formula comes from Pythagoras' theorem. The midpoint formula comes from finding the average position. Parallel and perpendicular tests come from comparing gradients. A learner who understands those bridges can check answers instead of only memorising formulas.
+ Syllabus Alignment
- Subject: Mathematics
- Level: CSEE
- Form: Mathematics Form IV
- Competence: Use basic coordinate geometry, trigonometry, and vectors skills in daily life
- Source topic ID:
topic-coordinate-geometry-midpoint-distance-parallel-lines-and-perpendicular-lines - Hub: Coordinate Geometry
This page expands the official Form IV Mathematics syllabus topic Coordinate geometry: midpoint, distance, parallel lines, and perpendicular lines. The syllabus remains the authority for topic placement and scope. Question-map and frequency records are used only as unreviewed assessment signals.
Prerequisites
- Mathematics Form III - Earlier coordinate geometry work introduces axes, ordered pairs, gradients, and straight-line equations.
- Coordinate Geometry - This hub connects coordinate-plane skills across Forms III and IV.
- Coordinate geometry: gradient and straight-line equations - Gradients are needed for parallel and perpendicular line tests.
- Graphs of relations and functions - Accurate plotting helps learners see why coordinate calculations make sense.
- Pythagoras' theorem - The distance formula is built from horizontal and vertical changes.
- Linear simultaneous equations - Intersections of lines may be needed when applying coordinate geometry in larger problems.
Learning Scope
This chapter covers ordered-pair notation, horizontal and vertical changes, midpoint of a line segment, distance between two points, gradient of a line through two points, conditions for parallel lines, conditions for perpendicular lines, and checking routines for coordinate calculations.
This page does not attempt to cover every straight-line equation method or full analytic geometry proof. It gives the Form IV learner the core tools needed to solve midpoint, distance, parallel-line, and perpendicular-line questions.
Subtopics
Coordinates And Line Segments
A point on the coordinate plane is written as $(x,y)$. The $x$-coordinate tells how far left or right the point is from the origin. The $y$-coordinate tells how far up or down it is.
If two points are joined, they form a line segment. For example, points:
$$ A(2,1)\quad \text{and}\quad B(8,5) $$
form the segment $AB$.
The movement from $A$ to $B$ has two parts:
- horizontal change: $8-2=6$;
- vertical change: $5-1=4$.
These two changes are the raw material for distance and gradient. The horizontal change is often called "change in $x$" and the vertical change is called "change in $y$".
Checking routine:
- Label the two points clearly.
- Write the first point as $(x_1,y_1)$ and the second as $(x_2,y_2)$.
- Find $x_2-x_1$ and $y_2-y_1$.
- Keep the signs for gradient.
- Use squared changes for distance, so signs do not affect the final length.
Midpoint Of A Line Segment
The midpoint is the point halfway between two endpoints.
For:
$$ A(x_1,y_1)\quad \text{and}\quad B(x_2,y_2) $$
the midpoint $M$ is:
$$ M\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right) $$
Why this works: the midpoint has an $x$-coordinate halfway between the two $x$-coordinates and a $y$-coordinate halfway between the two $y$-coordinates. "Halfway" is found by taking the average.
Example:
Find the midpoint of $A(2,1)$ and $B(8,5)$.
$$ M\left(\frac{2+8}{2},\frac{1+5}{2}\right) =M\left(\frac{10}{2},\frac{6}{2}\right) =M(5,3) $$
So the midpoint is $(5,3)$.
Midpoint checking routine:
- The midpoint's $x$-coordinate should lie between the two endpoint $x$-coordinates.
- The midpoint's $y$-coordinate should lie between the two endpoint $y$-coordinates.
- If both endpoints have integer coordinates but their sums are odd, the midpoint may contain halves.
- If a drawing is provided, the midpoint should look central on the segment.
Finding A Missing Endpoint
Sometimes the midpoint and one endpoint are given, and the other endpoint is missing.
If $A(2,1)$ and midpoint $M(5,3)$ are known, and $B(x,y)$ is unknown, then:
$$ \frac{2+x}{2}=5 $$
and:
$$ \frac{1+y}{2}=3 $$
Solve each coordinate separately:
$$ 2+x=10,\quad x=8 $$
$$ 1+y=6,\quad y=5 $$
So the missing endpoint is $B(8,5)$.
Another way to check is to use movement. From $A(2,1)$ to $M(5,3)$, the movement is $(+3,+2)$. The same movement from $M$ to $B$ gives:
$$ B=(5+3,3+2)=(8,5) $$
Distance Between Two Points
The distance between two points is the length of the line segment joining them.
For:
$$ A(x_1,y_1)\quad \text{and}\quad B(x_2,y_2) $$
the distance $AB$ is:
$$ AB=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2} $$
Why this works: the horizontal change and vertical change form a right-angled triangle. The line segment is the hypotenuse, so Pythagoras' theorem gives the distance.
Example:
Find the distance between $A(2,1)$ and $B(8,5)$.
Horizontal change:
$$ 8-2=6 $$
Vertical change:
$$ 5-1=4 $$
Therefore:
$$ AB=\sqrt{6^2+4^2} =\sqrt{36+16} =\sqrt{52} =2\sqrt{13} $$
The exact distance is $2\sqrt{13}$ units. A decimal approximation is about $7.21$ units.
Distance checking routine:
- Distance cannot be negative.
- If one coordinate is the same, use the simple horizontal or vertical difference as a quick check.
- If the answer is smaller than both coordinate changes, something is wrong.
- Keep exact surd form unless the question asks for a decimal.
Gradient Between Two Points
The gradient of a line measures steepness. It compares vertical change with horizontal change.
For:
$$ A(x_1,y_1)\quad \text{and}\quad B(x_2,y_2) $$
the gradient $m$ is:
$$ m=\frac{y_2-y_1}{x_2-x_1} $$
Example:
Find the gradient of the line through $A(2,1)$ and $B(8,5)$.
$$ m=\frac{5-1}{8-2} =\frac{4}{6} =\frac{2}{3} $$
So the gradient is $\frac{2}{3}$.
The order of subtraction must be consistent. If the numerator uses $y_2-y_1$, the denominator must use $x_2-x_1$. Reversing both gives the same gradient, but reversing only one changes the sign.
Special cases:
| Type of line | Coordinate clue | Gradient | | --- | --- | --- | | Horizontal line | Same $y$-coordinate | $0$ | | Vertical line | Same $x$-coordinate | Undefined | | Rising left to right | $y$ increases as $x$ increases | Positive | | Falling left to right | $y$ decreases as $x$ increases | Negative |
Parallel Lines
Parallel lines have the same direction and do not meet. In coordinate geometry, non-vertical parallel lines have equal gradients.
If line $l_1$ has gradient $m_1$ and line $l_2$ has gradient $m_2$, then:
$$ l_1 \parallel l_2 \quad \text{when}\quad m_1=m_2 $$
Example:
Show whether the line through $A(1,2)$ and $B(5,10)$ is parallel to the line through $C(-2,1)$ and $D(0,5)$.
For $AB$:
$$ m_{AB}=\frac{10-2}{5-1}=\frac{8}{4}=2 $$
For $CD$:
$$ m_{CD}=\frac{5-1}{0-(-2)}=\frac{4}{2}=2 $$
Since both gradients are $2$, the lines are parallel.
Warning: equal gradients show equal direction. To decide whether two lines are the same line or distinct parallel lines, check whether they share a point or have the same equation. Many Form IV questions only ask whether the lines are parallel, so equal gradients are enough for that test.
Perpendicular Lines
Perpendicular lines meet at a right angle. For non-vertical and non-horizontal lines, their gradients multiply to $-1$.
If line $l_1$ has gradient $m_1$ and line $l_2$ has gradient $m_2$, then:
$$ l_1 \perp l_2 \quad \text{when}\quad m_1m_2=-1 $$
This means the gradients are negative reciprocals. For example:
| Gradient of first line | Gradient of perpendicular line | | ---: | ---: | | $2$ | $-\frac{1}{2}$ | | $-\frac{3}{4}$ | $\frac{4}{3}$ | | $\frac{5}{2}$ | $-\frac{2}{5}$ | | $-1$ | $1$ |
Example:
Show whether the line through $A(1,1)$ and $B(4,7)$ is perpendicular to the line through $C(2,5)$ and $D(6,3)$.
For $AB$:
$$ m_{AB}=\frac{7-1}{4-1}=\frac{6}{3}=2 $$
For $CD$:
$$ m_{CD}=\frac{3-5}{6-2}=\frac{-2}{4}=-\frac{1}{2} $$
Now multiply:
$$ 2 \times \left(-\frac{1}{2}\right)=-1 $$
So the two lines are perpendicular.
Special case: a horizontal line is perpendicular to a vertical line. The product rule is not used there because the vertical line has an undefined gradient.
Using Coordinate Geometry In Proof
Coordinate geometry can be used to prove facts about shapes. The usual strategy is to convert the shape into calculated evidence.
For example, to show that a quadrilateral has a pair of parallel sides:
- Find the gradient of one side.
- Find the gradient of the opposite side.
- Compare the gradients.
- State the conclusion clearly.
To show that a triangle is right-angled:
- Find the gradient of two sides that meet at a vertex.
- Multiply the gradients.
- If the product is $-1$, those sides are perpendicular.
- Therefore the angle between them is $90^\circ$.
To show that two segments have the same length:
- Use the distance formula on each segment.
- Simplify carefully.
- Compare exact lengths.
- State what equal lengths imply for the shape.
The calculation is only half of the answer. A proof also needs a sentence that connects the calculation to the geometric conclusion.
Key Terms
| Term | Meaning | | --- | --- | | Coordinate | A number used to locate a point on an axis. | | Ordered pair | A point written as $(x,y)$, where order matters. | | Line segment | Part of a line between two endpoints. | | Midpoint | The point halfway between the endpoints of a segment. | | Distance | The length between two points. | | Horizontal change | Difference between the $x$-coordinates. | | Vertical change | Difference between the $y$-coordinates. | | Gradient | Vertical change divided by horizontal change. | | Parallel lines | Lines with the same direction; non-vertical ones have equal gradients. | | Perpendicular lines | Lines that meet at a right angle. | | Negative reciprocal | A number obtained by flipping a fraction and changing the sign. | | Undefined gradient | The gradient of a vertical line, because division by zero is not defined. |
Worked Examples
Example 1: Midpoint
Find the midpoint of $P(-4,6)$ and $Q(2,-8)$.
Use the midpoint formula:
$$ M\left(\frac{-4+2}{2},\frac{6+(-8)}{2}\right) $$
Simplify:
$$ M\left(\frac{-2}{2},\frac{-2}{2}\right)=M(-1,-1) $$
Answer: the midpoint is $(-1,-1)$.
Check: $-1$ lies halfway between $-4$ and $2$, and $-1$ lies halfway between $6$ and $-8$.
Example 2: Distance
Find the distance between $A(-3,4)$ and $B(5,-2)$.
Write the coordinate changes:
$$ x_2-x_1=5-(-3)=8 $$
$$ y_2-y_1=-2-4=-6 $$
Use the distance formula:
$$ AB=\sqrt{8^2+(-6)^2} =\sqrt{64+36} =\sqrt{100} =10 $$
Answer: $AB=10$ units.
Check: the negative vertical change becomes positive after squaring. A distance of $10$ is reasonable because the horizontal and vertical changes are $8$ and $6$.
Example 3: Parallel Lines
Determine whether the line through $A(0,3)$ and $B(4,11)$ is parallel to the line through $C(2,-1)$ and $D(5,5)$.
For $AB$:
$$ m_{AB}=\frac{11-3}{4-0}=\frac{8}{4}=2 $$
For $CD$:
$$ m_{CD}=\frac{5-(-1)}{5-2}=\frac{6}{3}=2 $$
Since the gradients are equal, the lines are parallel.
Example 4: Perpendicular Lines
Determine whether the line through $P(1,4)$ and $Q(7,1)$ is perpendicular to the line through $R(-2,-3)$ and $S(0,1)$.
For $PQ$:
$$ m_{PQ}=\frac{1-4}{7-1}=\frac{-3}{6}=-\frac{1}{2} $$
For $RS$:
$$ m_{RS}=\frac{1-(-3)}{0-(-2)}=\frac{4}{2}=2 $$
Multiply:
$$ \left(-\frac{1}{2}\right)(2)=-1 $$
Therefore the lines are perpendicular.
Example 5: Shape Check
The points $A(1,1)$, $B(5,3)$, $C(3,7)$, and $D(-1,5)$ are vertices of a quadrilateral in order. Show that $AB$ is parallel to $CD$.
Find the gradient of $AB$:
$$ m_{AB}=\frac{3-1}{5-1}=\frac{2}{4}=\frac{1}{2} $$
Find the gradient of $CD$:
$$ m_{CD}=\frac{5-7}{-1-3}=\frac{-2}{-4}=\frac{1}{2} $$
Since $m_{AB}=m_{CD}$, side $AB$ is parallel to side $CD$.
Notice the final sentence. Without it, the calculation has not fully answered the proof question.
Common Mistakes
- Swapping $x$ and $y$ in an ordered pair. Correction: always read $(x,y)$ as "across, then up or down." Warning sign: a plotted point appears in the wrong quadrant.
- Averaging only one coordinate for the midpoint. Correction: average both $x$-coordinates and both $y$-coordinates. Warning sign: the answer has one coordinate copied from an endpoint.
- Forgetting brackets when subtracting a negative number. Correction: write $5-(-3)$ clearly before simplifying. Warning sign: a difference that should be $8$ becomes $2$.
- Taking the square root too early in the distance formula. Correction: square both changes, add them, then take the square root. Warning sign: work shows $\sqrt{8^2}+\sqrt{6^2}$ instead of $\sqrt{8^2+6^2}$.
- Treating distance as negative. Correction: distance is a length, so it is never negative. Warning sign: the final answer is $-10$ units.
- Mixing the order of subtraction in gradient. Correction: if the numerator is $y_2-y_1$, the denominator must be $x_2-x_1$. Warning sign: the sign of the gradient changes unexpectedly.
- Saying parallel lines have gradients whose product is $-1$. Correction: parallel lines have equal gradients; perpendicular lines have gradients whose product is $-1$.
- Using the perpendicular product rule with a vertical line. Correction: handle horizontal and vertical lines as a special pair. Warning sign: division by zero appears in the gradient.
- Giving only calculations in a proof. Correction: add a conclusion sentence such as "therefore the lines are parallel."
Practice Tasks
Foundation
- State the $x$-coordinate and $y$-coordinate of $(-5,7)$.
- Find the horizontal and vertical changes from $A(1,2)$ to $B(6,9)$.
- Find the midpoint of $(4,2)$ and $(10,8)$.
- Find the distance between $(0,0)$ and $(3,4)$.
- State the gradient of a horizontal line.
Skill-Building
- Find the midpoint of $A(-6,5)$ and $B(4,-1)$.
- Find the distance between $P(-2,-3)$ and $Q(4,5)$, leaving the answer in exact form if needed.
- Find the gradient of the line through $(3,7)$ and $(9,1)$.
- Determine whether the line through $(1,3)$ and $(4,9)$ is parallel to the line through $(-2,0)$ and $(0,4)$.
- Determine whether the line through $(0,2)$ and $(6,5)$ is perpendicular to the line through $(1,4)$ and $(3,0)$.
Exam-Style
- Points $A(2,-1)$ and $B(8,7)$ are endpoints of a line segment. Find the midpoint and length of $AB$.
- The midpoint of $AB$ is $(3,5)$ and $A(-1,2)$. Find the coordinates of $B$.
- Show that the line through $P(-2,1)$ and $Q(4,4)$ is parallel to the line through $R(1,-3)$ and $S(7,0)$.
- Show that the triangle with vertices $A(1,1)$, $B(5,3)$, and $C(3,7)$ is right-angled.
- A quadrilateral has vertices $A(0,0)$, $B(6,2)$, $C(8,8)$, and $D(2,6)$. Use gradients to test whether opposite sides are parallel.
Challenge
- Find the point that divides the segment from $A(-4,2)$ to $B(8,10)$ into two equal parts, then explain why the answer is sensible from both coordinates.
- A line has gradient $\frac{3}{5}$. Write the gradient of a perpendicular line and explain why the product test works.
- Points $A(1,2)$, $B(7,5)$, and $C(3,10)$ form a triangle. Use distance calculations to decide whether any two sides are equal.
- Create two different line segments that have the same midpoint $(2,3)$ but different lengths.
Generated Question Layer
- Midpoint questions: calculate the centre of a line segment or recover a missing endpoint.
- Distance questions: use coordinate changes and Pythagoras' theorem to find exact or approximate lengths.
- Gradient questions: find steepness from two points, including negative, zero, and undefined cases.
- Parallel-line questions: compare gradients and justify the conclusion.
- Perpendicular-line questions: test whether gradients multiply to $-1$ or identify horizontal-vertical perpendicular pairs.
- Shape-proof questions: use midpoint, distance, or gradient evidence to prove a property of a triangle or quadrilateral.
Learner Aid Opportunities
- diagram: Show two labelled endpoints, their horizontal and vertical changes, and the midpoint on one coordinate plane.
- graph: Display two lines with equal gradients and a second pair with negative reciprocal gradients.
- chart: Summarise midpoint, distance, gradient, parallel, and perpendicular tests in one formula table.
- animation: Move from a line segment to a right triangle to show how the distance formula comes from Pythagoras' theorem.
- interactive: Let learners drag endpoints and watch midpoint, distance, and gradient values update.
- video: Demonstrate a full coordinate proof using gradients and a final written conclusion.
- LLM tutor: Ask learners to explain which formula they chose, what each coordinate difference means, and how they checked the sign.
Exam-Derived Signals
These signals are assessment leads, not verified official past-question links. They should be checked against original papers and marking schemes before being used as final learner-facing references.
| Source | Current Signal | Review Status | Use Carefully As | | --- | --- | --- | --- | | data/exam_format_topic_crosswalk_2022.jsonl | Official 2022 format grouping includes coordinate geometry within the broader Form IV competence area for coordinate geometry, trigonometry, and vectors. | Official format mapping; topic-page use still unreviewed. | Evidence that coordinate geometry skills belong in the assessed Form IV skill cluster. | | data/topic_frequency_2021_2025.json | Frequency data may list direct or indirect coordinate-geometry coverage, but this page has not promoted any reviewed item. | Unreviewed aggregate. | A prompt for reviewers to search for midpoint, distance, gradient, parallel-line, and perpendicular-line tasks. | | data/question_map_2021_2025.jsonl | No reviewed 2021-2025 question-map item is promoted here yet. | No reviewed links. | Future review should check whether line, triangle, quadrilateral, or graph questions require these coordinate tools. |
Source And Review Notes
- Topic registry status: official in
data/curriculum_map.json. - Learner expansion status: original prose drafted from the official syllabus topic and local assessment-signal files.
- Exam mapping status: unreviewed except for official format crosswalk records.
- Review risk: coordinate-geometry questions often mix several skills, so future reviewers should verify whether a past question truly tests midpoint, distance, parallel lines, or perpendicular lines before linking it here.
- Media status: no media assets were added; learner-aid entries are planning markers only.