Borui Academy

Chapter 7

Lines in the Plane

平面直线 · slope · inclination · 4 forms · distance · intersection

Unit 7 · Lines in the Plane 平面直线

By the end of this chapter you can:

  1. Compute the distance between two points and find the midpoint of a segment
  2. Define slope using the inclination angle and use k=tanαk = \tan\alpha correctly
  3. Write the equation of a line in any of the four standard forms and convert between them
  4. 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)P_1(x_1, y_1) and P2(x2,y2)P_2(x_2, y_2) in the Cartesian plane, the distance between them is derived directly from the Pythagorean theorem:

P1P2=(x2x1)2+(y2y1)2|P_1P_2| = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

The midpoint MM of the segment P1P2P_1P_2 is:

M=(x1+x22, y1+y22)M = \left(\frac{x_1 + x_2}{2},\ \frac{y_1 + y_2}{2}\right)

⚠️ Common mistake: Students sometimes write (x2x1)2(y2y1)2\sqrt{(x_2 - x_1)^2 - (y_2 - y_1)^2} (a minus sign inside). The formula always uses addition under the radical.

🔑 Order doesn't matter: (x2x1)2=(x1x2)2(x_2 - x_1)^2 = (x_1 - x_2)^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)A(-1, 3) and B(5,1)B(5, -1).

Solution.

AB=(5(1))2+(13)2=62+(4)2=36+16=52=213|AB| = \sqrt{(5-(-1))^2 + (-1-3)^2} = \sqrt{6^2 + (-4)^2} = \sqrt{36 + 16} = \sqrt{52} = 2\sqrt{13}

M=(1+52, 3+(1)2)=(2, 1)M = \left(\frac{-1+5}{2},\ \frac{3+(-1)}{2}\right) = (2,\ 1)

AB=213,M=(2, 1)\boxed{|AB| = 2\sqrt{13},\quad M = (2,\ 1)}


7.2 Slope and Inclination 斜率与倾斜角

Inclination angle 倾斜角

Every non-vertical line makes an angle α\alpha with the positive xx-axis, measured counter-clockwise. This angle satisfies:

0°α<180°(i.e. 0α<π)0° \le \alpha < 180° \qquad (\text{i.e. } 0 \le \alpha < \pi)

A horizontal line has α=0°\alpha = 0°. A vertical line has α=90°\alpha = 90° but its slope is undefined.

Slope 斜率

For a non-vertical line with inclination angle α\alpha:

k=tanαk = \tan\alpha

For a line through two distinct points P1(x1,y1)P_1(x_1, y_1) and P2(x2,y2)P_2(x_2, y_2) with x1x2x_1 \ne x_2:

k=y2y1x2x1k = \frac{y_2 - y_1}{x_2 - x_1}

Restrictions to memorise

Condition α\alpha Slope kk
Line rises left to right 0°<α<90°0° < \alpha < 90° k>0k > 0
Horizontal line α=0°\alpha = 0° k=0k = 0
Line falls left to right 90°<α<180°90° < \alpha < 180° k<0k < 0
Vertical line α=90°\alpha = 90° undefined

⚠️ Vertical lines have undefined slope. If you are asked for the slope of x=3x = 3, the answer is "undefined" — not zero. Zero slope belongs to horizontal lines like y=3y = 3.

🔑 k=tanαk = \tan\alpha works because: think of "rise over run" on a right triangle formed by the line and the axes — that ratio is exactly tanα\tan\alpha.

Worked Example 7.2.A

A line passes through P(1,2)P(1, 2) and Q(4,1)Q(4, -1). Find its inclination angle.

Solution.

k=1241=33=1k = \frac{-1-2}{4-1} = \frac{-3}{3} = -1

Since k=tanα=1k = \tan\alpha = -1 and α[0°,180°)\alpha \in [0°, 180°), we get α=135°\alpha = 135°.

