Texas Test Academy

Take learning by the horns.

Algebra I Unit 2: Writing Linear Equations & Functions

This Algebra I unit, Writing Linear Equations & Functions, has 7 lessons that cover TEKS A.2A, A.2B, A.2C, A.2D, A.2E, A.2F, A.2G, A.2H and more. 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: Algebra I 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: Domain and range of linear functions

TEKS A.2A

What you will learn

I can find the domain and range of a linear function, choose reasonable values for real-world situations (discrete or continuous), and write them with inequalities.

I can explain domain, range and discrete / continuous using inequality notation.

Key vocabulary

domain
The set of all possible input values (x-values) of a function.
Examples: 0 ≤ x ≤ 6 tickets; All real numbers for y = 2x − 1
range
The set of all possible output values (y-values) of a function.
Examples: 4 ≤ y ≤ 19 dollars; {5, 8, 11, 14, 17}
discrete and continuous data
Discrete data are separate, countable values (points). Continuous data can take every value in an interval (a connected line).
Examples: Discrete: number of tickets; Continuous: gallons of water

Worked example

A theater charges a $4 booking fee plus $2.50 per ticket, and you can buy at most 6 tickets. Write the function, then give the domain and range.

  1. Let x = tickets and y = total cost: y = 2.5x + 4.
    Rate $2.50 per ticket and start $4.
  2. Domain: you cannot buy part of a ticket, so x is a whole number with 0 ≤ x ≤ 6.
    This is discrete data.
  3. Range: substitute the smallest and largest x. y(0) = 4 and y(6) = 19.
    A line increases, so outputs run from the first to the last.
  4. Range: 4 ≤ y ≤ 19, with only the values 4, 6.5, 9, 11.5, 14, 16.5, 19.
    Only 7 outputs are possible because the data are discrete.

Strategy: Limit, Plug, Write

Check your understanding

  1. A pizza order costs C = 3n + 5, where n is the number of pizzas and 0 to 4 pizzas can be ordered. What is the domain?

    1. n ≥ 0
    2. 5 ≤ n ≤ 17
    3. all real numbers
    4. n = 0, 1, 2, 3, 4 (0 ≤ n ≤ 4, whole numbers)
    Show the answer

    Answer: D. n = 0, 1, 2, 3, 4 (0 ≤ n ≤ 4, whole numbers)

    You cannot order part of a pizza, so the inputs are the whole numbers 0 through 4.

  2. For C = 3n + 5 with n = 0, 1, 2, 3, 4, what is the range?

    1. C ≥ 5
    2. 0 ≤ C ≤ 17 (every value)
    3. {0, 1, 2, 3, 4}
    4. {5, 8, 11, 14, 17}
    Show the answer

    Answer: D. {5, 8, 11, 14, 17}

    3(0)+5 = 5, 8, 11, 14, 17. Only these five outputs are possible.

  3. A tank holds 12 gallons and the fuel left is f = 12 − 0.04m after driving m miles, until the tank is empty. Which is the correct domain and range (continuous)?

    1. Domain m ≥ 0; range f ≥ 0
    2. Domain 0 ≤ m ≤ 12; range 0 ≤ f ≤ 300
    3. Domain 0 ≤ m ≤ 300; range 0 ≤ f ≤ 12
    4. Domain all real numbers; range all real numbers
    Show the answer

    Answer: C. Domain 0 ≤ m ≤ 300; range 0 ≤ f ≤ 12

    f = 0 when m = 12 ÷ 0.04 = 300. So 0 ≤ m ≤ 300 and the fuel runs from 12 down to 0.

Practice this lesson with interactive questions

Lesson 2: Writing equations: slope-intercept, standard and point-slope

TEKS A.2B

What you will learn

I can write the equation of a line in slope-intercept form, point-slope form and standard form, given a point and the slope or given two points.

I can explain the parts of y = mx + b, y − y₁ = m(x − x₁) and Ax + By = C.

Key vocabulary

slope-intercept form
y = mx + b, where m is the slope and b is the y-intercept.
Examples: y = 3x − 2; y = −½x + 4
point-slope form
y − y₁ = m(x − x₁), written from the slope m and any point (x₁, y₁) on the line.
Examples: y − 5 = 2(x − 1); y + 2 = −3(x − 4)
standard form
Ax + By = C, where A, B and C are integers and A is not negative.
Examples: 2x + 3y = 12; x − y = 5

