Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 9 Maths Core Straight Line

Graphing Linear Equations

20 practice questions 1 video lesson Theory + worked examples

A linear equation such as \(y = 2x + 1\) graphs as a straight line. This NSW Year 9 Core maths subtopic graphs lines from tables of values and from their intercepts, and is Stage 5 Core content under NESA outcome MA5‑LIN‑C‑01.

You will complete tables of values, write the equations of the axes (\(y = 0\) and \(x = 0\)) and of horizontal and vertical lines such as \(y = -3\) and \(x = -8\), and find where two of them meet. You will find where lines like \(y = 3x - 4\) and \(2x + 5y = 10\) cross each axis and use those points to graph the line, check by substitution if a point is on a line, find when a draining water tank is empty, and find the area of the triangle a line cuts off with the axes. It is part of Year 9 Core Straight Line.

Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 1 video(s)
  • Graphing Linear Equations - Video - Graph linear equations using y=mx+b Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A linear equation such as \(y = 2x - 6\) or \(5x + 2y = 20\) graphs as a straight line. This Year 9 maths page shows how to graph one from a table of values or from its intercepts, how to write the equations of horizontal and vertical lines, and how to test whether a point lies on a line.

A linear equation links \(x\) and \(y\) so that its graph is a straight line. Equations like \(y = mx + c\) and \(ax + by = c\) are linear.

A table of values lists chosen \(x\)-values and the \(y\)-values the equation gives. Each pair is a point to plot. Two points fix a line; a third is a check.

The \(y\)-intercept is where the line crosses the \(y\)-axis. Every point on the \(y\)-axis has \(x = 0\). The \(x\)-intercept is where the line crosses the \(x\)-axis, where \(y = 0\).

A horizontal line has an equation like \(y = 3\): every point on it has the same \(y\)-value. A vertical line has an equation like \(x = -2\). The \(x\)-axis is \(y = 0\) and the \(y\)-axis is \(x = 0\).

A point lies on a line if its coordinates make the equation true.

A vertical line and a horizontal lineThe vertical line x = 3, drawn in red, and the horizontal line y = -2, in navy. They meet at the point (3, -2). x y βˆ’4 βˆ’3 βˆ’2 βˆ’1 1 2 4 5 βˆ’4 βˆ’3 βˆ’1 1 2 3 4 x = 3 y = βˆ’2 (3, βˆ’2)
A vertical line has an \(x =\) equation and a horizontal line has a \(y =\) equation. These two meet at \((3, -2)\).
The line 2x + 3y = 12 drawn from its interceptsThe straight line 2x + 3y = 12 crossing the y-axis at (0, 4) and the x-axis at (6, 0). The two intercepts are marked in red. x y βˆ’1 1 2 3 4 8 βˆ’1 1 2 3 5 6 (0, 4) (6, 0) 2x + 3y = 12
For \(2x + 3y = 12\): put \(x = 0\) to get \(y = 4\), and \(y = 0\) to get \(x = 6\). Plot both intercepts and rule the line through them.

To find the intercepts of any line:

\[y\text{-intercept: put } x = 0 \qquad x\text{-intercept: put } y = 0\]
y-intercept: x = 0; x-intercept: y = 0
The lineIts equation
the \(x\)-axis\(y = 0\)
the \(y\)-axis\(x = 0\)
horizontal, through \((a, b)\)\(y = b\)
vertical, through \((a, b)\)\(x = a\)
Lines described in words. "Every point is \(6\) units above the \(x\)-axis" is the horizontal line \(y = 6\). "Every point is \(2\) units to the left of the \(y\)-axis" is the vertical line \(x = -2\). A vertical line \(x = a\) and a horizontal line \(y = b\) meet at \((a, b)\).
Real-life lines. A quantity that changes at a steady rate graphs as a straight line. If a phone credit balance is \(B = 90 - 15w\) after \(w\) weeks, it runs out when \(B = 0\): \(15w = 90\), so \(w = 6\) weeks. That is the intercept on the \(w\)-axis.
Intercepts that are not whole numbers. For \(y = 2x - 3\), put \(y = 0\): \(2x = 3\), so \(x = \dfrac{3}{2}\) and the \(x\)-intercept is \(\left(\dfrac{3}{2}, 0\right)\). For \(y = \dfrac{x}{3} + 2\), put \(y = 0\): \(\dfrac{x}{3} = -2\), so \(x = -6\). Leave an answer as a fraction or a decimal; do not round it to a whole number.
The triangle under a line. A line with intercepts \((a, 0)\) and \((0, b)\) cuts off a right-angled triangle with the axes. Its area is \(\dfrac{1}{2} \times a \times b\) (use the lengths, ignoring signs).

How to graph a linear equation

  1. Choose a method: a table of values, or the two intercepts.
  2. Find the points. For intercepts, put \(x = 0\) for the \(y\)-intercept, and \(y = 0\) for the \(x\)-intercept.
  3. Plot the points on a number plane and rule a straight line through them, extending past both.
  4. Label the line with its equation.
  5. Check with a third point: substitute it into the equation.
Example 1 β€” A table of values
Build a table of values for \(y = 3x - 2\) using \(x = -1\), \(0\) and \(2\), and graph the line.
Solution

Substitute each \(x\)-value into the equation to get its \(y\)-value.

