Grade 8 Mathematics Unit 5: Linear Functions
This Grade 8 Mathematics unit, Linear Functions, has 6 lessons that cover TEKS 8.5A, 8.5B, 8.5F, 8.5H, 8.5E, 8.5G, 8.5I. Each lesson below gives the goal, key vocabulary, a worked example and practice questions with answers you can check.
Practice this unit with interactive questions
STAAR connection: Grade 8 Mathematics is a subject tested by the State of Texas Assessments of Academic Readiness (STAAR). Texas lawmakers have voted to replace STAAR with shorter tests beginning in the 2027–28 school year; the tests are still built on the TEKS, so practicing the TEKS stays useful.
TEKS covered in this unit
- 8.5A represent linear proportional situations with tables, graphs, and equations in the form of y = kx
- 8.5B represent linear non-proportional situations with tables, graphs, and equations in the form of y = mx + b, where b ≠ 0
- 8.5F distinguish between proportional and non-proportional situations using tables, graphs, and equations in the form y = kx or y = mx + b, where b ≠ 0
- 8.5H identify examples of proportional and non-proportional functions that arise from mathematical and real-world problems
- 8.5E solve problems involving direct variation
- 8.5G identify functions using sets of ordered pairs, tables, mappings, and graphs
- 8.5I write an equation in the form y = mx + b to model a linear relationship between two quantities using verbal, numerical, tabular, and graphical representations
Lesson 1: Proportional situations: y = kx
TEKS 8.5A
What you will learn
I can represent a linear proportional situation with a table, a graph and an equation in the form y = kx.
I can describe a proportional relationship using constant of proportionality, unit rate and origin.
Key vocabulary
- proportional relationship
- A relationship where y is always the same multiple of x. Its graph is a straight line through the origin.
Examples: Cost of apples at $2 per pound; y = 2.5x - constant of proportionality (k)
- The constant ratio y ÷ x. It is the unit rate and the slope of the line.
Examples: $3.50 per pound: k = 3.5; Table (2,5), (4,10): k = 2.5 - origin
- The point (0, 0), where the x-axis and y-axis meet.
Examples: (0, 0); Start point of y = 4x
Worked example
A table shows (x, y): (2, 5), (4, 10), (6, 15). Write an equation y = kx and find y when x = 9.
- Compute y ÷ x for every row: 5/2, 10/4, 15/6.
In a proportional relationship every ratio is the same. - All equal 2.5, so k = 2.5.
The constant of proportionality is the unit rate: 2.5 per 1. - Equation: y = 2.5x.
Substitute k into y = kx. - When x = 9: y = 2.5 · 9 = 22.5.
Check: 22.5 ÷ 9 = 2.5.
Strategy: Ratio, Equation, Use
- Ratio: divide y by x in every row.
- Equation: write y = kx.
- Use: substitute the new x and check by dividing back.
Check your understanding
A table shows (x, y): (2, 5), (4, 10), (6, 15). Which equation matches?
- y = 5x
- y = 2.5 + x
- y = x + 3
- y = 2.5x
Show the answer
Answer: D. y = 2.5x
5/2 = 10/4 = 15/6 = 2.5, so y = 2.5x.
Apples cost $3.50 per pound. How much do 6 pounds cost?
- $24.50
- $18
- $9.50
- $21
Show the answer
Answer: D. $21
y = 3.5x, and 3.5 · 6 = 21.
Which table shows a proportional relationship y = kx?
- x: 1, 2, 3 and y: 2, 4, 8
- x: 1, 2, 3 and y: 5, 8, 11
- x: 1, 2, 3 and y: 4, 8, 12
- x: 0, 1, 2 and y: 3, 5, 7
Show the answer
Answer: C. x: 1, 2, 3 and y: 4, 8, 12
The first table has y ÷ x = 4 every time. The others change or have a start value of 3.
Lesson 2: Non-proportional situations: y = mx + b
TEKS 8.5B
What you will learn
I can represent a linear non-proportional situation with tables, graphs and equations in the form y = mx + b, where b ≠ 0.
I can explain what slope and y-intercept mean in a real situation and why it is non-proportional.
Key vocabulary
- y-intercept (b)
- The y-value where the line crosses the y-axis, which is the value when x = 0. It is the starting amount.
Examples: $25 sign-up fee: b = 25; y = 3x + 4: b = 4 - slope (m)
- The rate of change: how much y changes for each 1 unit increase in x.
Examples: $12 per month: m = 12; y = −2x + 9: m = −2 - non-proportional relationship
- A linear relationship that does not pass through the origin: y = mx + b with b ≠ 0.
Examples: Plumber: $40 plus $30 per hour; y = 3x + 4
Worked example
A gym charges a $25 sign-up fee plus $12 per month. Write an equation for the total cost y after x months and find the cost after 6 months.
- Starting amount (paid when x = 0): $25, so b = 25.
The one-time fee is the y-intercept. - Rate of change: $12 each month, so m = 12.
The recurring charge is the slope. - Equation: y = 12x + 25.
Write in the form y = mx + b. - x = 6: y = 12(6) + 25 = 72 + 25 = 97. The cost is $97.
Check with a table: 25, 37, 49, 61, 73, 85, 97 (+12 each month).
Strategy: Start, Rate, Equation
- Start: what is there when x = 0? That is b.
- Rate: what changes each time? That is m.
- Equation: write y = mx + b and check with a table.
Check your understanding
A table shows x: 0, 1, 2, 3 and y: 4, 7, 10, 13. Which equation matches?
- y = x + 4
- y = 3x
- y = 4x + 3
- y = 3x + 4
Show the answer
Answer: D. y = 3x + 4
b = 4 and y increases by 3 each step, so y = 3x + 4.
A gym charges $25 to join plus $12 per month. What is the total cost after 6 months?
- $37
- $108
- $72
- $97
Show the answer
Answer: D. $97
y = 12(6) + 25 = 72 + 25 = 97.
The graph of a line passes through (0, −2) and (3, 4). Which equation is the line?
- y = 2x + 2
- y = 2x − 2
- y = −2x + 4
- y = 3x − 2
Show the answer
Answer: B. y = 2x − 2
b = −2, m = 6/3 = 2, so y = 2x − 2.
Lesson 3: Distinguishing and giving examples of proportional and non-proportional functions
TEKS 8.5F 8.5H
What you will learn
I can tell proportional and non-proportional situations apart using tables, graphs and equations (y = kx or y = mx + b, b ≠ 0), and I can give real-world examples of each.
I can justify my decision using constant ratio, initial value and origin.
Key vocabulary
- constant ratio (y ÷ x)
- In a proportional relationship, dividing y by x gives the same number for every pair.
Examples: (2, 6), (4, 12), (5, 15): ratio 3 each time; y = 0.8x - initial value
- The y-value when x = 0, which is the starting amount. It is b in y = mx + b.
Examples: $20 sign-up fee: b = 20; A candle that starts 12 in. tall - linear function
- A relationship whose graph is a straight line; it has a constant rate of change.
Examples: y = 4x; y = 3x − 1
Worked example
Decide whether each table is proportional. Table A: (2, 6), (4, 12), (5, 15). Table B: (1, 5), (2, 7), (3, 9). Write an equation for each.
- Table A ratios: 6/2 = 3, 12/4 = 3, 15/5 = 3.
A constant ratio in every row means proportional. - Table A is proportional: y = 3x.
The constant ratio is k. - Table B ratios: 5/1 = 5, 7/2 = 3.5, 9/3 = 3.
The ratios change, so it is not proportional. - Table B rises 2 each time, so m = 2. Working back to x = 0 gives b = 3: y = 2x + 3.
A non-zero initial value means the graph misses the origin. Check: 2(2) + 3 = 7 ✓.
Strategy: Ratio Test, Origin Test
- Ratio test: is y ÷ x the same in every row?
- Origin test: does the graph pass through (0, 0), or is b = 0?
- Say it with the sentence frame and cite your evidence.
Check your understanding
Which equation does NOT represent a proportional relationship?
- y = 7x
- y = 0.5x
- y = 4x
- y = 3x − 1
Show the answer
Answer: D. y = 3x − 1
y = 4x, y = 0.5x and y = 7x are y = kx. y = 3x − 1 has b = −1, so its line misses the origin.
A table shows x: 2, 4, 6 and y: 5, 9, 13. Which description is correct?
- Proportional; y = 2x + 1
- Proportional; y = 2.5x
- Non-proportional; y = 2x + 1
- Non-proportional; y = 2.5x
Show the answer
Answer: C. Non-proportional; y = 2x + 1
5/2 = 2.5 but 9/4 = 2.25, so it is not proportional. y goes up 4 when x goes up 2, so m = 2, and b = 1: 2(2) + 1 = 5 ✓.
Which situation is proportional?
- A taxi charges a $3 fee plus $2 per mile
- Notebooks cost $2.50 each; total cost for n notebooks
- A plant is 4 cm tall and grows 1.5 cm per week
- A gym charges $20 to join plus $10 per month
Show the answer
Answer: B. Notebooks cost $2.50 each; total cost for n notebooks
Zero notebooks cost $0, so the graph passes through the origin: y = 2.5x. The others all have a starting amount.
Lesson 4: Direct variation
TEKS 8.5E
What you will learn
I can solve problems involving direct variation by finding the constant of variation k in y = kx.
I can explain direct variation using varies directly, constant of variation and equivalent ratios.
Key vocabulary
- direct variation
- A relationship in which y = kx. When x grows by a factor, y grows by the same factor.
Examples: Distance = speed × time at a steady rate; Cost of fabric by the yard - constant of variation (k)
- The fixed number you multiply x by to get y. It equals y ÷ x.
Examples: y = 12 when x = 4: k = 3; $4.50 per yard: k = 4.5 - equivalent ratios
- Ratios that name the same relationship, like 12/4 and 30/10.
Examples: 12/4 = 30/10; 3/13.50 = 8/36
Worked example
y varies directly with x. When x = 4, y = 12. Find y when x = 10.
- Write y = kx and substitute the known pair: 12 = k(4).
Direct variation means y = kx. - k = 12 ÷ 4 = 3.
Divide by 4 to isolate k. - Equation: y = 3x.
Put k back into y = kx. - x = 10: y = 3(10) = 30.
Check with ratios: 12/4 = 30/10 = 3 ✓.
Strategy: Find k, Write, Use
- Find k using the one complete pair.
- Write y = kx.
- Use it for the new value and check the ratio.
Check your understanding
y varies directly with x. When x = 5, y = 20. What is the constant of variation k?
- 100
- 0.25
- 15
- 4
Show the answer
Answer: D. 4
20 = k(5), so k = 20 ÷ 5 = 4.
y varies directly with x. When x = 6, y = 21. What is y when x = 10?
- 31
- 25
- 35
- 36.5
Show the answer
Answer: C. 35
k = 21/6 = 3.5, so y = 3.5(10) = 35.
The cost of fabric varies directly with its length. 3 yards cost $13.50. How much do 8 yards cost?
- $21
- $36
- $40.50
- $24
Show the answer
Answer: B. $36
k = 13.50 ÷ 3 = 4.50 and 4.50 × 8 = 36.
Lesson 5: Identifying functions
TEKS 8.5G
What you will learn
I can identify functions using sets of ordered pairs, tables, mappings and graphs.
I can explain why a relationship is or is not a function using input, output and exactly one.
Key vocabulary
- function
- A relationship where each input has exactly one output.
Examples: {(1, 3), (2, 5), (3, 7)}; {(1, 5), (2, 5), (3, 5)} - input and output
- The input is the x-value you start with; the output is the y-value the rule gives back.
Examples: Hours worked (input), pay (output); (2, 5): input 2, output 5 - mapping diagram
- A picture with inputs on one side, outputs on the other, and arrows showing which input goes to which output.
Examples: 1→3, 2→5, 3→7; 1→5, 2→5
Worked example
Is {(1, 3), (2, 5), (3, 7), (2, 9)} a function? Show it with a mapping diagram.
- List each input with its outputs: 1→3, 2→5 and 9, 3→7.
Group by x-value. Repeated inputs are the only possible problem. - Input 2 has two outputs: 5 and 9.
In the mapping diagram two arrows would leave 2. - So it is NOT a function.
A function needs exactly one output for every input. - Remove (2, 9): {(1, 3), (2, 5), (3, 7)} is a function.
Check: each input now has one arrow.
Strategy: Group by Input
- Group the pairs by x-value.
- Look for an x that appears with two different y-values.
- Conclude with the sentence frame.
Check your understanding
Which set of ordered pairs is a function?
- {(2, 5), (3, 5), (2, 6)}
- {(0, 1), (0, 2), (0, 3)}
- {(1, 2), (1, 3), (2, 4)}
- {(1, 2), (2, 4), (3, 6)}
Show the answer
Answer: D. {(1, 2), (2, 4), (3, 6)}
Only the first has no repeated input. The others have 1→2 and 3, 0→1, 2 and 3, or 2→5 and 6.
A table shows x: 1, 2, 3, 2 and y: 4, 5, 6, 7. Is y a function of x?
- No; the x-values are not in order
- Yes; every output is different
- No; the input 2 has two outputs, 5 and 7
- Yes; there are four pairs
Show the answer
Answer: C. No; the input 2 has two outputs, 5 and 7
x = 2 appears twice with outputs 5 and 7, so it is not a function. Order and the number of pairs do not matter.
Which statement about {(1, 5), (2, 5), (3, 5)} is true?
- It is a function; each input has exactly one output, even though the outputs repeat
- It is a function only if the outputs are different
- It is not a function because the inputs are different
- It is not a function because the output 5 repeats
Show the answer
Answer: A. It is a function; each input has exactly one output, even though the outputs repeat
The inputs 1, 2, 3 are all different, so each has one output. Different inputs may share an output.
Lesson 6: Writing y = mx + b to model a linear relationship
TEKS 8.5I
What you will learn
I can write an equation y = mx + b to model a linear relationship between two quantities from a verbal description, a table, a graph or ordered pairs.
I can describe how I found slope and initial value from any representation.
Key vocabulary
- slope-intercept form
- The equation y = mx + b, where m is the slope and b is the y-intercept.
Examples: y = 3x + 4; y = −2x + 6 - rate of change
- How much y changes for each 1 unit change in x. It is the slope m.
Examples: $40 per hour; A candle burns −0.5 in. per hour - initial value
- The value of y when x = 0. It is the y-intercept b.
Examples: A $75 fee before any hours; A 12 in. candle before burning
Worked example
A table shows x: 0, 2, 4, 6 and y: 5, 11, 17, 23. Write an equation y = mx + b.
- y changes 6 when x changes 2: m = 6 ÷ 2 = 3.
Use any two rows: (11 − 5) ÷ (2 − 0). - When x = 0, y = 5, so b = 5.
The row where x = 0 gives the initial value directly. - Equation: y = 3x + 5.
Substitute m and b into y = mx + b. - Check (4, 17): 3(4) + 5 = 17 ✓.
Always test a row you did not use.
Strategy: Rate, Start, Check
- Rate: find m from the change in y over the change in x.
- Start: find b (the y-value at x = 0, or solve for it).
- Check with a point you did not use.
Check your understanding
A moving company charges $75 plus $40 per hour. Which equation gives the total cost y for x hours?
- y = 40x − 75
- y = 115x
- y = 75x + 40
- y = 40x + 75
Show the answer
Answer: D. y = 40x + 75
The per-hour charge is the slope (40) and the fee is the initial value (75).
A table shows x: 1, 2, 3, 4 and y: 7, 10, 13, 16. Which equation fits?
- y = 3x + 7
- y = 3x + 4
- y = 7x
- y = 4x + 3
Show the answer
Answer: B. y = 3x + 4
m = 3. From 7 = 3(1) + b, b = 4. Check (4, 16): 3(4) + 4 = 16.
A line passes through (0, 6) and (3, 0). What is its equation?
- y = −2x + 6
- y = −3x + 6
- y = −2x − 6
- y = 2x + 6
Show the answer
Answer: A. y = −2x + 6
b = 6 and m = −6/3 = −2.