How do you turn a linear relationship into a straight-line graph, plotting points from a table of values, recognising the line, sketching horizontal and vertical lines, and finding the intercepts?
Graph linear functions by constructing a table of values and plotting the points, recognise a linear relationship, sketch horizontal and vertical lines, and graph a line using its x- and y-intercepts
A focused answer to the HSC Maths Standard 2 dot point on graphing linear functions. Build a table of values, plot the points and rule a straight line, sketch horizontal lines and vertical lines, graph a line from its x- and y-intercepts, and read values off the graph, with worked Australian cost and distance examples.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
What this dot point is asking
A linear relationship is one where, every time the independent variable goes up by the same step, the dependent variable changes by the same amount. Plot it and the points fall in a perfectly straight line, which is why these are called linear functions. NESA wants you to turn such a relationship into a graph and read information back off it. Three skills are bundled here, and a question can test any of them. The first is to build a table of values and plot the points to draw the line. The second is to recognise and sketch the two special cases, horizontal lines and vertical lines . The third is to graph a line quickly from its - and -intercepts when you are given its equation.
The deeper idea worth carrying through all of it is that two points are enough to fix a straight line. A table of values gives you several points as a safety net: if one is out of line, you have made an arithmetic slip. But once you trust the relationship is linear you only ever need two well-chosen points, and the two easiest to find are almost always the intercepts. The marks come from a correctly labelled and scaled set of axes, accurately plotted points, a ruled straight line, and reading values off cleanly. Marks are lost in predictable ways: cramped or unlabelled axes, a freehand wavy line, plotting a point with the coordinates the wrong way around, and misreading a horizontal line for a vertical one.
The answer
Recognising a linear relationship
When a relationship is linear, equal steps in produce equal steps in . Look at the table for :
Every time increases by , increases by . That constant step is the fingerprint of a straight line: it is what makes the points line up when you plot them. A relationship whose -steps are not constant (for example , where the gaps grow) is not linear and its graph is a curve, which is outside this dot point. In Mathematics Standard, the linear functions you graph come in two shapes: written as in terms of (such as or ), or written as an equation like that mixes and on one side. The method below handles both.
Graphing from a table of values
This is the bread-and-butter method, and it always works. There are three moves: build the table, draw and label the axes, then plot and rule.
- Build the table of values. Put the independent variable (usually ) in the top row and choose a small spread of values, commonly a few either side of . Substitute each one into the equation to fill in the bottom row (the dependent variable, usually ). Three points is the minimum, but four or five is safer because a stray point reveals a mistake.
- Draw and label the axes. Put the independent variable on the horizontal axis and the dependent variable on the vertical axis. Choose a scale that fits all your values and is evenly spaced, and label each axis with its variable and units. Good scaling is itself worth marks.
- Plot the points and rule the line. Plot each ordered pair , going across first, then up or down. Then join them with a single straight line drawn with a ruler, extending it a little past the end points and adding arrowheads.
The four panels below build the graph of a real Australian context, the cost dollars of buying punnets of strawberries at a market stall charging dollars each, so . The table of values is:
| (punnets) | ||||||
|---|---|---|---|---|---|---|
| ($) |
Stage 1, draw and label the axes. Put the independent variable (the number of punnets) on the horizontal axis and the dependent variable (the cost in dollars) on the vertical axis. Scale the cost axis in steps of so all the values from the table fit, and label each axis. An empty, well-scaled plane is the foundation; getting the scale right now saves redrawing later.
Stage 2, plot the points from the table. Take each pair from the table and plot it, reading the punnet value across the bottom and the cost value up the side: , , , , and . Plot across first, then up. Already the dots look as if they line up, which is the visual check that the relationship is linear.
Stage 3, rule a straight line through the points. Lay a ruler along the points and draw one straight line through all of them, extending it a little past the ends. If a point sits off the line, recheck that row of the table; here all six points lie exactly on the line, confirming is linear.
Stage 4, read values off the finished graph. The graph now answers questions the table did not list. The line passes through the origin , its -intercept, meaning zero punnets cost nothing. To find the cost of punnets-worth, read up from on the bottom axis to the line, then across to the cost axis, landing on dollars (and indeed ).
Horizontal and vertical lines
Two special linear graphs are worth knowing on sight, because their equations look like they are missing a variable.
- A horizontal line has equation for some fixed number . Every point on it has the same -coordinate, , no matter what is, so the line runs flat across the plane through on the -axis. For example passes through , and .
- A vertical line has equation . Every point on it has the same -coordinate, , whatever is, so the line runs straight up and down through on the -axis. For example passes through , and .
The way to keep them straight is to ask which coordinate is pinned. In the -value is pinned at and roams free, so the line is the set of all points at height : a horizontal line. In the -value is pinned and roams free, so the line is vertical. The pair below shows both on one plane.
Graphing a line from its intercepts
When you are given an equation like , building a full table is slower than you need. Because two points fix a line, the fastest sketch comes from the two intercepts, the points where the line crosses the axes.
- The -intercept is where the line crosses the -axis. On the -axis, , so set and solve for .
- The -intercept is where the line crosses the -axis. On the -axis, , so set and solve for .
For : setting gives , so and the -intercept is ; setting gives , so and the -intercept is . Mark those two points and rule the line through them. The diagram below shows the result, with both intercepts marked.
The trick to remember which to zero is that you head to an axis by killing the other variable: to reach the -axis you make zero, and to reach the -axis you make zero. It feels back to front at first, which is exactly why it is a common trap.
How exam questions ask about graphing linear functions
The wording tells you which method to reach for:
- "Complete the table of values" or "draw the graph of by first constructing a table of values" means substitute the listed values, plot the pairs, and rule the line.
- "Plot the following points and join them to form a straight line" gives you the table already; just plot accurately and rule.
- "Sketch the graph of " (or ) is testing the special lines: decide horizontal or vertical by which coordinate is pinned, then draw it.
- "Find the -intercept and the -intercept", or "sketch the line ", means use the intercept method: zero for the -intercept, zero for the -intercept.
- "Use your graph to find ..." is a read-off: go up (or across) from the given value to the line, then across (or down) to the other axis, and state the value with units.
- "Show that the point lies on the line" means substitute the coordinates into the equation and check both sides are equal.
Why two points (the intercepts) are enough
It is worth seeing why the intercept shortcut is valid, because it is the reasoning behind nearly every quick sketch. A straight line has no bends, so once you know any two distinct points on it there is exactly one line you can rule through them: two points determine a line. A table of values gives you more than two points, but only as insurance against an arithmetic slip; the line itself is already pinned down by any two of them. The intercepts are simply the two easiest points to compute, because setting a variable to zero removes a whole term from the equation.
The method does have one edge case. A line through the origin, like or , has both intercepts at the same point , so the two intercepts coincide. Here you need a second point elsewhere to fix the direction, found by substituting any convenient value, say . Lines of the form and are the other edge case. A horizontal line (with ) never crosses the -axis, and a vertical line (with ) never crosses the -axis, so the intercept method does not apply and you read them straight off as flat or upright.
Exam-style practice questions
Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
2021 HSC-style3 marksA mobile phone plan charges a fixed monthly fee plus a rate per minute of calls. The cost $ for a month with minutes of calls is . (a) Construct a table of values for . (b) State the -intercept and explain what it represents.Show worked answer →
Part (a): substitute each into . Work along the row, multiplying the minutes by and adding :
, then , then , then .
| (minutes) | ||||
|---|---|---|---|---|
| ($) |
Part (b): read off the intercept. The line cuts the vertical axis where , giving , so the -intercept is . It represents the fixed monthly fee of $ that is charged even when no calls are made.
Markers reward four correct table values and an interpretation of the intercept as the fixed fee, not just the bare number.
2023 HSC-style4 marksA line has equation . (a) Find the -intercept and the -intercept. (b) Show that the point lies on the line. (c) Describe how to sketch the line using your answers from part (a).Show worked answer →
Part (a): find each intercept. For the -intercept set , because the line meets the -axis where is zero:
giving the -intercept . For the -intercept set :
giving the -intercept .
Part (b): check the point. Substitute and into the left-hand side: . This equals the right-hand side, so satisfies the equation and lies on the line.
Part (c): sketch. Mark on the -axis and on the -axis, then rule a single straight line through them, extended a little past both points. Two points fix a straight line, so the intercepts alone give the whole graph.
Markers reward both intercepts found by zeroing the correct variable, a clear both-sides check for the point, and a method that joins the two intercepts.
2024 HSC-style4 marksA water tank is draining at a steady rate. The volume litres remaining after minutes is . (a) Construct a table of values for . (b) Use the relationship to find the volume after minutes. (c) Find how long the tank takes to empty completely.Show worked answer →
Part (a): substitute each into . Multiply the time by and subtract from :
, then , then , then .
| (minutes) | ||||
|---|---|---|---|---|
| (litres) |
Part (b): volume after minutes. Reading up from to the line and across to the -axis matches the calculation litres.
Part (c): time to empty. The tank is empty when . Reading across from to the line and down to the -axis gives , matching , so and minutes.
Markers reward four correct table values (note the line falls because the gradient is negative), a read-off or calculation for the volume, and solving for the empty time.
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation2 marksComplete a table of values for the line using , then state the coordinates of the five points you would plot.Show worked solution →
Substitute each value into . Work along the row, adding to each :
Write out the table. The completed table of values is:
State the points. The five points to plot are , , , and . They rise one unit for every unit you move right, which is the sign of a straight line.
foundation2 marksOn a number plane, describe how you would draw the graph of (a) the line and (b) the line .Show worked solution →
- Part (a), the line
- Every point on this line has a -coordinate of , no matter what is. So it is a horizontal line. Draw a flat line straight across the plane through on the -axis, for example through , and .
- Part (b), the line
- Every point on this line has an -coordinate of , whatever is. So it is a vertical line. Draw a line straight up and down through on the -axis, for example through , and .
- State the rule
- An equation of the form is always horizontal and an equation of the form is always vertical; the missing variable is free to be anything.
core3 marksA line has equation . (a) Find the -intercept and the -intercept. (b) Hence describe how to sketch the line.Show worked solution →
Part (a), find the -intercept. The -intercept is where the line crosses the -axis, so . Substitute :
The -intercept is the point .
Find the -intercept. The -intercept is where the line crosses the -axis, so . Substitute :
The -intercept is the point .
Part (b), sketch the line. Mark the two intercepts, on the -axis and on the -axis, then rule a straight line through them and extend it past both points. Two points are enough to fix a straight line, so the intercepts alone give the whole graph.
core3 marksA car travels at a constant speed. Its distance from home, km, after hours is given by . (a) Construct a table of values for . (b) Use the graph idea to find the distance after hours, and (c) the time taken to travel km.Show worked solution →
Part (a), build the table. Substitute each into :
| (hours) | ||||
|---|---|---|---|---|
| (km) |
- Part (b), distance after hours
- Read up from to the line, then across to the -axis. By calculation, km.
- Part (c), time to travel km
- Read across from to the line, then down to the -axis. By calculation, , so hours.
- Interpret
- The line passes through the origin because at the car is at home; its steady climb of km each hour is the constant speed.
exam5 marksA market stall sells punnets of strawberries for CnC = 4nn = 0, 1, 2, 3, 4, 5y2.5$ punnets-worth (for example, half-punnet trays).Show worked solution →
Part (a), build the table. Substitute each into :
| (punnets) | ||||||
|---|---|---|---|---|---|---|
| ($) |
- Part (b), graph the line
- Put on the horizontal axis and on the vertical axis, plot the six points and rule a straight line through them. The points line up, so the relationship is linear.
- Part (c), the -intercept
- The line cuts the vertical axis at , so the -intercept is . It means that buying punnets costs dollars, which makes sense for a stall that charges only per punnet with no fixed fee.
- Part (d), read off punnets
- Read up from to the line, then across to the -axis. By calculation, dollars. So two and a half punnets-worth cost dollars.
exam5 marksA line has equation . (a) Find its - and -intercepts. (b) Show that the point lies on the line. (c) Sketch the line and use it to find when , confirming your intercept.Show worked solution →
Part (a), find the intercepts. For the -intercept set :
giving . For the -intercept set :
giving .
Part (b), check the point . Substitute and into the left-hand side:
This equals the right-hand side, , so satisfies the equation and lies on the line.
Part (c), sketch and confirm. Mark and , rule the line through them, and check it passes through as a third point. Reading off at gives , which matches the -intercept found by calculation, so the sketch is correct.
Related dot points
- Find the gradient of a straight line as rise over run, interpret the sign of the gradient and what steepness means, read the y-intercept from a graph, and calculate the gradient between two points
A focused answer to the HSC Maths Standard 2 dot point on gradient and intercept. Gradient as rise over run, what positive, negative, zero and undefined gradients mean and what steepness tells you, reading the y-intercept off a graph, and the gradient formula between two points, with worked ramp, hourly-pay and phone-plan examples.
- Use the gradient-intercept form y = mx + b: read the gradient m and the y-intercept b directly from the equation (rearranging first if needed), write the equation of a line from its graph, and sketch a line from m and b
A focused answer to the HSC Maths Standard 2 dot point on the gradient-intercept formula. How to read the gradient m and y-intercept b straight from y = mx + b, rearrange an equation into that form first, write the equation of a drawn line, sketch a line from m and b, and build a real cost model, with worked Australian examples.
- Construct a linear model y = mx + b for a practical situation made of a fixed amount plus a constant rate, interpret the gradient as the rate and the y-intercept as the fixed starting amount in context, and use the model to predict an output and to find the input that gives a required output
A focused answer to the HSC Maths Standard 2 dot point on linear models. How to build y = mx + b from a fixed amount plus a rate, interpret the gradient and y-intercept in words with units, predict a value and read the model backwards, with worked plumber, taxi, mobile-plan and tank-filling examples.
- Recognise and model direct variation y = kx, where one quantity is a constant multiple of another, find the constant of variation k from a data pair, write and use the equation, identify direct variation from a constant ratio in a table or a straight-line graph through the origin, and contrast it with simple inverse variation y = k/x
A focused answer to the HSC Maths Standard 2 dot point on direct variation. How y = kx works, finding the constant of variation k from a data pair, why the graph is a straight line through the origin, recognising direct variation from a table or graph, and a brief contrast with inverse variation y = k/x, with worked pay, cost and speed examples.
- Substitute numerical values into a formula or algebraic expression and evaluate it, including expressions with powers, fractions and negative numbers
A focused answer to the HSC Maths Standard 2 dot point on substitution. Replacing pronumerals with values, the order of operations, the rule for powers of negatives, brackets and fractions, calculator layout, units and rounding, with worked Australian examples for a tradie's quote, a tank's surface area and stopping distance.