Equations of lines
Horizontal and vertical lines, gradient–intercept form y = mx + b, and general form ax + by + c = 0, and converting between them.
The equation of a line is a test that every point on the line passes and every other point fails. Substitute a point's coordinates: if the equation is true, the point is on the line.
Horizontal and vertical lines
Every point on a horizontal line has the same $y$-coordinate, so the line through $(5, -3)$ parallel to the $x$-axis is $y = -3$. Every point on a vertical line has the same $x$-coordinate, so the vertical line through $(5, -3)$ is $x = 5$. In particular the $x$-axis is $y = 0$ and the $y$-axis is $x = 0$.
Gradient–intercept form
So to find the gradient of any line, rearrange it to make $y$ the subject. The coefficient of $x$ is the gradient.
General form
General form is $ax + by + c = 0$, with everything on one side. Convention: whole-number coefficients, no common factor, and $a$ positive. It has one big advantage: every line can be written this way, including vertical lines like $x - 5 = 0$, which have no gradient–intercept form.
Write $y = \tfrac34 x - 2$ in general form.
For the line $5x + 2y - 10 = 0$, find the gradient, the angle of inclination to the nearest degree, and both intercepts.
This starts on Example 2. Change a, b and c in ax + by + c = 0 and read the gradient and intercepts.
Which coefficient must be zero for a horizontal line? For a vertical line? Then, without touching $c$, change $a$ and $b$ to make the line perpendicular to the starting one.
Parallel and perpendicular lines from their equations
Rearranging $ax + by + c = 0$ gives gradient $-\dfrac{a}{b}$. So two lines in general form are parallel when their $x$ and $y$ coefficients are in the same ratio, for example $2x - 3y + 1 = 0$ and $4x - 6y + 9 = 0$. Only the constant differs.
Find $k$ if $2x + ky - 5 = 0$ is perpendicular to $y = 4x + 1$.
Your turn
The line $3x - 2y + 12 = 0$ meets the $x$-axis at $A$ and the $y$-axis at $B$. Find the area of triangle $OAB$, where $O$ is the origin.
Show the working
Put $y = 0$: $3x = -12$, so $A = (-4, 0)$. Put $x = 0$: $-2y = -12$, so $B = (0, 6)$. The triangle has legs $4$ and $6$ along the axes, so its area is $\tfrac12 \times 4 \times 6 = 12$ square units.
The horizontal line through $(3, -2)$ is:
Every point on a horizontal line has the same $y$-coordinate, here $-2$.
Does $(3, -2)$ lie on $2x + 3y = 0$?
Substitute: $6 - 6 = 0$. The equation is true, so the point is on the line.
Find the gradient of $3x + 4y - 12 = 0$. Give a decimal.
$4y = -3x + 12$, so $y = -\tfrac34 x + 3$. The gradient is $-0.75$.
Find the $y$-intercept of $3x + 4y - 12 = 0$.
Put $x = 0$: $4y = 12$, so $y = 3$.
Find the $x$-intercept of $2x - 5y + 10 = 0$.
Put $y = 0$: $2x + 10 = 0$, so $x = -5$.
$y = \tfrac23 x - 4$ in general form is:
Multiply by $3$: $3y = 2x - 12$. Rearrange: $2x - 3y - 12 = 0$. The first option forgot to multiply the $-4$ by $3$.
Find the angle of inclination of $x + y - 4 = 0$, in degrees.
$y = -x + 4$, so $m = -1$. $\tan\theta = -1$ with $0^\circ \le \theta \lt 180^\circ$ gives $\theta = 135^\circ$.
Find $k$ if $kx + 2y + 1 = 0$ is parallel to $y = 3x - 1$.
The gradient of $kx + 2y + 1 = 0$ is $-\dfrac{k}{2}$. Parallel means $-\dfrac{k}{2} = 3$, so $k = -6$.
Find $k$ if $3x - y + 4 = 0$ and $x + ky + 7 = 0$ are perpendicular.
Gradients: $m_1 = 3$ and $m_2 = -\dfrac1k$. Perpendicular: $3 \times \left(-\dfrac1k\right) = -1$, so $k = 3$.
Exam style: the line $2x + 3y - 12 = 0$ meets the $x$-axis at $A$ and the $y$-axis at $B$. Find the area of triangle $OAB$, where $O$ is the origin.
$y = 0$ gives $x = 6$, so $A = (6, 0)$. $x = 0$ gives $y = 4$, so $B = (0, 4)$. Area $= \tfrac12 \times 6 \times 4 = 12$ square units.
Coaching Centre