Where Did Function Rules Come From?
People have been noticing patterns in numbers for thousands of years. Ancient farmers tracked how many seeds they planted and how much food they harvested. Merchants figured out the cost of buying many items at the same price. These everyday problems all follow a hidden pattern — a function rule that connects an input to an output.
Over time, mathematicians created a shorthand way to write these patterns. Instead of describing every step in words, they used letters and symbols. This made it faster to communicate rules and solve problems.
So here's the big question: how do you take a pattern you notice — like "every hour I earn $8 more" — and write it as a neat equation? That's exactly what this lesson is about.
Core Principles of Function Rules
A function is a rule that takes each input and gives exactly one output. Think of it like a machine: you put a number in, the machine does something to it, and one number comes out. A function rule is the set of instructions that tells the machine what to do.
Input (x)
Rule (Operation)
Output (y)
Words vs. Equation
The Function Machine
The diagram below shows a function machine. You drop an input number in at the top. The machine applies the rule. The output pops out at the bottom. Notice how the rule is written in both words and as an equation inside the machine.
Notice that the same rule is written two ways inside the machine. The word version says "multiply by 3, then add 2." The equation version says y = 3x + 2. They mean the exact same thing. The equation is just quicker to write.
Writing Function Rules as Equations
When you write a function rule as an equation, you use letters to stand for numbers. The letter x represents the input and y represents the output. The equation tells you what to do to x to get y.
Let's break down how to read this. The "2x" means "2 times x" (the multiplication sign is hidden — that's normal in algebra). The "+ 5" means you add 5 after multiplying. So if x = 4, you calculate 2 × 4 + 5 = 13. That means y = 13.
Finding Function Rules from Tables
Sometimes you're given a function table (a list of input-output pairs) and you need to figure out the rule. The trick is to look at what happens between each input and its output. Ask yourself: "What do I do to x to get y?"
| x (Input) | y (Output) | What happened? |
|---|---|---|
| 1 | 5 | 1 × 3 + 2 = 5 ✓ |
| 2 | 8 | 2 × 3 + 2 = 8 ✓ |
| 3 | 11 | 3 × 3 + 2 = 11 ✓ |
| 4 | 14 | 4 × 3 + 2 = 14 ✓ |
Notice the output goes up by 3 each time the input goes up by 1. That tells us the rule involves multiplying by 3. But 3 × 1 = 3, not 5. We need to add 2 to get 5. So the rule is y = 3x + 2.
Worked Example: From Table to Rule
Let's walk through a full example together. Suppose you babysit and earn money based on the number of hours you work. Here is your pay table:
| Hours (x) | Pay in $ (y) |
|---|---|
| 1 | 12 |
| 2 | 19 |
| 3 | 26 |
| 4 | 33 |
Comparing Words and Equations
Both word rules and equation rules describe the same thing. So when should you use each one? Let's compare.
| Feature | Word Rule | Equation Rule |
|---|---|---|
| Example | "Multiply the input by 4 and subtract 1" | y = 4x − 1 |
| Easy to understand? | Yes — great for explaining to someone new | Takes practice to read |
| Quick to write? | No — can be long | Yes — very short |
| Easy to calculate with? | Harder — you have to interpret words | Easier — just substitute the number |
| Used in higher math? | Rarely | Always |
Connection to Algebra and Beyond
The function rules you are learning now are the building blocks for algebra. In Algebra 1, you will see these same rules written as f(x) instead of y. For example, y = 3x + 2 becomes f(x) = 3x + 2. It means exactly the same thing.
| What you learn now | What it becomes in Algebra |
|---|---|
| y = 2x + 3 | f(x) = 2x + 3 (linear function) |
| Input-output table | Ordered pairs and graphing on a coordinate plane |
| "Multiply by 2 and add 3" | Slope = 2, y-intercept = 3 |
| Finding the rule from a table | Finding the equation of a line from two points |
You'll also learn about rules that aren't straight-line patterns, like y = x² (a parabola). But every function — no matter how fancy — still follows the same idea: one input goes in, one output comes out.
Practice Problems
Lesson Summary
A function rule is a set of instructions that takes an input (x) and produces exactly one output (y). You can write rules in words (like "multiply by 3 and add 2") or as an equation (like y = 3x + 2). Both forms describe the same pattern.
To find a rule from a function table, look at how the output changes when the input goes up by 1. That constant change is your multiplier. Then figure out what number is added or subtracted to match the table. Always check your rule by plugging in at least one pair to make sure it works.