Compute the distance between two points and find the midpoint of a segment
Define slope using the inclination angle and use k=tanα correctly
Write the equation of a line in any of the four standard forms and convert between them
Determine whether two lines are parallel or perpendicular, and calculate the distance from a point to a line
Exam weight on past CSCA papers: ~7% (3 of 48 MCQs).
7.1 Distance Between Points 两点间距离
Given two points P1(x1,y1) and P2(x2,y2) in the Cartesian plane, the distance between them is derived directly from the Pythagorean theorem:
∣P1P2∣=(x2−x1)2+(y2−y1)2
The midpointM of the segment P1P2 is:
M=(2x1+x2,2y1+y2)
⚠️ Common mistake: Students sometimes write (x2−x1)2−(y2−y1)2 (a minus sign inside). The formula always uses addition under the radical.
🔑 Order doesn't matter:(x2−x1)2=(x1−x2)2, so you can subtract in either direction — the square kills the sign.
Worked Example 7.1.A
Find the distance and midpoint between A(−1,3) and B(5,−1).
Solution.
∣AB∣=(5−(−1))2+(−1−3)2=62+(−4)2=36+16=52=213
M=(2−1+5,23+(−1))=(2,1)
∣AB∣=213,M=(2,1)
7.2 Slope and Inclination 斜率与倾斜角
Inclination angle 倾斜角
Every non-vertical line makes an angle α with the positivex-axis, measured counter-clockwise. This angle satisfies:
0°≤α<180°(i.e. 0≤α<π)
A horizontal line has α=0°. A vertical line has α=90° but its slope is undefined.
Slope 斜率
For a non-vertical line with inclination angle α:
k=tanα
For a line through two distinct points P1(x1,y1) and P2(x2,y2) with x1=x2:
k=x2−x1y2−y1
Restrictions to memorise
Condition
α
Slope k
Line rises left to right
0°<α<90°
k>0
Horizontal line
α=0°
k=0
Line falls left to right
90°<α<180°
k<0
Vertical line
α=90°
undefined
⚠️ Vertical lines have undefined slope. If you are asked for the slope of x=3, the answer is "undefined" — not zero. Zero slope belongs to horizontal lines like y=3.
🔑 k=tanα works because: think of "rise over run" on a right triangle formed by the line and the axes — that ratio is exactly tanα.
Worked Example 7.2.A
A line passes through P(1,2) and Q(4,−1). Find its inclination angle.
Solution.
k=4−1−1−2=3−3=−1
Since k=tanα=−1 and α∈[0°,180°), we get α=135°.
α=135°
7.3 Line Equations 直线方程
There are four standard forms. Learn all four — CSCA questions often give you information in one form and ask for another.
The four forms — comparison table
Form
Equation
Best used when you know...
Limitation
Point-slope 点斜式
y−y0=k(x−x0)
one point + slope
Cannot represent vertical lines
Slope-intercept 斜截式
y=kx+b
slope + y-intercept
Cannot represent vertical lines
Two-point 两点式
y2−y1y−y1=x2−x1x−x1
two points
Fails if x1=x2 or y1=y2
General form 一般式
Ax+By+C=0
universal
Must have A2+B2=0
🔑 Point-slope is the most flexible form. Given any point and a slope — or given two points (compute k first) — point-slope immediately gives you the equation without having to solve for the intercept.
Converting between forms
To convert point-slope → slope-intercept: expand and solve for y.
To convert any form → general form: move all terms to one side so the equation equals zero.
Worked Example 7.3.A
Find the equation of the line through (2,−3) with slope k=21. Express in slope-intercept and general form.
Solution.
Point-slope:y−(−3)=21(x−2), i.e. y+3=21(x−2).
Slope-intercept:y=21x−1−3=21x−4.
General form (multiply through by 2): x−2y−8=0.
y=21x−4or equivalentlyx−2y−8=0
Worked Example 7.3.B
Find the equation of the line through A(1,3) and B(4,−3).
Solution.
Slope: k=4−1−3−3=3−6=−2.
Point-slope (using A): y−3=−2(x−1)⟹y=−2x+5.
y=−2x+5or2x+y−5=0
7.4 Parallel and Perpendicular Lines 平行与垂直
Parallel lines 平行线
Two non-vertical lines ℓ1 (slope k1) and ℓ2 (slope k2) are parallel if and only if:
k1=k2and the lines are distinct
In general form: A1x+B1y+C1=0 and A2x+B2y+C2=0 are parallel iff A1B2−A2B1=0 but A1C2−A2C1=0.
⚠️ Parallel ≠ identical. Two lines with the same slope are parallel only if they are distinct. If they also share a point, they are the same line — not parallel. Always verify the y-intercepts are different.
Perpendicular lines 垂直线
Two non-vertical, non-horizontal lines are perpendicular if and only if:
k1⋅k2=−1(equivalently, k2=−k11)
Special cases: a vertical line (x=a) is perpendicular to any horizontal line (y=b).
Worked Example 7.4.A
Line ℓ1: 2x−y+3=0. Find lines through (1,−1) that are (a) parallel and (b) perpendicular to ℓ1.
Solution.
Rewrite ℓ1: y=2x+3, so k1=2.
(a) Parallel — same slope k=2: y−(−1)=2(x−1)⟹y=2x−3⟹2x−y−3=0
Find the distance between the parallel lines 2x+y−3=0 and 2x+y+7=0.
Solution.
Same A=2, B=1; constants C1=−3 and C2=7.
d=4+1∣−3−7∣=510=5105=25
d=25
7.6 Intersection of Lines 直线交点
Two distinct non-parallel lines intersect at exactly one point. To find it, solve the system formed by their two equations simultaneously.
Method — elimination or substitution
Write both lines in general form (or slope-intercept).
Eliminate one variable by adding/subtracting multiples of the two equations.
Solve for the remaining variable, then back-substitute.
If the system has no solution, the lines are parallel (including possibly identical). If it has infinitely many solutions, the equations represent the same line.
Worked Example 7.6.A
Find the intersection of ℓ1:2x+y−5=0 and ℓ2:x−2y+5=0.
Solution.
From ℓ1: y=5−2x. Substitute into ℓ2:
x−2(5−2x)+5=0⟹x−10+4x+5=0⟹5x=5⟹x=1
Back-substitute: y=5−2(1)=3.
Intersection: (1,3)
Check:2(1)+3−5=0 ✓ and 1−2(3)+5=0 ✓
Worked Example 7.6.B — Concurrent lines
Three lines are concurrent (all pass through one point) if and only if their intersection point (found from any two of the lines) also satisfies the third.
Lines: ℓ1:x+y=4, ℓ2:2x−y=2, ℓ3:x−2y+2=0.
Intersection of ℓ1 and ℓ2: add them → 3x=6⟹x=2,y=2.
Check ℓ3: 2−2(2)+2=0 ✓. The three lines are concurrent at (2,2).
Try it! 自测练习
Q1. Find the distance between A(−2,1) and B(4,9).
Q2. A line has inclination angle α=120°. What is its slope?
Q3. Find the equation of the line with x-intercept 3 and y-intercept −2. Write in general form.
Q4. Are the lines 3x−2y+1=0 and 6x−4y+7=0 parallel, perpendicular, or neither?
Q5. Find the distance from the origin (0,0) to the line 5x−12y+26=0.
Answers & explanations
∣AB∣=(4−(−2))2+(9−1)2=36+64=100=10.
k=tan120°=tan(180°−60°)=−tan60°=−3.
The line passes through (3,0) and (0,−2). Two-point form: −2−0y−0=0−3x−3⟹−2y=−3x−3⟹3y=2(x−3)⟹2x−3y−6=0.
Rewrite the second line: 6x−4y+7=0⟹3x−2y+27=0. Same coefficients for x and y as ℓ1, different constant — parallel (and distinct since 1=27).
d=25+144∣5(0)−12(0)+26∣=16926=1326=2.
📌 Chapter summary
Topic
Key formula / rule
Distance between points
(x2−x1)2+(y2−y1)2
Midpoint
(2x1+x2,2y1+y2)
Slope from angle
k=tanα, with α∈[0°,180°); vertical line: k undefined
Point-slope form
y−y0=k(x−x0) — most flexible
General form
Ax+By+C=0 — universal, works for vertical lines
Parallel
k1=k2 (and lines are distinct)
Perpendicular
k1⋅k2=−1
Point-to-line distance
d=A2+B2∣Ax0+By0+C∣
Parallel-line distance
d=A2+B2∣C1−C2∣
Intersection
Solve the two-equation system simultaneously
What's next → Unit 8 extends these ideas to circles: the standard equation (x−a)2+(y−b)2=r2 is essentially the distance formula applied to all points equidistant from the centre.