Where Did Functions Come From?
Have you ever wondered why math uses the word function? It comes from the idea that one number can depend on another. For centuries, mathematicians noticed patterns where changing one value would change another in a predictable way. This idea became one of the most important concepts in all of math.
People have been using function-like thinking for thousands of years. Ancient tax collectors used tables that matched each amount of grain to a specific tax. Astronomers matched dates to the positions of stars. Over time, mathematicians gave this matching process a formal name and set of rules.
So the big question that functions answer is: "If I know the input, can I be sure of the output?" When the answer is yes — every time — you have a function.
Core Principles of Functions
A function is a rule that takes each input (a number you put in) and assigns it exactly one output (the number you get out). That word "exactly one" is the key. An input can never produce two different outputs. Let's break this down into a few big ideas.
One Input → One Output
Inputs & Outputs Form Ordered Pairs
The Graph Tells the Story
Multiple Representations
Visualizing Functions with Mapping Diagrams
One of the best ways to see whether a relationship is a function is to draw a mapping diagram. A mapping diagram has two ovals — one for inputs and one for outputs. Arrows connect each input to its output. The diagram below shows two examples side by side.
Notice the key difference. On the left, every input has one arrow leaving it. On the right, the input 5 has two arrows. That breaks the function rule. It is okay for two different inputs to share the same output. But one input can never point to two outputs.
The Math Behind Functions
You can write a function as an equation. The most common form uses f(x) notation. The letter f is the name of the function. The letter x represents the input. Whatever expression comes after the equals sign tells you the rule for getting the output.
When you substitute a number for x, you get an ordered pair. For example, if x = 4, then f(4) = 3 × 4 + 2 = 14. That gives you the ordered pair (4, 14).
The Vertical Line Test
How can you tell if a graph represents a function? Use the Vertical Line Test. Imagine sliding a vertical line across the graph from left to right. If the line ever touches the graph in more than one point at the same time, the graph is not a function. Why? Because that would mean one input (the x-value where the line sits) has two or more outputs.
The left graph shows a smooth curve. The yellow dashed line touches the curve at just one spot. That means every x-value has only one y-value. The right graph is an ellipse (oval). The yellow line crosses it in two places. That means one x-value has two y-values, so the ellipse is not a function.
Worked Example: Is It a Function?
Let's work through a full example. Suppose you are given a set of ordered pairs and need to decide if the relation is a function. Then you will find the output for a given input.
Comparing Ways to Show Functions
You can represent a function in many different ways. Each way has strengths and limitations. The table below compares four common representations.
| Representation | Strengths | Limitations |
|---|---|---|
| Equation (e.g., f(x) = 2x + 5) | Shows the rule clearly. Works for any input, even ones you haven't tried yet. | Can be hard to read if the rule is complicated. Doesn't show the shape at a glance. |
| Table of values | Easy to read. Great for spotting patterns in specific values. | Only shows a few input-output pairs. You can't see the big picture. |
| Graph on a coordinate plane | Shows the overall shape and trend. You can use the vertical line test. | Hard to read exact values. Requires careful drawing. |
| Mapping diagram | Makes it very clear whether each input has one output. Great for checking the function rule. | Gets messy with many values. Not practical for large sets of data. |
Functions Now and Later
The function concept you are learning now is the foundation for everything that comes next in math. In high school, you will study specific types of functions like linear, quadratic, and exponential functions. The table below shows how the ideas you learned today grow over time.
| Idea You Learn Now (8th Grade) | Where It Goes Next |
|---|---|
| A function assigns each input exactly one output. | In Algebra 1, you classify functions by their rules (linear, quadratic, etc.). |
| The graph is a set of ordered pairs. | In Algebra 2, you analyze features of graphs: intercepts, maximums, minimums, and symmetry. |
| f(x) notation names the output for a given input. | In Precalculus and Calculus, you use notation like f′(x) to describe how a function changes. |
| Tables show specific input-output pairs. | In Statistics, you analyze tables of real-world data and model them with functions. |
By mastering the idea that each input gives exactly one output, you are building a skill you will use in every math class from now on. This is one of the most important ideas in all of mathematics!
Practice Problems
Lesson Summary
A function is a rule that assigns each input exactly one output. Each input-output pair forms an ordered pair (x, y), and the collection of all those ordered pairs makes up the graph of the function. You can use f(x) notation to name the output for any input x.
To check whether a relation is a function, make sure no input repeats with different outputs. On a graph, use the Vertical Line Test — if every vertical line crosses the graph at most once, it is a function. You can represent functions as equations, tables, graphs, or mapping diagrams. Mastering this concept prepares you for all the advanced function work in high school math.