Where Did Functions Come From?
Have you ever used a vending machine? You press a button, and you get one specific snack. You wouldn't want a machine that gives you a random item each time you press the same button! That idea — one input always gives one output — is the heart of a function. Mathematicians spent hundreds of years figuring out how to describe this idea.
Long ago, people noticed patterns between numbers. For example, the area of a square depends on the length of its side. As math grew more complex, thinkers needed a way to talk about these relationships clearly. Here are some key moments in the story of functions.
So the big question is: given a set of pairs, a table, a graph, a mapping diagram, or an equation, how can you tell if the relationship is a function? That's exactly what you'll learn in this lesson.
Core Ideas: What Makes a Function?
Before we test whether something is a function, we need a few building blocks. A relation is just a set of ordered pairs like (x, y). Think of it as a collection of connections between inputs and outputs. A function is a special kind of relation with one extra rule.
Input (Domain)
Output (Range)
The Function Rule
Multiple Inputs, Same Output = OK
Seeing Functions: Mapping Diagrams
One of the clearest ways to see if a relation is a function is a mapping diagram. In a mapping diagram, you draw two ovals. The left oval holds the inputs (domain). The right oval holds the outputs (range). Then you draw arrows from each input to its output.
If any input has two or more arrows leaving it, the relation is NOT a function. Check out the diagram below.
Notice that on the left side, inputs 1 and 2 both point to 5. That's totally fine! Different inputs can share an output. The rule only says each input must point to exactly one output.
Testing Functions with Tables and Equations
Testing a Table
A table lists input values (usually x) and output values (usually y). To check if it's a function, look at the x-column. If any x-value appears more than once with different y-values, it is NOT a function.
| x | y | Function? |
|---|---|---|
| 1, 2, 3, 4 | 5, 6, 7, 8 | ✅ Yes — no x repeats |
| 1, 2, 2, 4 | 5, 6, 7, 8 | ❌ No — x = 2 gives 6 AND 7 |
| 1, 2, 3, 4 | 5, 5, 5, 5 | ✅ Yes — same output is OK |
Testing an Equation
An equation like y = 2x + 1 is a function because for any x you plug in, you get exactly one answer for y. But an equation like x² + y² = 25 is NOT a function because one x-value can give two y-values (one positive, one negative).
The Vertical Line Test on Graphs
When you have a graph, there's a super-handy trick called the Vertical Line Test. Imagine sliding a vertical line (like a ruler standing upright) across the graph from left to right. If the line ever touches the graph in more than one point at the same time, then the graph is NOT a function.
Why does this work? A vertical line represents one x-value. If it hits the graph twice, that x-value has two y-values — which breaks the function rule.
- Straight lines (except vertical lines) always pass the test. They are functions.
- Parabolas opening up or down pass the test. They are functions.
- Circles and ellipses fail the test. They are NOT functions.
- Vertical lines fail the test — they have infinite outputs for one input. NOT a function.
Worked Example: Is It a Function?
Let's walk through a complete example. We're given this table and asked: Is the relation a function?
| x | y |
|---|---|
| 2 | 5 |
| 4 | 9 |
| 6 | 13 |
| 4 | 11 |
| 8 | 17 |
Comparing the Four Methods
You now know four ways to check if a relation is a function. Each method has its own strengths. The table below compares them.
| Method | What You Look For | Best Used When… |
|---|---|---|
| Table | Same x-value with different y-values | You have a list of ordered pairs or data |
| Graph | Vertical line hits the curve more than once | You can see or draw the graph |
| Mapping | One input with two or more arrows | You have a small set of pairs and want a clear picture |
| Equation | Solving for y gives more than one expression (like ±) | You're working with a formula |
From Here to Function Notation and Beyond
Once you can identify functions, the next step is using function notation. Instead of writing y = 2x + 1, you'll write f(x) = 2x + 1. This tells you that the function is named f and the input is x.
| What You Know Now | What Comes Next |
|---|---|
| Identifying whether a relation is a function | Using f(x) notation to name and evaluate functions |
| Reading ordered pairs from a table | Finding domain and range from equations |
| The vertical line test on simple graphs | Graphing linear and nonlinear functions |
| Checking one equation at a time | Comparing two functions and finding where they intersect |
Every skill you build on top of functions — graphing, solving systems, even calculus someday — starts with the simple question you learned today: does every input have exactly one output?
Practice Problems
Lesson Summary
A function is a special relation where every input has exactly one output. You can test this using four methods. In a table, check that no x-value appears with different y-values. In a mapping diagram, make sure no input has more than one arrow leaving it. On a graph, use the vertical line test — if a vertical line ever hits the graph in more than one spot, it's not a function.
For an equation, solve for y. If you get only one expression, it's a function. If you get a ± or two possible values, it's not. Remember: different inputs CAN share the same output. The rule is all about each input pointing to exactly one output. Master this idea, and you're ready for function notation and beyond!