Fibo / Math / Algebra · Unit 7 · Linear Functions

Functions: One Input, One Output

A function is a machine with one golden rule: every input gets exactly one output. Vending machines, ATMs, and every formula you will ever graph all obey it.

By the end of this lesson, you will be able to

  • Decide whether a table, graph, or set of pairs is a function
  • Evaluate functions with f(x) notation and read domain and range
  • Use the vertical line test to check a graph in one glance
⏱ About 25 min Needs: coordinates, evaluating expressions Unit 7 · Linear Functions

1 The Big Picture

A function is a machine: you feed in an input (x), it follows its rule, and out comes exactly one output (f(x)). The one golden rule — each input gets exactly one output — is the entire lesson.

x = 4 f rule: ×3 − 5 f(4) = 7 the machine never gives two answers for one input
In goes 4, out comes 7 — the machine f(x) = 3x − 5 never gives two answers for one input.

We write f(x) — read "f of x" — for the output when the input is x. It is not f times x; it is the function's name tag.

Real life first

2 The Vending Machine Rule

📷 PHOTO PLACEHOLDER — replace with licensed stock: a vending machine with clearly labeled buttons (credit line here in production).

A vending machine is a perfect function: press A1 and you always get the same snack. If A1 sometimes gave chips and sometimes gave candy, the machine would be broken — and it would not be a function.

VENDING A1 A2 B1 chips pickup tray one button → one snack, every time
Press A1 — you always get the same snack. Each input (button) → exactly one output (snack): that's a function.

Where you already meet functions: ATMs (one PIN → one account), ovens (one dial setting → one temperature), and student IDs (one ID → one student).

3 Concept + Formula

Three ways to meet a function — a rule, a table, or a graph — and two vocabulary words:

  • Domain = all allowed inputs (the x-values).
  • Range = all actual outputs (the y-values).
y = x² 1 hit ✓ function x² + y² = 25 2 hits ✗ not a function
The vertical line test: if any vertical line hits the graph twice, one input has two outputs — not a function.
domain: −2 ≤ x ≤ 3 range: −1 ≤ y ≤ 2 (3, 2) (−2, −1)
Domain reads left-to-right (x); range reads bottom-to-top (y). Endpoints included: closed dots.

4 Worked Examples

Example 1 — Evaluate: f(x) = 3x − 5 at x = 4

Step 1Replace every x with the input 4: f(4) = 3(4) − 5.
Step 2Compute: 3(4) = 12; 12 − 5 = 7.

f(4) = 7

➜ input 4 → output 7. Say it: "f of 4 is 7."

✏️ Try It 1 — your turn

For f(x) = −2x + 3, find f(5).

f(5) = −2(5) + 3 = −10 + 3 = −7.

Example 2 — Build a table: f(x) = x² + 1

Step 1Pick inputs: −2, 0, 2.
Step 2f(−2) = (−2)² + 1 = 4 + 1 = 5.
Step 3f(0) = 0 + 1 = 1; f(2) = 4 + 1 = 5.

(−2, 5), (0, 1), (2, 5)

➜ two inputs sharing one output (5) is perfectly fine — only the reverse breaks a function.

✏️ Try It 2 — your turn

Give the domain and range of {(−1, 0), (0, 4), (2, 4)}.

Domain (x-values): {−1, 0, 2}. Range (y-values): {0, 4} — list 4 once.
Use it for real

5 Application Problems

App 1 — The pizza order

A pizza shop charges $12 per pizza plus $2 per topping: C(n) = 12 + 2n. How much is a pizza with 5 toppings?

5 toppings × $2 + $12 base
5 toppings → C(5) = 12 + 2(5) = $22. The topping count is the input; the price is the output.
Solution. Input n = 5: C(5) = 12 + 2(5) = 12 + 10 = $22.

App 2 — The road trip

Driving at a steady 40 mph, distance is D(t) = 40t. How far do you get in 2.5 hours?

40 mph × 2.5 h start 100 mi
Time in → miles out. D(2.5) = 40(2.5) = 100 miles.
Solution. Input t = 2.5: D(2.5) = 40(2.5) = 100 miles.

App 3 — The data plan

A data plan costs P(g) = 25 + 3g dollars for g GB. What is the bill for 10 GB?

10 GB used P(g) = 25 + 3g P(10) = 25 + 30
10 GB in → P(10) = 25 + 3(10) = $55 out.
Solution. Input g = 10: P(10) = 25 + 3(10) = 25 + 30 = $55.