α=135°\boxed{\alpha = 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 点斜式 yy0=k(xx0)y - y_0 = k(x - x_0) one point + slope Cannot represent vertical lines
Slope-intercept 斜截式 y=kx+by = kx + b slope + yy-intercept Cannot represent vertical lines
Two-point 两点式 yy1y2y1=xx1x2x1\dfrac{y - y_1}{y_2 - y_1} = \dfrac{x - x_1}{x_2 - x_1} two points Fails if x1=x2x_1 = x_2 or y1=y2y_1 = y_2
General form 一般式 Ax+By+C=0Ax + By + C = 0 universal Must have A2+B20A^2 + B^2 \ne 0

🔑 Point-slope is the most flexible form. Given any point and a slope — or given two points (compute kk 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 yy.

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)(2, -3) with slope k=12k = \tfrac{1}{2}. Express in slope-intercept and general form.

Solution.

Point-slope: y(3)=12(x2)y - (-3) = \tfrac{1}{2}(x - 2), i.e. y+3=12(x2)y + 3 = \tfrac{1}{2}(x-2).

Slope-intercept: y=12x13=12x4y = \tfrac{1}{2}x - 1 - 3 = \tfrac{1}{2}x - 4.

General form (multiply through by 2): x2y8=0x - 2y - 8 = 0.

y=12x4or equivalentlyx2y8=0\boxed{y = \tfrac{1}{2}x - 4 \quad\text{or equivalently}\quad x - 2y - 8 = 0}

Worked Example 7.3.B

Find the equation of the line through A(1,3)A(1, 3) and B(4,3)B(4, -3).

Solution.

Slope: k=3341=63=2k = \dfrac{-3-3}{4-1} = \dfrac{-6}{3} = -2.

Point-slope (using AA): y3=2(x1)    y=2x+5y - 3 = -2(x - 1) \implies y = -2x + 5.

y=2x+5or2x+y5=0\boxed{y = -2x + 5 \quad\text{or}\quad 2x + y - 5 = 0}


7.4 Parallel and Perpendicular Lines 平行与垂直

Parallel lines 平行线

Two non-vertical lines 1\ell_1 (slope k1k_1) and 2\ell_2 (slope k2k_2) are parallel if and only if:

k1=k2and the lines are distinctk_1 = k_2 \quad \text{and the lines are distinct}

In general form: A1x+B1y+C1=0A_1x + B_1y + C_1 = 0 and A2x+B2y+C2=0A_2x + B_2y + C_2 = 0 are parallel iff A1B2A2B1=0A_1B_2 - A_2B_1 = 0 but A1C2A2C10A_1C_2 - A_2C_1 \ne 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 yy-intercepts are different.

Perpendicular lines 垂直线

Two non-vertical, non-horizontal lines are perpendicular if and only if:

k1k2=1(equivalently, k2=1k1)k_1 \cdot k_2 = -1 \qquad \left(\text{equivalently, } k_2 = -\frac{1}{k_1}\right)

Special cases: a vertical line (x=ax = a) is perpendicular to any horizontal line (y=by = b).

Worked Example 7.4.A

Line 1\ell_1: 2xy+3=02x - y + 3 = 0. Find lines through (1,1)(1, -1) that are (a) parallel and (b) perpendicular to 1\ell_1.

Solution.

Rewrite 1\ell_1: y=2x+3y = 2x + 3, so k1=2k_1 = 2.

(a) Parallel — same slope k=2k = 2:
y(1)=2(x1)    y=2x3    2xy3=0y - (-1) = 2(x - 1) \implies y = 2x - 3 \implies \boxed{2x - y - 3 = 0}

(b) Perpendicular — slope k=12k = -\tfrac{1}{2}:
y+1=12(x1)    y=12x12    x+2y+1=0y + 1 = -\tfrac{1}{2}(x - 1) \implies y = -\tfrac{1}{2}x - \tfrac{1}{2} \implies \boxed{x + 2y + 1 = 0}


7.5 Distance from a Point to a Line 点到直线距离

Given a line in general form Ax+By+C=0Ax + By + C = 0 and a point P0(x0,y0)P_0(x_0, y_0), the perpendicular distance from P0P_0 to the line is:

d=Ax0+By0+CA2+B2d = \frac{|Ax_0 + By_0 + C|}{\sqrt{A^2 + B^2}}

The absolute value in the numerator ensures the distance is always non-negative regardless of which side of the line P0P_0 lies on.

Distance between two parallel lines

For parallel lines Ax+By+C1=0Ax + By + C_1 = 0 and Ax+By+C2=0Ax + By + C_2 = 0 (same A,BA, B, different constant), the distance between them is:

d=C1C2A2+B2d = \frac{|C_1 - C_2|}{\sqrt{A^2 + B^2}}

Derivation: pick any point on the first line and apply the point-to-line formula for the second.

🔑 Get general form first. The formula requires Ax+By+C=0Ax + By + C = 0. If the line is given as y=kx+by = kx + b, convert it to kxy+b=0kx - y + b = 0 before substituting.

Worked Example 7.5.A

Find the distance from P(3,2)P(3, -2) to the line 4x3y+1=04x - 3y + 1 = 0.

Solution.

Here A=4A = 4, B=3B = -3, C=1C = 1, and (x0,y0)=(3,2)(x_0, y_0) = (3, -2).

d=4(3)+(3)(2)+142+(3)2=12+6+116+9=1925=195d = \frac{|4(3) + (-3)(-2) + 1|}{\sqrt{4^2 + (-3)^2}} = \frac{|12 + 6 + 1|}{\sqrt{16 + 9}} = \frac{|19|}{\sqrt{25}} = \frac{19}{5}

d=195\boxed{d = \frac{19}{5}}

Worked Example 7.5.B

Find the distance between the parallel lines 2x+y3=02x + y - 3 = 0 and 2x+y+7=02x + y + 7 = 0.

Solution.

Same A=2A = 2, B=1B = 1; constants C1=3C_1 = -3 and C2=7C_2 = 7.

d=374+1=105=1055=25d = \frac{|-3 - 7|}{\sqrt{4 + 1}} = \frac{10}{\sqrt{5}} = \frac{10\sqrt{5}}{5} = 2\sqrt{5}

d=25\boxed{d = 2\sqrt{5}}


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

  1. Write both lines in general form (or slope-intercept).
  2. Eliminate one variable by adding/subtracting multiples of the two equations.
  3. 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+y5=0\ell_1: 2x + y - 5 = 0 and 2:x2y+5=0\ell_2: x - 2y + 5 = 0.

Solution.

From 1\ell_1: y=52xy = 5 - 2x. Substitute into 2\ell_2:

x2(52x)+5=0    x10+4x+5=0    5x=5    x=1x - 2(5 - 2x) + 5 = 0 \implies x - 10 + 4x + 5 = 0 \implies 5x = 5 \implies x = 1

Back-substitute: y=52(1)=3y = 5 - 2(1) = 3.

Intersection: (1, 3)\boxed{\text{Intersection: } (1,\ 3)}

Check: 2(1)+35=02(1) + 3 - 5 = 0 ✓ and 12(3)+5=01 - 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\ell_1: x + y = 4, 2:2xy=2\ell_2: 2x - y = 2, 3:x2y+2=0\ell_3: x - 2y + 2 = 0.

Intersection of 1\ell_1 and 2\ell_2: add them → 3x=6    x=2,y=23x = 6 \implies x = 2, y = 2.

Check 3\ell_3: 22(2)+2=02 - 2(2) + 2 = 0 ✓. The three lines are concurrent at (2,2)(2, 2).


Try it! 自测练习

Q1. Find the distance between A(2,1)A(-2, 1) and B(4,9)B(4, 9).

Q2. A line has inclination angle α=120°\alpha = 120°. What is its slope?

Q3. Find the equation of the line with xx-intercept 33 and yy-intercept 2-2. Write in general form.

Q4. Are the lines 3x2y+1=03x - 2y + 1 = 0 and 6x4y+7=06x - 4y + 7 = 0 parallel, perpendicular, or neither?

Q5. Find the distance from the origin (0,0)(0, 0) to the line 5x12y+26=05x - 12y + 26 = 0.

Answers & explanations
  1. AB=(4(2))2+(91)2=36+64=100=10|AB| = \sqrt{(4-(-2))^2 + (9-1)^2} = \sqrt{36 + 64} = \sqrt{100} = 10.

  2. k=tan120°=tan(180°60°)=tan60°=3k = \tan 120° = \tan(180° - 60°) = -\tan 60° = -\sqrt{3}.

  3. The line passes through (3,0)(3, 0) and (0,2)(0, -2).
    Two-point form: y020=x303    y2=x33    3y=2(x3)    2x3y6=0\dfrac{y - 0}{-2 - 0} = \dfrac{x - 3}{0 - 3} \implies \dfrac{y}{-2} = \dfrac{x-3}{-3} \implies 3y = 2(x-3) \implies 2x - 3y - 6 = 0.

  4. Rewrite the second line: 6x4y+7=0    3x2y+72=06x - 4y + 7 = 0 \implies 3x - 2y + \tfrac{7}{2} = 0. Same coefficients for xx and yy as 1\ell_1, different constant — parallel (and distinct since 1721 \ne \tfrac{7}{2}).

  5. d=5(0)12(0)+2625+144=26169=2613=2d = \dfrac{|5(0) - 12(0) + 26|}{\sqrt{25 + 144}} = \dfrac{26}{\sqrt{169}} = \dfrac{26}{13} = 2.


📌 Chapter summary

Topic Key formula / rule
Distance between points (x2x1)2+(y2y1)2\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}
Midpoint (x1+x22,y1+y22)\left(\dfrac{x_1+x_2}{2}, \dfrac{y_1+y_2}{2}\right)
Slope from angle k=tanαk = \tan\alpha, with α[0°,180°)\alpha \in [0°, 180°); vertical line: kk undefined
Point-slope form yy0=k(xx0)y - y_0 = k(x - x_0) — most flexible
General form Ax+By+C=0Ax + By + C = 0 — universal, works for vertical lines
Parallel k1=k2k_1 = k_2 (and lines are distinct)
Perpendicular k1k2=1k_1 \cdot k_2 = -1
Point-to-line distance d=Ax0+By0+CA2+B2d = \dfrac{|Ax_0 + By_0 + C|}{\sqrt{A^2+B^2}}
Parallel-line distance d=C1C2A2+B2d = \dfrac{|C_1 - C_2|}{\sqrt{A^2+B^2}}
Intersection Solve the two-equation system simultaneously

What's next → Unit 8 extends these ideas to circles: the standard equation (xa)2+(yb)2=r2(x-a)^2 + (y-b)^2 = r^2 is essentially the distance formula applied to all points equidistant from the centre.