Lesson 12.3 · 28 min
Linear Functions
Straight-line graphs, what the gradient and the intercept mean, and drawing a line from its equation.
In this lesson you will learn to…
- Draw the graph of a linear function from a table of values
- Identify the gradient and the y-intercept from an equation
- Write the equation of a line from its graph
- Decide whether a point lies on a given line
Why straight lines matter
Any relationship where something changes by the same amount every time draws a straight line. A taxi that charges $3 to start and $2 per kilometre; a phone plan with a monthly fee plus a rate per gigabyte; a tank draining at a steady rate. All of them are in disguise.
What and actually do
Use the explorer above while you read this — it is much faster than taking it on trust.
moves the line up and down. Change and the line slides vertically without tilting. It is the value of when , which is exactly where the line meets the vertical axis.
tilts the line.
| What the line does | |
|---|---|
| Large positive, e.g. | Rises steeply left to right |
| Small positive, e.g. | Rises gently |
| Zero | Flat — a horizontal line |
| Negative, e.g. | Falls left to right |
Drawing a line from its equation
- Make a table with a handful of values, including and some negatives.
- Substitute each one into the equation. Take your time with negatives.
- Plot the points.
- Join them with a ruler and extend the line to the edges of the grid.
- Check it looks right — does it cross the -axis at ? Does its steepness match ?
If one point is out of line with the others, you have made an arithmetic slip, not a discovery. Go back and check that value.
Finding the equation from a graph
Read off first — it is free, you just look at where the line crosses the -axis.
Then find by picking two points where the line passes exactly through grid corners and counting:
Counting between two corners avoids estimating, which is where errors creep in. If the line goes down as you move right, is negative — write the minus sign immediately, before you forget.
The quickest check of all. Once you have an equation, test it on a point you did not use to find it. If it works, you are right; if it does not, you have the gradient or the intercept wrong.
Key rules and formulas
The equation of a straight line
is the gradient — how steep the line is. is the y-intercept — where the line crosses the -axis.Gradient
Pick two points on the line, ideally where it crosses grid corners, and count across then up. Going down as you move right means a negative gradient.Reading the intercept
The -intercept is the value of when . On a graph it is simply where the line crosses the vertical axis — no calculation needed.Is a point on the line?
Substitute the coordinates into the equation. If both sides come out equal, the point is on the line. If not, it is not — no matter how close it looks.
Gradient and intercept explorer
- Equation
- y = 2x − 2
- Crosses the y-axis at
- (0, -2)
- For every 1 across
- 2 up
Drag and watch the steepness change; drag and watch the whole line slide up and down without changing its slope. Try making negative — the line tips the other way.
Worked examples
Drawing
Try it yourself first, then reveal the solution one step at a time.
Finding the equation from a graph
Try it yourself first, then reveal the solution one step at a time.
Is the point on the line?
Try it yourself first, then reveal the solution one step at a time.
Practice: linear functions
10 questions
Question 1 of 10Multiple choiceFoundation What is the gradient of the line ?Question 2 of 10Type the answerFoundation At what value of does the line cross the -axis?Question 3 of 10Complete the table Complete the table of values for .Question 4 of 10Explore and match Move the sliders so the red line matches .Move the controls until you match the question, then press Check.
- Equation
- y = 1x + 0
- Crosses the y-axis at
- (0, 0)
- For every 1 across
- 1 up
Question 5 of 10Click the diagram On this graph, click the point where the line crosses the -axis.Click the right part of the diagram. You can also tab to each part and press Enter.
Question 6 of 10Click the diagram On the same graph, click the dashed step that shows the gradient — the rise for one unit across.Click the right part of the diagram. You can also tab to each part and press Enter.
Question 7 of 10Algebraic answer A line crosses the -axis at and passes through . Write its equation. Start your answer withy =.Type powers with
^(son^2is n squared). Any equivalent form is accepted.Question 8 of 10True or false The point lies on the line .Question 9 of 10Choose all that applyChallenge Select every line below that is parallel to .Select every correct answer — there may be more than one.
Question 10 of 10Explore and match Move the sliders to make a line that falls as you move right and crosses the -axis at . Use a gradient of .Move the controls until you match the question, then press Check.
- Equation
- y = 1x + 0
- Crosses the y-axis at
- (0, 0)
- For every 1 across
- 1 up