Skip to main content

Functions

Linear functions

A linear function has the form y=mx+by = mx + b. Its graph is a straight line: mm is the slope — how much yy changes when xx grows by 1 — and bb is where the line crosses the yy-axis.

What is a linear function?

y=mx+by = mx + b
  • Slope $m$

    Positive: the line rises from left to right. Negative: it falls. Zero: it’s horizontal. Bigger ∣m∣|m| means steeper.

  • Intercept $b$

    The value of yy when x=0x = 0 — the point (0,b)(0, b) on the yy-axis.

  • Constant rate

    Every step of 11 in xx changes yy by the same amount, mm. That’s what makes it a straight line.

Explore the graph

Change the slope and the intercept and watch the line respond. Then try the challenge.

Worked example

A line through two points

Problem: Find the equation of the line through (1,3)(1, 3) and (4,9)(4, 9).

  1. Slope = change in yy divided by change in xx.

    m=9−34−1=63=2m = \frac{9 - 3}{4 - 1} = \frac{6}{3} = 2
  2. Substitute one point into y=2x+by = 2x + b.

    3=2⋅1+b  ⇒  b=13 = 2 \cdot 1 + b \;\Rightarrow\; b = 1
  3. Check with the other point.

    2⋅4+1=9  ✓2 \cdot 4 + 1 = 9 \;\checkmark

Result: y=2x+1y = 2x + 1

Common mistakes

  • Mistake 1 · Mixing the order in the slope formula: 9−31−4\frac{9 - 3}{1 - 4}.

    Why it happens
    Top and bottom must subtract the points in the same order.
    What to do instead
    y2−y1x2−x1\frac{y_2 - y_1}{x_2 - x_1} — same point first in both.
  • Mistake 2 · Confusing bb with where the line crosses the xx-axis.

    Why it happens
    bb is the yy-intercept: the value at x=0x = 0.
    What to do instead
    For the xx-intercept, set y=0y = 0 and solve.
  • Mistake 3 · Thinking a bigger bb makes the line steeper.

    Why it happens
    bb only shifts the line up or down.
    What to do instead
    Steepness comes from mm.

Practice

  1. 1. What are the slope and yy-intercept of y=−3x+4y = -3x + 4?

    Hint

    Compare with y=mx+by = mx + b.

    Show answer

    Slope −3-3, intercept 44.

  2. 2. Find the line through (0,2)(0, 2) and (2,8)(2, 8).

    Hint

    The first point already gives you bb.

    Show answer

    m=8−22−0=3m = \frac{8 - 2}{2 - 0} = 3, so y=3x+2y = 3x + 2.

  3. 3. Is the point (3,7)(3, 7) on the line y=2x+1y = 2x + 1?

    Hint

    Substitute x=3x = 3.

    Show answer

    Yes: 2⋅3+1=72 \cdot 3 + 1 = 7.

  4. 4. Where does y=2x−6y = 2x - 6 cross the xx-axis?

    Hint

    Set y=0y = 0.

    Show answer

    0=2x−60 = 2x - 6, so x=3x = 3: the point (3,0)(3, 0).

Learn with ALMA

Stuck on a problem like this?

Want to practise this with Maya? If your school uses ALMA, open your invite link. If not, try the demo first.