Coordinate geometry of lines
Equation of a line from two points, general form ax + by + c = 0, parallel and perpendicular lines, distance, midpoint and collinear points.
Coordinate geometry turns shapes into numbers. Once points have coordinates, you can prove that sides are equal, that lines are parallel or that an angle is a right angle, all by calculation. Everything here comes from two ideas: gradient and Pythagoras' theorem.
Gradient and the equation of a line
The second formula is the point-gradient form. It says: the gradient from the fixed point $(x_1, y_1)$ to any point $(x, y)$ on the line is $m$. Rearranged, it gives $y = mx + c$.
Find the equation of the line through $(-1, 5)$ and $(3, -3)$. Write it in general form.
General form is $ax + by + c = 0$. To read the gradient, rearrange to $y = mx + c$. For $3x - 4y + 8 = 0$: $4y = 3x + 8$, so $y = \tfrac34 x + 2$ and $m = \tfrac34$.
Distance and midpoint
Draw the segment from $A$ to $B$ and make a right triangle with a horizontal and a vertical side. The sides are $x_2 - x_1$ and $y_2 - y_1$, so Pythagoras gives the length. The midpoint is just the average of the coordinates.
For $A(-2, 1)$ and $B(4, 9)$, find the length $AB$ and the midpoint of $AB$.
Parallel and perpendicular lines
For the perpendicular rule, rotate a line with gradient $\tfrac{2}{3}$ by $90^\circ$. The rise of $2$ becomes a run, and the run of $3$ becomes a fall. The new gradient is $-\tfrac32$, and $\tfrac23 \times -\tfrac32 = -1$.
Find the equation of the line through $(4, 1)$ perpendicular to $y = 2x - 3$.
Your turn
Show that $O(0, 0)$, $A(2, 4)$ and $B(6, 2)$ form a right-angled triangle.
Show the working
$m_{OA} = \dfrac{4 - 0}{2 - 0} = 2$ and $m_{AB} = \dfrac{2 - 4}{6 - 2} = -\dfrac12$. Since $2 \times -\tfrac12 = -1$, $OA$ is perpendicular to $AB$, so the triangle has a right angle at $A$.
Find the gradient of the line through $(1, 2)$ and $(4, 11)$.
$m = \dfrac{11 - 2}{4 - 1} = \dfrac93 = 3$.
Find the distance between $(1, 2)$ and $(7, 10)$.
$d = \sqrt{6^2 + 8^2} = \sqrt{100} = 10$.
Find the midpoint of $(-3, 4)$ and $(5, -2)$. Enter it as $x, y$.
$\left(\dfrac{-3 + 5}{2}, \dfrac{4 + (-2)}{2}\right) = (1, 1)$.
The gradient of $2x + 3y - 6 = 0$ is:
$3y = -2x + 6$, so $y = -\tfrac23 x + 2$.
Find the gradient of a line perpendicular to $y = 4x - 1$, as a decimal.
$m_2 = -\dfrac14 = -0.25$, since $4 \times -\tfrac14 = -1$.
The line through $(2, -1)$ with gradient $3$ is:
$y + 1 = 3(x - 2)$, so $y = 3x - 6 - 1 = 3x - 7$.
The line through $(1, k)$ and $(3, 8)$ is parallel to $y = 2x + 1$. Find $k$.
Parallel means gradient $2$: $\dfrac{8 - k}{3 - 1} = 2$, so $8 - k = 4$ and $k = 4$.
The points $A(1, 1)$, $B(4, 7)$ and $C(6, k)$ are collinear. Find $k$.
$m_{AB} = \dfrac{7 - 1}{4 - 1} = 2$. Then $m_{BC} = \dfrac{k - 7}{6 - 4} = 2$, so $k - 7 = 4$ and $k = 11$.
Challenge: a line passes through $(4, 1)$ and is perpendicular to $y = 2x - 3$. Find its $y$-intercept.
Perpendicular gradient $= -\tfrac12$. $y - 1 = -\tfrac12(x - 4)$ gives $y = -\tfrac12 x + 3$, so the $y$-intercept is $3$.
Challenge: the midpoint of $AB$ is $(3, -1)$ and $A = (7, 2)$. Find $B$. Enter it as $x, y$.
$\dfrac{7 + x}{2} = 3$ gives $x = -1$. $\dfrac{2 + y}{2} = -1$ gives $y = -4$. So $B = (-1, -4)$.
Coaching Centre