7C

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

Gradient–intercept form
$$y = mx + b \qquad \text{gradient } m,\ y\text{-intercept } b$$

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.

Example 1●

Write $y = \tfrac34 x - 2$ in general form.

$4y = 3x - 8$
Multiply every term by 4 to clear the fraction.
$3x - 4y - 8 = 0$
Move everything to the side that keeps the x coefficient positive.
Example 2●●

For the line $5x + 2y - 10 = 0$, find the gradient, the angle of inclination to the nearest degree, and both intercepts.

$2y = -5x + 10$, so $y = -\tfrac52 x + 5$. Gradient $-\tfrac52$, $y$-intercept $5$.
Make y the subject to read off m and b.
$\theta \approx 180^\circ - 68^\circ = 112^\circ$
tan⁻¹(5/2) ≈ 68°. The gradient is negative, so the angle is obtuse.
$5x - 10 = 0$, so the $x$-intercept is $2$.
The x-intercept is where y = 0. Substitute into the original equation.
General form explorer

This starts on Example 2. Change a, b and c in ax + by + c = 0 and read the gradient and intercepts.

Try this

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.

Example 3●●

Find $k$ if $2x + ky - 5 = 0$ is perpendicular to $y = 4x + 1$.

$m_1 = -\dfrac{2}{k}$, and $m_2 = 4$.
Gradient of the general-form line is −a/b.
$-\dfrac{2}{k} \times 4 = -1$, so $\dfrac{8}{k} = 1$ and $k = 8$.
Perpendicular: product is −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.

Flashcards
Gradient–intercept form
$y = mx + b$
General form
$ax + by + c = 0$, whole numbers, $a$ positive
Gradient of $ax + by + c = 0$
$-\dfrac{a}{b}$
Practice
  1. The horizontal line through $(3, -2)$ is:

  2. Does $(3, -2)$ lie on $2x + 3y = 0$?

  3. Find the gradient of $3x + 4y - 12 = 0$. Give a decimal.

  4. Find the $y$-intercept of $3x + 4y - 12 = 0$.

  5. Find the $x$-intercept of $2x - 5y + 10 = 0$.

  6. $y = \tfrac23 x - 4$ in general form is:

  7. Find the angle of inclination of $x + y - 4 = 0$, in degrees.

  8. Find $k$ if $kx + 2y + 1 = 0$ is parallel to $y = 3x - 1$.

  9. Find $k$ if $3x - y + 4 = 0$ and $x + ky + 7 = 0$ are perpendicular.

  10. 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.

Formula sheet