AxoPrep

Mathematics: Analysis and Approaches

SL 2.1 Equations of straight lines

A straight line is fixed by its gradient and one point, and gradients tell you instantly whether two lines are parallel or perpendicular. Study guide, 2 practice questions with markschemes and 2 flashcards. Free.

Gradient and intercepts · Gradient-intercept, general and point-gradient forms · Parallel lines · Perpendicular lines · Finding a line from two points

Practise all 2 questions Study 2 flashcards

Study guide

Gradient: the steepness number

The gradient \(m\) of a line measures how much \(y\) changes for each 1-unit step in \(x\). Between two points,

\[m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\text{rise}}{\text{run}}.\]

Positive \(m\) goes uphill left to right, negative \(m\) downhill, \(m = 0\) is horizontal, and a vertical line has undefined gradient (its equation is \(x = c\)).

Three ways to write a line

They are all the same line, rearranged. The \(x\)-intercept is found by setting \(y = 0\); the \(y\)-intercept by setting \(x = 0\).

Parallel and perpendicular

Parallel lines have equal gradients. Perpendicular lines have gradients whose product is \(-1\), so

\[m_2 = -\frac{1}{m_1}.\]

Intuition: rotate a line by \(90^\circ\) and the "rise" and "run" swap places, and one of them changes sign. So a gradient of \(\frac{2}{3}\) becomes \(-\frac{3}{2}\).

Worked example

Points \(A(1, 3)\) and \(B(5, 11)\).

  1. Gradient: \(m = \frac{11 - 3}{5 - 1} = 2\).
  2. Line \(AB\): \(y - 3 = 2(x - 1)\), so \(y = 2x + 1\).
  3. Line through \(B\) perpendicular to \(AB\): gradient \(-\frac12\), so \(y - 11 = -\frac{1}{2}(x - 5)\). Multiply by 2: \(2y - 22 = -x + 5\), giving \(x + 2y - 27 = 0\).

Check: \(B\) satisfies it, since \(5 + 22 - 27 = 0\).

Intersections

Two non-parallel lines meet at exactly one point. Solve the equations simultaneously, by substitution, elimination or with the GDC. For \(y = 2x + 1\) and \(x + 2y - 27 = 0\): substitute to get \(x + 4x + 2 - 27 = 0\), so \(x = 5\), \(y = 11\), which is \(B\), as expected.

In context

In a model like "cost \(= 40 + 12h\)" the gradient 12 is the rate (USD 12 per hour) and the intercept 40 is the fixed charge. Exam questions often ask you to interpret these in words.

Common mistakes

Exam tips

Cheat sheet

ItemFormula
Gradient\(m = \dfrac{y_2 - y_1}{x_2 - x_1}\)
Gradient-intercept\(y = mx + c\)
Point-gradient\(y - y_1 = m(x - x_1)\)
General form\(ax + by + d = 0\)
Parallel\(m_1 = m_2\)
Perpendicular\(m_1 m_2 = -1\)
Vertical / horizontal\(x = k\) / \(y = k\)

Key definitions

Gradient

The change in \(y\) divided by the change in \(x\) between any two points on a line.

y-intercept

The point where a graph crosses the \(y\)-axis, found by setting \(x = 0\).

x-intercept

The point where a graph crosses the \(x\)-axis, found by setting \(y = 0\).

Parallel lines

Lines with equal gradients that never meet.

Perpendicular lines

Lines meeting at a right angle; their gradients multiply to \(-1\).

General form

A line written as \(ax + by + d = 0\).

Practice questions

SLPaper 1Foundation

Question 1

The line \(L_1\) passes through the points \(A(2, -1)\) and \(B(6, 7)\).

(a) [2]

Find the gradient of \(L_1\).

Markscheme
  • 1 Uses \(\frac{y_2 - y_1}{x_2 - x_1}\), e.g. \(\frac{7 - (-1)}{6 - 2}\)
  • 1 \(m = 2\)
(b) [2]

Find the equation of \(L_1\) in the form \(y = mx + c\).

Markscheme
  • 1 Substitutes a point, e.g. \(y + 1 = 2(x - 2)\)
  • 1 \(y = 2x - 5\)
(c) [3]

The line \(L_2\) is perpendicular to \(L_1\) and passes through \((4, 1)\). Find the equation of \(L_2\) in the form \(ax + by + d = 0\), where \(a, b, d \in \mathbb{Z}\).

Markscheme
  • 1 Perpendicular gradient \(-\frac{1}{2}\)
  • 1 Substitutes point, e.g. \(y - 1 = -\frac{1}{2}(x - 4)\)
  • 1 \(x + 2y - 6 = 0\) (or any integer multiple)
SLPaper 1Foundation

Question 2

The line \(L\) has equation \(3x - 4y = 12\).

(a) [2]

Write down the coordinates of the points where \(L\) meets the \(x\)-axis and the \(y\)-axis.

Markscheme
  • 1 \((4, 0)\)
  • 1 \((0, -3)\)
(b) [2]

Find the gradient of \(L\).

Markscheme
  • 1 Rearranges, e.g. \(y = \frac{3}{4}x - 3\)
  • 1 \(m = \frac{3}{4}\)
(c) [2]

A second line is parallel to \(L\) and has \(y\)-intercept \(5\). Find where it crosses the \(x\)-axis.

Markscheme
  • 1 Equation \(y = \frac{3}{4}x + 5\)
  • 1 \(x = -\frac{20}{3}\), i.e. \(\left(-\frac{20}{3}, 0\right)\)

Key facts

Three forms of the equation of a straight line

Gradient-intercept \(y = mx + c\); point-gradient \(y - y_1 = m(x - x_1)\); general \(ax + by + d = 0\).

Condition for two lines to be perpendicular

\(m_1 \times m_2 = -1\), i.e. \(m_2 = -\frac{1}{m_1}\) (negative reciprocal). Parallel lines have \(m_1 = m_2\).