\(x = -1:\ y\)\(=\)\(3 \times (-1) - 2 = -5\)
\(x = 0:\ y\)\(=\)\(3 \times 0 - 2 = -2\)
\(x = 2:\ y\)\(=\)\(3 \times 2 - 2 = 4\)
y=3x−2
\(x\)\(-1\)\(0\)\(2\)
\(y\)\(-5\)\(-2\)\(4\)
Graph of y = 3x - 2 from a table of valuesThe line y = 3x - 2 through the plotted points (-1, -5), (0, -2) and (2, 4). x y βˆ’4 βˆ’3 βˆ’2 1 3 βˆ’6 βˆ’4 βˆ’3 βˆ’1 1 2 3 5 (βˆ’1, βˆ’5) (0, βˆ’2) (2, 4)

Plot \((-1, -5)\), \((0, -2)\) and \((2, 4)\). They line up, which checks the arithmetic.

Example 2 β€” Finding both intercepts
Find the \(x\)- and \(y\)-intercepts of \(y = 2x - 6\), and graph the line.
Solution

For the \(y\)-intercept put \(x = 0\). For the \(x\)-intercept put \(y = 0\) and solve.

\(y\)\(=\)\(2 \times 0 - 6 = -6\)
\(0\)\(=\)\(2x - 6\)
\(6\)\(=\)\(2x\)
\(x\)\(=\)\(3\)
intercepts(3,0),(0,−6)

The intercepts are \(\mathbf{(3, 0)}\) and \(\mathbf{(0, -6)}\).

Graph of y = 2x - 6The line y = 2x - 6 crossing the x-axis at (3, 0) and the y-axis at (0, -6), both marked in red. x y βˆ’2 βˆ’1 1 2 4 5 βˆ’7 βˆ’5 βˆ’4 βˆ’3 βˆ’2 βˆ’1 1 2 3 (3, 0) (0, βˆ’6)
Example 3 β€” Intercepts and the area under a line

(i) Find the intercepts of \(5x + 2y = 20\).
(ii) Find the area of the triangle the line cuts off with the two axes.
Solution

(i) Put \(y = 0\), then put \(x = 0\).

\(5x + 2 \times 0\)\(=\)\(20 \;\Rightarrow\; x = 4\)
\(5 \times 0 + 2y\)\(=\)\(20 \;\Rightarrow\; y = 10\)

The intercepts are \(\mathbf{(4, 0)}\) and \(\mathbf{(0, 10)}\).

The line 5x + 2y = 20 and the triangle it cuts offThe line 5x + 2y = 20 crossing the axes at (4, 0) and (0, 10). The right-angled triangle between the line and the two axes is shaded. x y βˆ’1 1 3 5 βˆ’1 1 3 5 7 9 11 (4, 0) (0, 10)

(ii) The triangle has a right angle at the origin, a base of \(4\) and a height of \(10\).

\(\text{area}\)\(=\)\(\dfrac{1}{2} \times 4 \times 10\)
\(\)\(=\)\(\mathbf{20} \text{ square units}\)
area=12×4×10=20
Example 4 β€” Is the point on the line?

(i) Does the point \((-2, 7)\) lie on the line \(y = -4x - 1\)?
(ii) The point \((k, 3)\) lies on the same line. Find \(k\).
Solution

(i) Substitute \(x = -2\) and compare with the \(y\)-coordinate.

\(-4 \times (-2) - 1\)\(=\)\(8 - 1\)
\(\)\(=\)\(7 \ \checkmark\)

The result equals the \(y\)-coordinate, so the point does lie on the line.

(ii) Substitute \(x = k\) and \(y = 3\), then solve.

\(3\)\(=\)\(-4k - 1\)
\(4\)\(=\)\(-4k\)
\(k\)\(=\)\(\mathbf{-1}\)
k=−1

Check: \(-4 \times (-1) - 1 = 3\).

Common pitfalls

For the x-intercept put y = 0, not x = 0. The intercept is named after the axis it sits on, and on the \(x\)-axis every \(y\) is \(0\).
x = 4 is vertical, y = 4 is horizontal. Reading them the other way round is the standard trap. \(x = 4\) is every point with \(x\)-coordinate \(4\): a vertical line.
Substitute both coordinates. To test a point, use its \(x\) and its \(y\). Checking only one proves nothing.
Watch the signs when substituting negatives. \(-4 \times (-2) = +8\). Use brackets around a negative value when you substitute it.

Frequently asked questions

How do you find the x-intercept of a line?

Put \(y = 0\) in the equation and solve for \(x\). For \(y = 2x - 6\): \(0 = 2x - 6\), so \(x = 3\) and the \(x\)-intercept is \((3, 0)\).

How do you find the y-intercept of a line?

Put \(x = 0\) in the equation and work out \(y\). For \(5x + 2y = 20\): \(2y = 20\), so the \(y\)-intercept is \((0, 10)\).

What is the equation of a horizontal line?

A horizontal line has an equation of the form \(y = b\), where \(b\) is the \(y\)-coordinate of every point on it. The \(x\)-axis itself is \(y = 0\).

How do you know if a point is on a line?

Substitute the \(x\)- and \(y\)-coordinates of the point into the equation. If both sides are equal, the point is on the line. If not, it is not.

How many points do you need to draw a straight line?

Two points are enough to fix a straight line. Plotting a third point is a good check: if it does not line up, there is a mistake.