Linear Relationship Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Linear Relationship.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

A relationship between two variables where the rate of change is constant, producing a straight line when graphed. Expressed as y=mx+by = mx + b where mm is the slope.

Add the same amount each step. Like paying \$10/monthβ€”increase is constant.

Read the full concept explanation β†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: A linear relationship adds the same amount each step, drawing a straight line y=mx+by=mx+b.

Common stuck point: The procedure for linear relationship is the easy part; the trap is assuming any increasing pattern is linear. Asking "Does each equal step in xx add the same fixed amount to yy?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Does each equal step in xx add the same fixed amount to yy?

Worked Examples

Example 1

easy
A taxi charges a $3 base fee plus $2 per mile. Write the equation for total cost CC in terms of miles mm. Identify slope and y-intercept.

Answer

C=2m+3C = 2m + 3; slope = 2, y-intercept = 3

First step

1
Base fee (y-intercept): b=3b = 3.

Full solution

  1. 2
    Cost per mile (slope): mrate=2m_{\text{rate}} = 2.
  2. 3
    Equation: C=2m+3C = 2m + 3.
  3. 4
    This is in the form y=mx+by = mx + b with slope 2 and y-intercept 3.
A linear relationship y=mx+by = mx + b has constant slope mm (rate of change) and y-intercept bb (starting value).

Example 2

medium
Two points on a line are (1,5)(1, 5) and (3,11)(3, 11). Find the equation of the line in y=mx+by = mx + b form.

Example 3

easy
A phone plan costs $25/month plus $0.10 per minute. Write the linear cost equation for mm minutes used in a month.

Example 4

medium
A gym charges a \$50 sign-up fee plus \$30 per month. After how many months will the total cost be \$260?

Example 5

medium
A car's gas tank holds 1515 gallons. The car uses 33 gallons per hour of driving. Write a linear equation for gallons left GG after tt hours.

Example 6

hard
A line has slope 23\tfrac{2}{3} and passes through (βˆ’3,βˆ’1)(-3, -1). Find the equation and the xx-intercept.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
For the equation y=4xβˆ’1y = 4x - 1, find yy when x=3x = 3 and x=0x = 0.

Example 2

medium
Points (0,βˆ’2)(0, -2) and (4,6)(4, 6) lie on a line. Find the equation in y=mx+by = mx + b form.

Example 3

easy
Is y=2x+3y = 2x + 3 a linear relationship?

Example 4

easy
In y=4xβˆ’1y = 4x - 1, what is the slope?

Example 5

easy
In y=4xβˆ’1y = 4x - 1, what is the yy-intercept?

Example 6

easy
A table adds 55 to yy each time xx rises by 11. Is it linear?

Example 7

easy
Find yy when x=2x = 2 for y=3x+1y = 3x + 1.

Example 8

easy
Does the line y=2x+3y = 2x + 3 pass through the origin?

Example 9

easy
What is the slope of a line through (0,2)(0,2) and (1,5)(1,5)?

Example 10

easy
Is y=7y = 7 (a horizontal line) linear?

Example 11

medium
A table: (x,y)=(0,1),(1,4),(2,7),(3,10)(x,y) = (0,1),(1,4),(2,7),(3,10). Is it linear? Give the equation.

Example 12

medium
Find the equation of the line through (1,5)(1,5) and (3,11)(3,11).

Example 13

medium
A taxi charges $3 base plus $2 per mile. Write the linear equation and find the cost for 55 miles.

Example 14

medium
Is the table (x,y)=(1,2),(2,4),(3,8)(x,y)=(1,2),(2,4),(3,8) linear?

Example 15

medium
A line has slope 22 and passes through (4,10)(4, 10). Find bb.

Example 16

medium
For y=βˆ’2x+6y = -2x + 6, where does the line cross the xx-axis?

Example 17

medium
Two siblings save money: A starts at \$10 and adds \$5/week; B starts at \$0 and adds \$5/week. Are both linear? Which is proportional?

Example 18

challenge
A line passes through (2,7)(2,7) and (5,16)(5,16). Find yy when x=8x = 8 without graphing.

Example 19

challenge
Show that a relationship with constant first differences in yy (for equal xx steps) must satisfy y=mx+by = mx + b.

Example 20

challenge
A line and a proportional relation both pass through (4,12)(4, 12). The line also passes through (0,4)(0, 4). Find both equations.

Example 21

medium
A candle burns down linearly: 2020 cm tall at 00 hours, 1414 cm at 33 hours. Find the burn rate and the equation.

Example 22

medium
Find xx when y=17y = 17 for the line y=4x+1y = 4x + 1.

Example 23

easy
For y=5xβˆ’7y = 5x - 7, what is the slope?

Example 24

easy
For y=βˆ’3x+8y = -3x + 8, what is the yy-intercept?

Example 25

easy
Find yy when x=5x = 5 for y=βˆ’2x+11y = -2x + 11.

Example 26

easy
A pool is filled at a constant rate. After 22 hours it has 4040 gallons; after 55 hours it has 100100 gallons. What is the rate (gallons per hour)?

Example 27

medium
Two points on a line are (2,9)(2, 9) and (6,21)(6, 21). Find the slope.

Example 28

medium
A line passes through (0,βˆ’4)(0, -4) and (3,5)(3, 5). Write its equation in y=mx+by = mx + b form.

Example 29

medium
A line has slope βˆ’2-2 and passes through (3,4)(3, 4). Find its yy-intercept bb.

Example 30

medium
For the equation 2x+3y=122x + 3y = 12, find the slope and yy-intercept.

Example 31

medium
A linear table has (x,y)=(0,7),(1,4),(2,1),(3,βˆ’2)(x,y) = (0, 7), (1, 4), (2, 1), (3, -2). Write the equation.

Example 32

medium
Find xx when y=βˆ’5y = -5 for the line y=2xβˆ’11y = 2x - 11.

Example 33

medium
A line passes through (βˆ’2,1)(-2, 1) with slope 12\tfrac{1}{2}. Find its equation in y=mx+by = mx + b form.

Example 34

medium
A line has xx-intercept 44 and yy-intercept βˆ’6-6. Find the equation in y=mx+by = mx + b form.

Example 35

medium
A table shows hours hh and pay PP: (2,30),(5,75),(8,120)(2, 30), (5, 75), (8, 120). Write the linear pay equation.

Example 36

hard
A line passes through (1,4)(1, 4) and is parallel to y=βˆ’3x+7y = -3x + 7. Find its equation.

Example 37

hard
A submarine descends linearly. At t=0t = 0 min it is at depth 4040 m. At t=6t = 6 min it is at depth 130130 m. Find the depth at t=10t = 10 min.

Example 38

hard
Lines AA and BB both pass through (4,10)(4, 10). Line AA also passes through (0,2)(0, 2) and is linear but not proportional. Line BB is proportional. Find both equations.

Example 39

hard
A line passes through (βˆ’2,5)(-2, 5) and (4,βˆ’7)(4, -7). Find the value of yy when x=0x = 0 (the yy-intercept).

Example 40

challenge
A linear function ff satisfies f(3)=11f(3) = 11 and f(7)=23f(7) = 23. Find f(100)f(100).

Background Knowledge

These ideas may be useful before you work through the harder examples.

rate of change