Worked example

Write the equation of the line through (1, 5) and (3, 11) in point-slope, slope-intercept and standard forms.

  1. Slope: m = (11 − 5) ÷ (3 − 1) = 6 ÷ 2 = 3.
    Rise over run between the two points.
  2. Point-slope with (1, 5): y − 5 = 3(x − 1).
    Substitute m, x₁ and y₁.
  3. Distribute and solve for y: y − 5 = 3x − 3, so y = 3x + 2.
    The y-intercept is 2.
  4. Standard form: subtract 3x from both sides: −3x + y = 2, then multiply by −1: 3x − y = −2.
    Keep A positive. Check (3, 11): 9 − 11 = −2 ✓.

Strategy: Slope, Point, Convert

Check your understanding

  1. Which equation is in point-slope form for the line with slope 4 through (2, −3)?

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

    Answer: D. y + 3 = 4(x − 2)

    With y₁ = −3, y − (−3) = y + 3, and x − 2. So y + 3 = 4(x − 2).

  2. Write y = 3x − 5 in standard form (Ax + By = C with A ≥ 0).

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

    Answer: D. 3x − y = 5

    Subtract 3x: −3x + y = −5. Multiply by −1: 3x − y = 5.

  3. A line passes through (0, 4) with slope −2. What is its equation in slope-intercept form?

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

    Answer: B. y = −2x + 4

    b = 4 and m = −2, so y = −2x + 4.

Practice this lesson with interactive questions

Lesson 3: Equations from tables, graphs and words

TEKS A.2C

What you will learn

I can write a linear equation from a table of values, a graph, or a verbal description.

I can describe how to find the rate of change and the initial value in each representation.

Key vocabulary

rate of change
How much y changes for each 1-unit change in x; in a line it is the slope m.
Examples: $2.50 per ticket; A table where y goes up 3 each time x goes up 1
initial value
The value of y when x = 0, the y-intercept b.
Examples: A $4 booking fee; A plant 10 cm tall at the start
linear function
A function whose graph is a line; it has a constant rate of change.
Examples: y = 2x + 1; x: 0, 1, 2 and y: 4, 7, 10

Worked example

A table shows x: 0, 1, 2, 3 and y: 5, 8, 11, 14. A gym charges a joining fee plus a monthly fee. Write the equation.

  1. y increases by 3 each time x increases by 1, so m = 3.
    Constant steps means linear.
  2. When x = 0, y = 5, so b = 5.
    The initial value is in the table.
  3. Write y = 3x + 5.
    Slope-intercept form.
  4. Check x = 3: 3(3) + 5 = 14 ✓.
    Always test a different row.

Strategy: Rate, Start, Write, Check

Check your understanding

  1. A table shows x: 0, 1, 2, 3 and y: 7, 10, 13, 16. What is the equation?

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

    Answer: D. y = 3x + 7

    y rises 3 per 1 in x and y(0) = 7, so y = 3x + 7.

  2. A line crosses the y-axis at (0, −2) and passes through (3, 4). What is its equation?

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

    Answer: C. y = 2x − 2

    b = −2 and m = (4 − (−2)) ÷ 3 = 2. So y = 2x − 2.

  3. A plumber charges $40 to come to the house plus $55 per hour. Which equation gives the total cost y for x hours?

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

    Answer: B. y = 55x + 40

    The per-hour charge is the slope (55) and the one-time fee is the y-intercept (40).

Practice this lesson with interactive questions

Lesson 4: Direct variation

TEKS A.2D

What you will learn

I can write and solve equations involving direct variation, y = kx.

I can explain varies directly and the constant of variation k.

Key vocabulary

direct variation
A relationship y = kx in which y changes at a constant multiple of x; the graph is a line through the origin.
Examples: y = 4x; Wages: $15 per hour
constant of variation
The constant k in y = kx, equal to y ÷ x and to the slope.
Examples: k = 15 in y = 15x; k = ½ in y = ½x
proportional relationship
Two quantities whose ratio y ÷ x is always the same.
Examples: Gallons and cost at a fixed price; Distance at constant speed

Worked example

