Texas Test Academy

Take learning by the horns.

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

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.

  1. Compute y ÷ x for every row: 5/2, 10/4, 15/6.
    In a proportional relationship every ratio is the same.
  2. All equal 2.5, so k = 2.5.
    The constant of proportionality is the unit rate: 2.5 per 1.
  3. Equation: y = 2.5x.
    Substitute k into y = kx.
  4. When x = 9: y = 2.5 · 9 = 22.5.
    Check: 22.5 ÷ 9 = 2.5.

Strategy: Ratio, Equation, Use

Check your understanding

  1. A table shows (x, y): (2, 5), (4, 10), (6, 15). Which equation matches?

    1. y = 5x
    2. y = 2.5 + x
    3. y = x + 3
    4. y = 2.5x
    Show the answer

    Answer: D. y = 2.5x

    5/2 = 10/4 = 15/6 = 2.5, so y = 2.5x.

  2. Apples cost $3.50 per pound. How much do 6 pounds cost?

    1. $24.50
    2. $18
    3. $9.50
    4. $21
    Show the answer

    Answer: D. $21

    y = 3.5x, and 3.5 · 6 = 21.

  3. Which table shows a proportional relationship y = kx?

    1. x: 1, 2, 3 and y: 2, 4, 8
    2. x: 1, 2, 3 and y: 5, 8, 11
    3. x: 1, 2, 3 and y: 4, 8, 12
    4. 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.

Practice this lesson with interactive questions

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.

  1. Starting amount (paid when x = 0): $25, so b = 25.
    The one-time fee is the y-intercept.
  2. Rate of change: $12 each month, so m = 12.
    The recurring charge is the slope.
  3. Equation: y = 12x + 25.
    Write in the form y = mx + b.
  4. 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

Check your understanding

  1. A table shows x: 0, 1, 2, 3 and y: 4, 7, 10, 13. Which equation matches?

    1. y = x + 4
    2. y = 3x
    3. y = 4x + 3
    4. y = 3x + 4
    Show the answer

    Answer: D. y = 3x + 4

    b = 4 and y increases by 3 each step, so y = 3x + 4.

  2. A gym charges $25 to join plus $12 per month. What is the total cost after 6 months?

    1. $37
    2. $108
    3. $72
    4. $97
    Show the answer

    Answer: D. $97

    y = 12(6) + 25 = 72 + 25 = 97.

  3. The graph of a line passes through (0, −2) and (3, 4). Which equation is the line?

    1. y = 2x + 2
    2. y = 2x − 2
    3. y = −2x + 4
    4. y = 3x − 2
    Show the answer

    Answer: B. y = 2x − 2

    b = −2, m = 6/3 = 2, so y = 2x − 2.

Practice this lesson with interactive questions

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.

  1. Table A ratios: 6/2 = 3, 12/4 = 3, 15/5 = 3.
    A constant ratio in every row means proportional.
  2. Table A is proportional: y = 3x.
    The constant ratio is k.
  3. Table B ratios: 5/1 = 5, 7/2 = 3.5, 9/3 = 3.
    The ratios change, so it is not proportional.
  4. 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

Check your understanding

  1. Which equation does NOT represent a proportional relationship?

    1. y = 7x
    2. y = 0.5x
    3. y = 4x
    4. 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.

  2. A table shows x: 2, 4, 6 and y: 5, 9, 13. Which description is correct?

    1. Proportional; y = 2x + 1
    2. Proportional; y = 2.5x
    3. Non-proportional; y = 2x + 1
    4. 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 ✓.

  3. Which situation is proportional?

    1. A taxi charges a $3 fee plus $2 per mile
    2. Notebooks cost $2.50 each; total cost for n notebooks
    3. A plant is 4 cm tall and grows 1.5 cm per week
    4. 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.

Practice this lesson with interactive questions

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.

  1. Write y = kx and substitute the known pair: 12 = k(4).
    Direct variation means y = kx.
  2. k = 12 ÷ 4 = 3.
    Divide by 4 to isolate k.
  3. Equation: y = 3x.
    Put k back into y = kx.
  4. x = 10: y = 3(10) = 30.
    Check with ratios: 12/4 = 30/10 = 3 ✓.

Strategy: Find k, Write, Use

Check your understanding

  1. y varies directly with x. When x = 5, y = 20. What is the constant of variation k?

    1. 100
    2. 0.25
    3. 15
    4. 4
    Show the answer

    Answer: D. 4

    20 = k(5), so k = 20 ÷ 5 = 4.

  2. y varies directly with x. When x = 6, y = 21. What is y when x = 10?

    1. 31
    2. 25
    3. 35
    4. 36.5
    Show the answer

    Answer: C. 35

    k = 21/6 = 3.5, so y = 3.5(10) = 35.

  3. The cost of fabric varies directly with its length. 3 yards cost $13.50. How much do 8 yards cost?

    1. $21
    2. $36
    3. $40.50
    4. $24
    Show the answer

    Answer: B. $36

    k = 13.50 ÷ 3 = 4.50 and 4.50 × 8 = 36.

Practice this lesson with interactive questions

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.

  1. 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.
  2. Input 2 has two outputs: 5 and 9.
    In the mapping diagram two arrows would leave 2.
  3. So it is NOT a function.
    A function needs exactly one output for every input.
  4. Remove (2, 9): {(1, 3), (2, 5), (3, 7)} is a function.
    Check: each input now has one arrow.

Strategy: Group by Input

Check your understanding

  1. Which set of ordered pairs is a function?

    1. {(2, 5), (3, 5), (2, 6)}
    2. {(0, 1), (0, 2), (0, 3)}
    3. {(1, 2), (1, 3), (2, 4)}
    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.

  2. A table shows x: 1, 2, 3, 2 and y: 4, 5, 6, 7. Is y a function of x?

    1. No; the x-values are not in order
    2. Yes; every output is different
    3. No; the input 2 has two outputs, 5 and 7
    4. 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.

  3. Which statement about {(1, 5), (2, 5), (3, 5)} is true?

    1. It is a function; each input has exactly one output, even though the outputs repeat
    2. It is a function only if the outputs are different
    3. It is not a function because the inputs are different
    4. 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.

Practice this lesson with interactive questions

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.

  1. y changes 6 when x changes 2: m = 6 ÷ 2 = 3.
    Use any two rows: (11 − 5) ÷ (2 − 0).
  2. When x = 0, y = 5, so b = 5.
    The row where x = 0 gives the initial value directly.
  3. Equation: y = 3x + 5.
    Substitute m and b into y = mx + b.
  4. Check (4, 17): 3(4) + 5 = 17 ✓.
    Always test a row you did not use.

Strategy: Rate, Start, Check

Check your understanding

  1. A moving company charges $75 plus $40 per hour. Which equation gives the total cost y for x hours?

    1. y = 40x − 75
    2. y = 115x
    3. y = 75x + 40
    4. 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).

  2. A table shows x: 1, 2, 3, 4 and y: 7, 10, 13, 16. Which equation fits?

    1. y = 3x + 7
    2. y = 3x + 4
    3. y = 7x
    4. 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.

  3. A line passes through (0, 6) and (3, 0). What is its equation?

    1. y = −2x + 6
    2. y = −3x + 6
    3. y = −2x − 6
    4. y = 2x + 6
    Show the answer

    Answer: A. y = −2x + 6

    b = 6 and m = −6/3 = −2.

Practice this lesson with interactive questions