6 Common Mistakes

Mistake 1: Reading f(x) as multiplication

✗ "f(x) means f times x" — then trying to "solve for f"

✓ f(x) is one symbol: the output of function f at input x. f(4) = 7 just names the pair (4, 7).

Rule: the letter names the machine; the parentheses hold the input. Never multiply.
Mistake 2: Swapping domain and range

✗ {(−1, 4), (2, −3)} → "domain {4, −3}, range {−1, 2}"

✓ Domain = x-values = {−1, 2}; range = y-values = {4, −3}

Rule: domain is the input list (first coordinates); range is the output list (second coordinates).
Mistake 3: Thinking a repeated output breaks a function

✗ {(−2, 5), (2, 5)} "isn't a function — 5 appears twice"

✓ It IS a function: each input (−2 and 2) has exactly one output. Only one input → two outputs breaks it.

Rule: outputs may repeat freely; inputs may never split.
Find the flaw — just like the textbooks

7 Error Analysis

Each student made exactly one mistake. Find it, explain why it is wrong, then show the correct work.

EA 1 — Omar concatenated

Omar evaluated f(x) = 2x + 1 at x = 3:

"f(3) = 23, because you put the 3 next to the 2."

Error: 2x means 2 times x — you cannot glue the digits together.
Fix: f(3) = 2(3) + 1 = 6 + 1 = 7.

EA 2 — Zoe used the wrong test

Zoe checked {(1, 3), (2, 5), (1, 7)}:

"It's a function — all the y-values are different."

Error: the test is about inputs, not outputs — and the input 1 appears twice, with two different outputs.
Fix: not a function: 1 → 3 and 1 → 7 breaks the one-input-one-output rule.

EA 3 — Kai swapped the lists

Kai gave the domain and range of {(−1, 4), (2, −3)}:

"Domain {4, −3}, range {−1, 2}."

Error: Kai listed the y-values as the domain — backwards.
Fix: domain = {−1, 2}, range = {4, −3}.
Check yourself — instant feedback

8 Quick Check

Type your answer, press Check. Stuck? Take a hint — no penalty, ever.

Q1. For f(x) = 5x − 2, find f(3).

Replace x with 3: 5(3) − 2. Multiply first, then subtract.

Q2. Is {(2, 4), (3, 9), (2, 7)} a function? (Type: yes or no)

Scan the first coordinates only. Does any input appear twice with different outputs?

Q3. What is the domain of {(0, 1), (4, 2), (7, 3)}? (Type like: 0,4,7)

Domain = the input list = the first number in each pair.

Before you leave

9 Exit Ticket

Three questions. If you can answer all three, you own this lesson.

1. Procedural: for f(x) = −3x + 8, find f(2).
2. Conceptual: why does the vertical line test work?
3. Application: D(t) = 40t gives miles after t hours. How far in 3 hours?
1. f(2) = −3(2) + 8 = −6 + 8 = 2
2. A vertical line x = a collects every output for the single input a — two hits means one input has two outputs, breaking the function rule
3. D(3) = 40(3) = 120 miles
Another way to see it

10 Reteach: The Function Inspector

Still fuzzy? Hire a mental inspector. His clipboard has exactly one rule:

FUNCTION INSPECTOR 3 → 7 ✓ always the same 3 → 9 ✗ BROKEN — one input, two outputs 5 → 7 ✓ sharing an output is fine
The inspector's only rule: one input can never point to two different outputs.

Run every table, graph, and pair-set past the inspector: "Does any input split into two outputs?" No? It's a function. Then go retry the Quick Check above.

11 Key Points — Cheat Sheet

  • Function = each input has exactly one output
  • f(x) reads "f of x" — the output at input x (not f times x)
  • Domain = all inputs (x) · range = all outputs (y)
  • Vertical line test: 2+ hits on one vertical line → not a function
  • Outputs may repeat; inputs may never split
  • Real world: vending machines, ATMs, pricing rules — input in, one answer out
Take it offline

12 Downloads

Every lesson ships the same four files — a teacher can run class from these alone.

Download links are stubs — PDFs generate in a later phase.

Prove it

13 Assessments

Quizzes are live — your best score saves on this device, and printable PDFs are on each quiz page.

→ Next Steps

Fibo · Learn, Practice & Explore Math