← Level 6 – Problem Solver

9 / 30 ⏱ 17 minutes

A linear function and its graph

The rule y = ax + b, a straight line, slope and shift.

A function that makes a straight line

The functions from the last lesson: all y = ax + b. This type has a name: a linear function. “Linea” is Latin for line. And that’s exactly its magic: when you plot its values on a graph, a straight line comes out.

You draw the graph on a coordinate grid: the horizontal x-axis, the vertical y-axis. Each row of the table of values is one point: the pair (x, y). For a linear function, all the points lie in one row, like beads on a tight string.

The two numbers in the rule have jobs. The number a (next to x) is the slope: it says how much y goes up when x goes up by 1. A big a = a steep line. A negative a = the line goes down.

The number b (on its own) is the starting value: where the line crosses the y-axis. It’s y for x = 0.

Today you’ll draw your first graphs and learn to read the shape of the line from the rule before you even draw it.

Emma is saving for headphones. She starts with $20 and adds $5 every week. “That’s a linear function,” she shows Adam, “y = 5x + 20. After x weeks, I have y dollars.” She draws the graph: the points (0, 20), (1, 25), (2, 30): all in one straight row. Adam puts a ruler on it: “It really is a line. And I can see the future: in 10 weeks you’ll have 70.” Emma grins: “That’s exactly why you draw it. The graph shows all the weeks at once.”

💡

Two points are enough to draw a line, but work out three. The third point is a check: if it doesn’t line up with the first two, there’s a calculation mistake somewhere.

From the rule to the graph in three steps

I’ll show it on the function y = 2x + 1.

Step 1: A table of at least three values. I choose easy x’s: 0, 1, 2. The y’s come out: 1, 3, 5. I have the points (0, 1), (1, 3), (2, 5).

Step 2: Plot the points. The point (1, 3) means: go along the x-axis to one, then up to three. A dot.

Step 3: Connect them with a ruler. All three points have to lie on one line. If the third one is off, recalculate it: it’s a calculation mistake, not a ruler mistake.

Reading the rule without drawing:

y = 3x + 2 → slope 3 (rises steeply), crosses the y-axis at a height of 2. y = x − 4 → slope 1 (rises gently, 1 for every 1), crosses the y-axis at −4. y = −2x + 5 → slope −2, it goes down (for every step to the right, it goes 2 down), starts at 5. y = 3 → slope 0, a horizontal line at a height of 3. That’s a linear function too, just a lazy one.

A trick for checking: substitute x = 0. Exactly b comes out. If your graph doesn’t cross the y-axis at b, something’s wrong.

Example 1: draw y = x + 2

The problem: Build a table and draw the graph of the function y = x + 2.

The process: A table for x = 0, 1, 2, 3:

y = 2, 3, 4, 5. The points: (0, 2), (1, 3), (2, 4), (3, 5).

I plot them and connect them with a ruler: the line rises at a 45° angle (the slope is 1: one to the right, one up).

The check: For x = 0, y should be 2: the line really does cross the y-axis at two. It fits.

Example 2: recognize a function by its rule

The problem: Without drawing, decide what the graphs of y = 4x + 1, y = −x + 3 and y = 0.5x look like.

The process: I read a and b.

y = 4x + 1: slope 4: a very steep climb. It starts on the y-axis at a height of 1.

y = −x + 3: slope −1: it goes down. It starts at a height of 3.

y = 0.5x: slope 0.5: it rises gently (half up for every one to the right). The number b is 0, so it passes through the origin (0, 0).

The answer: the first rises steeply, the second goes down, the third rises gently right from the origin.

Example 3: saving as a line

The problem: Philip has $30 and saves $4 a week. Write the function, draw the graph, and read off when he’ll have $50.

The process: The rule: y = 4x + 30 (x = weeks, y = dollars).

The table: x = 0, 2, 5 → y = 30, 38, 50.

From the table, I can see right away: he has $50 in week five. I check with an equation: 50 = 4x + 30, so 20 = 4x, which means x = 5. It fits.

The answer: In 5 weeks. The graph shows this answer as the point where the line reaches a height of 50.

⚠️

Don’t forget the scale of the axes. If you jump by tens on the y-axis and by ones on the x-axis, the line looks steeper or flatter than the slope suggests. That’s fine: just keep evenly spaced marks on both axes and label them. A graph without numbers on the axes is a picture, not a graph.

Practice: your turn to count 🎲

Now try it for real. You’ll see all the questions at once, like on paper. البداية with ten. If it’s going well, add more.

Calculate values of linear functions: each answer is one point of the graph. Write a whole number.

Practice questions

On paper

Take graph paper, draw the axes, and draw. A ruler is required.

  1. Draw the graph of y = 2x + 1: a table for x = 0, 1, 2, 3, plot, connect. Check that the line crosses the y-axis at 1.

  2. In the same picture, draw y = 2x + 3. What do the two lines have in common? (A hint: the same a.)

  3. Draw y = −x + 4. Check that it goes down and starts at 4.

  4. From the graph of the first function, read y for x = 2.5 and check it by substituting into the rule.

دورك 💪

  1. I can tell from the rule, without drawing, whether the line goes up or down.
  2. I know where the line crosses the y-axis (it’s the number b, the value for x = 0).
  3. My three points always lie on one line: I use the third point as a check.
✅

Done when: you’ve drawn three lines with the correct slope and y-intercept, and read one value off the graph and checked it by calculating.

What to take away from this lesson