y varies directly with x and y = 24 when x = 6. Write the equation, then find y when x = 11.

  1. k = y ÷ x = 24 ÷ 6 = 4.
    The constant of variation.
  2. Equation: y = 4x.
    Substitute k into y = kx.
  3. Find y when x = 11: y = 4(11) = 44.
    Substitute the new x.
  4. Check by proportion: 24/6 = 44/11 = 4 ✓.
    Both ratios must equal k.

Strategy: k, Equation, Solve

Check your understanding

  1. y varies directly with x and y = 35 when x = 7. What is the constant of variation?

    1. 0.2
    2. 245
    3. 28
    4. 5
    Show the answer

    Answer: D. 5

    k = 35 ÷ 7 = 5, so y = 5x.

  2. If y varies directly with x and y = 18 when x = 3, what is y when x = 8?

    1. 24
    2. 54
    3. 48
    4. 26
    Show the answer

    Answer: C. 48

    k = 18 ÷ 3 = 6, so y = 6(8) = 48.

  3. Which equation represents direct variation?

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

    Answer: B. y = −2.5x

    Only y = −2.5x has the form y = kx (k = −2.5).

Practice this lesson with interactive questions

Lesson 5: Parallel, perpendicular, horizontal and vertical lines

TEKS A.2E A.2F A.2G

What you will learn

I can write the equation of a line through a given point that is parallel or perpendicular to a given line, and write equations of horizontal and vertical lines (slope 0 or undefined).

I can use parallel, perpendicular, negative reciprocal and undefined slope to justify an equation.

Key vocabulary

parallel lines
Lines in the same plane that never meet; they have the same slope and different y-intercepts.
Examples: y = 2x + 1 and y = 2x − 5; x = 1 and x = 4
perpendicular lines
Lines that meet at a right angle; their slopes are negative reciprocals (product −1).
Examples: y = 2x and y = −½x; y = 3x and y = −⅓x
horizontal and vertical lines
A horizontal line y = c has slope 0; a vertical line x = c has an undefined slope.
Examples: y = 4 (slope 0); x = −2 (slope undefined)

Worked example

Write the equation of the line through (4, 1) that is (a) parallel and (b) perpendicular to y = 2x + 3.

  1. Given slope m = 2.
    Read it from slope-intercept form.
  2. (a) Parallel: same slope 2. y − 1 = 2(x − 4), so y = 2x − 7.
    Use point-slope with (4, 1).
  3. (b) Perpendicular: negative reciprocal of 2 is −½. y − 1 = −½(x − 4), so y = −½x + 3.
    Check: 2 · (−½) = −1 ✓.
  4. Check both pass through (4, 1): 2(4) − 7 = 1 ✓ and −½(4) + 3 = 1 ✓.
    Always test the given point.

Strategy: Slope Rule, Point, Check

Check your understanding

  1. What is the equation of the line through (0, 6) parallel to y = −3x + 1?

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

    Answer: D. y = −3x + 6

    The slope is −3 and (0, 6) gives b = 6.

  2. Which slope is perpendicular to a line with slope 4/5?

    1. 5/4
    2. 4/5
    3. −5/4
    4. −4/5
    Show the answer

    Answer: C. −5/4

    The negative reciprocal of 4/5 is −5/4 (product −1).

  3. Write the equation of the line through (6, −2) that is perpendicular to y = 3x − 1.

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

    Answer: A. y = −⅓x

    m = −⅓. y + 2 = −⅓(x − 6) = −⅓x + 2, so y = −⅓x.

Practice this lesson with interactive questions

Lesson 6: Writing linear inequalities

TEKS A.2H

What you will learn

I can write a linear inequality in two variables from a table of values, a graph, or a verbal description.

I can use boundary line, solid / dashed and the words at least, at most, more than, fewer than to write an inequality.

Key vocabulary

linear inequality
A statement like y > 2x + 1 or 3x + 2y ≤ 12 comparing two linear expressions; its solutions form a region of the plane.
Examples: y ≥ x − 3; 2x + y < 8
boundary line
The line obtained by replacing the inequality sign with =; it separates solutions from non-solutions.
Examples: y = 2x + 1 for y > 2x + 1; x + y = 5 for x + y ≤ 5
solution set
All ordered pairs that make the inequality true.
Examples: (0, 5) for y > 2x + 1; (2, 2) for x + y ≤ 5

Worked example

