Module 4 · Linear functions · Lesson 24 of 84

Linear functions and their graphs

Slope as a rate of change, slope-intercept and point-slope form, graphing, and parallel and perpendicular lines.

In this lesson · about 22 minutes

  • Recognise a linear function from a table, graph or formula
  • Read the slope as a constant rate of change
  • Write a line in slope-intercept and point-slope form
  • Graph a line from its slope and intercept
  • Write parallel and perpendicular lines

A taxi charges $3 to get in and then $2 for every kilometre. The fare is F(d) = 2d + 3. Every extra kilometre adds exactly $2, no matter how far you have already gone. A function that changes by the same amount for every step of the input is a linear function. Its graph is a straight line.

Every linear function can be written in slope-intercept form:

f(x) = mx + b

  • m is the slope: the rate of change, how much the output changes when the input goes up by 1. For the taxi, m = 2 dollars per kilometre.
  • b is the y-intercept: the starting value, the output when x = 0. For the taxi, b = 3 dollars.

From two points (x₁, y₁) and (x₂, y₂) the slope is m = (y₂ − y₁) / (x₂ − x₁): rise over run.

  • m > 0: the line rises from left to right (an increasing function).
  • m < 0: the line falls (a decreasing function).
  • m = 0: a flat, horizontal line y = b (a constant function).

A vertical line x = a has an undefined slope. It is not a function, because one input has every output.

Whiteboard · watch and try

Graphing a line from its slope and intercept

5 steps
Press Play and the tutor will talk you through it while writing on the board. Pause any time to write on the board yourself.

Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.

Point-slope form

When you know the slope m and one point (x₁, y₁), the quickest way to write the line is point-slope form:

y − y₁ = m(x − x₁)

For a line with slope 4 through (2, −1): y − (−1) = 4(x − 2), so y + 1 = 4x − 8 and y = 4x − 9.

Parallel and perpendicular lines

  • Parallel lines never meet. They have the same slope and different intercepts: y = 3x + 1 and y = 3x − 5.
  • Perpendicular lines meet at a right angle. Their slopes are negative reciprocals: flip the fraction and change the sign. The slopes multiply to −1. A line with slope 2/5 is perpendicular to one with slope −5/2.

Try it · interactive

Graphing calculator

Add a second line with the same slope (parallel) and one with slope −3/2 (perpendicular). Do they look the way you expect?

y1(1)

−0.33

Type with ^ for powers, sqrt( ) for square roots, |x| for absolute value, and pi for π. Multiplication can be left out: 2x, 3(x+1).

−8−6−4−22468−8−6−4−22468

Loading practice…

Loading practice…

Loading practice…

Check your understanding0 of 5 correct

Question 1

1.A gym charges a $50 joining fee and $25 a month. Which function gives the total cost after m months?

Question 2

2.What is the slope of the line through (−2, 7) and (4, −5)?

Question 3

3.Which line is perpendicular to y = −4x + 1?

Question 4

4.What is the slope of the line x = 6?

Question 5

5.Write the line with slope −3 through (1, 4) in slope-intercept form.

Key terms

Say the meaning to yourself, then tap a card to check.

Quiz score: 0 of 5

Practice sets mastered: 0 of 3

Tip: answer every quiz question correctly first.

Based on Algebra and Trigonometry 2e by Jay Abramson and others (OpenStax, Rice University), openstax.org/details/books/algebra-and-trigonometry-2e, licensed under CC BY-NC-SA 4.0. Noviq Academy rewrote and reorganized the material in its own words and added its own examples, whiteboard lessons, tools and quizzes; this adapted course is free and shared under the same license. Not endorsed by OpenStax or Rice University. Read-aloud and the whiteboard voice use your device's built-in voices, so the voice varies by device.