Learn · Algebra I

Function rules and evaluation

Connect words, tables, graphs, and notation.

Original curriculum. These lessons and questions have not been independently reviewed.

01 · Learn the idea

One input, one output

A function assigns exactly one output to each allowed input. Different inputs may share an output. The relation {(1,4),(2,4),(3,7)} is a function of x; adding (2,9) makes it fail because input 2 now has two outputs. Repeating (2,4) changes nothing.

A machine that assigns each ticket its listed price is a function if each ticket has one price. Reversing the assignment from price to ticket may fail because several tickets can have the same price. Inputs and outputs must be named before deciding.

02 · Build understanding

Four representations

Represent y = 2x² − 3 as an equation, a table for x = −2,−1,0,1,2, a plotted graph, and a verbal rule. The outputs are 5,−1,−3,−1,5. A vertical line meets its graph at most once, because one x has one y. A circle centered at the origin with radius 2 fails this test: x = 0 has y = 2 and y = −2.

Function notation f(−2) asks for an output, not multiplication by −2. For f(x) = 2x²−3, f(−2)=5 and f(t+1)=2(t+1)²−3=2t²+4t−1. Parentheses preserve the entire substituted input. For g(x)=1/(x−2), g(2) is undefined because division by zero is not allowed.

03 · Build understanding

Worked example: check a table for repeated inputs

A relation is given by the table x: 4, −1, 6, 4, 0 and y: 9, 5, 9, −2, 5. Decide whether y is a function of x.

Step 1: Name the input. The question asks about y as a function of x, so x is the input and y is the output.

Step 2: Look for an input that appears more than once, because that is the only place a function can fail. The x-values are 4, −1, 6, 4 and 0. Only 4 repeats.

Step 3: Compare the outputs for the repeated input. The first 4 is paired with 9 and the second 4 is paired with −2. One input has two different outputs, so y is not a function of x.

Step 4: Leave repeated outputs alone. The output 9 appears for the inputs 4 and 6, and the output 5 appears for the inputs −1 and 0. Shared outputs are allowed, so they are not the reason this relation fails.

Step 5: Check your reason. Take out the row (4, −2) and the inputs left are 4, −1, 6 and 0, all different, so what remains is a function. The graph shows the five pairs as points. The points (4, 9) and (4, −2) sit on the same vertical line x = 4, which is the vertical line test failing.

(4, 9)(−1, 5)(6, 9)(4, −2)(0, 5)
  • x = 4
Five plotted points; the vertical line x = 4 passes through two of them, (4, 9) and (4, −2).

04 · Build understanding

Worked example: evaluate with a negative input

Find p(−5) for p(x) = −2x² + 3x + 7.

Step 1: Replace every x with (−5) and keep the parentheses, so the negative sign travels with the 5: p(−5) = −2(−5)² + 3(−5) + 7.

Step 2: Square before you multiply. (−5)² = 25. The −2 in front is a separate factor and is not squared.

Step 3: Multiply each term: −2(25) = −50 and 3(−5) = −15.

Step 4: Add from left to right: −50 − 15 + 7 = −58. So p(−5) = −58.

Step 5: Check against the opposite input. p(5) = −50 + 15 + 7 = −28. Only the middle term changed, from −15 to 15, and the two results −58 and −28 differ by exactly 30. That matches, so the sign of the middle term is right. The squared term is −50 for both inputs, because (−5)² and 5² are both 25.

05 · Build understanding

Worked example: a rental rule with units

A bike shop charges a $14 helmet fee plus $9 for each hour. The rule C(h) = 9h + 14 gives the cost in dollars of renting for h hours.

Step 1: Evaluate C(3) to find the cost of 3 hours. Substitute 3 for h: C(3) = 9(3) + 14 = 27 + 14 = 41.

Step 2: Attach the units. The input 3 is in hours and the output 41 is in dollars, so C(3) = 41 says that a 3-hour rental costs $41.

Step 3: Answer the reverse question by solving. "How long can you ride for $68?" gives you the output and asks for the input. Write 9h + 14 = 68, subtract 14 to get 9h = 54, then divide by 9 to get h = 6 hours.

Step 4: Check by evaluating. C(6) = 9(6) + 14 = 54 + 14 = 68, so 6 hours costs $68. C is a function because each number of hours has exactly one cost.

The graph shows C(h) = 9h + 14 as a line that starts at (0, 14), the helmet fee, and rises $9 for each hour. The points (3, 41) and (6, 68) are the two results above. Evaluating reads up from an input to the line, and solving reads across from an output to the line.

(0, 14)(3, 41)(6, 68)
  • C(h) = 9h + 14
The line C(h) = 9h + 14 starts at (0, 14) and passes through (3, 41) and (6, 68).

06 · Build understanding

Three mistakes to watch for

Losing the parentheses on a negative input. For k(x) = x² + 1, k(−7) = (−7)² + 1 = 49 + 1 = 50. Typing −7² + 1 gives −48, because only the 7 gets squared.

Treating repeated outputs as a failure. The pairs (2, 5) and (3, 5) are fine in a function: two inputs share one output. The pairs (5, 2) and (5, 3) are the problem: the input 5 has two outputs.

Mixing up the input and the output. For g(x) = 2x + 4, g(10) asks for the output when the input is 10, which is 24. The equation g(x) = 10 asks which input gives the output 10, which is x = 3.

Apply and explain

Your turn

Make all four representations of h(x)=3−x² for inputs −2 through 2. Evaluate h(−3) and h(a−1). Give a nonfunction relation and explain it with both a repeated input and a vertical-line test. Explain why g(2) is outside the domain of 1/(x−2).

Use paper or explain your thinking aloud before opening the solution.

Check your reasoning

The table outputs are −1,2,3,2,−1. h(−3)=−6 and h(a−1)=3−(a−1)²=2+2a−a². A nonfunction must assign two distinct outputs to one input. g(2) would require division by zero.

  • Four representations agree
  • Substitution includes parentheses
  • Function decision names input and output
  • Domain exclusion explained

Ready to practice?

Try the questions, get feedback, and review your reasoning.

Function rules and evaluation practice →