You have $60 to spend on notebooks at $3 each (x) and pens at $2 each (y). Write an inequality for what you can buy.

  1. Total spent = 3x + 2y.
    Cost per item times the number of items.
  2. "Spend at most $60" means ≤.
    "At most" includes the endpoint: ≤.
  3. Inequality: 3x + 2y ≤ 60.
    The boundary line is solid because 60 is allowed.
  4. Check (10, 10): 30 + 20 = 50 ≤ 60 ✓. Check (20, 10): 60 + 20 = 80 ✗.
    Test points to confirm the correct inequality.

Strategy: Words → Symbol, Boundary, Test

Check your understanding

  1. Which inequality means "the total cost y is at least $15 plus $4 for each x"?

    1. y ≥ 15x + 4
    2. y > 4x + 15
    3. y ≤ 4x + 15
    4. y ≥ 4x + 15
    Show the answer

    Answer: D. y ≥ 4x + 15

    "At least" means ≥, the rate is 4 per x and the start is 15.

  2. A graph shows a dashed boundary y = 2x − 1 with the region above it shaded. Which inequality is shown?

    1. y ≥ 2x − 1
    2. y > 2x − 1
    3. y > −x + 2
    4. y < 2x − 1
    Show the answer

    Answer: B. y > 2x − 1

    Dashed means strict (> or <), and above means greater than.

  3. Which ordered pair is a solution of 3x + 2y ≤ 12?

    1. (2, 3)
    2. (6, 0)
    3. (5, 1)
    4. (4, 3)
    Show the answer

    Answer: A. (2, 3)

    3(2) + 2(3) = 12 ≤ 12 ✓. The others give 18, 17 and 18.

Practice this lesson with interactive questions

Lesson 7: Writing systems of linear equations

TEKS A.2I

What you will learn

I can write a system of two linear equations from a table of values, a graph, or a verbal description.

I can define variables and use system, solution and intersection to write two equations.

Key vocabulary

system of linear equations
Two or more linear equations that use the same variables and are solved together.
Examples: y = 2x + 1 and y = −x + 7; x + y = 10 and x − y = 2
solution of a system
The ordered pair that makes both equations true; the point where the graphs cross.
Examples: (2, 5) for y = 2x + 1 and y = −x + 7; The point where two lines cross
define variables
Say exactly what each letter stands for, with units, before writing equations.
Examples: x = hours, y = total cost; a = adult tickets, c = child tickets

Worked example

Gym A charges $20 to join plus $10 per month. Gym B charges $50 to join plus $5 per month. Write a system for the total cost y after x months.

  1. Define: x = months, y = total cost in dollars.
    Units make the equations meaningful.
  2. Gym A: the start is 20 and the rate is 10: y = 10x + 20.
    m is the monthly rate and b is the joining fee.
  3. Gym B: y = 5x + 50.
    Same form, different values.
  4. The system is y = 10x + 20 and y = 5x + 50. Check x = 6: 80 and 80, so they cost the same after 6 months.
    The intersection is (6, 80).

Strategy: Define, Rate & Start, Two Equations

Check your understanding

  1. Two plans: Plan A is $15 plus $2 per visit; Plan B is $5 plus $4 per visit. Which system gives the cost y after x visits?

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

    Answer: C. y = 2x + 15 and y = 4x + 5

    Each plan is y = (per visit)x + (starting fee).

  2. A line passes through (0, 2) and (3, 8), and another passes through (0, 10) and (5, 0). Which system describes them?

    1. y = 2x + 2 and y = 2x + 10
    2. y = 2x + 2 and y = −2x + 10
    3. y = 2x + 8 and y = −2x
    4. y = 3x + 2 and y = −5x + 10
    Show the answer

    Answer: B. y = 2x + 2 and y = −2x + 10

    First: m = 2, b = 2. Second: m = −10/5 = −2, b = 10.

  3. Adult tickets cost $8 and child tickets cost $5. 20 tickets were sold for $130. Let a = adult and c = child. Which system is correct?

    1. a + c = 20 and 8a + 5c = 130
    2. 8a + 5c = 20 and a + c = 130
    3. a + c = 20 and 5a + 8c = 130
    4. a + c = 130 and 8a + 5c = 20
    Show the answer

    Answer: A. a + c = 20 and 8a + 5c = 130

    The counts add to 20 and the dollars add to 130.

Practice this lesson with interactive questions