SECTION 1
Historical Context & Motivation
Long before smartphones and computers, mathematicians needed a reliable way to describe how quantities are connected. If you drop a ball, its height depends on time. If you buy movie tickets, the total cost depends on how many you buy. People recognized these input-output relationships for centuries, but they lacked a precise language to talk about them. The concept of a function was developed to fill that gap — giving us a powerful, universal tool for describing how one quantity determines another.
~1670 • Leibniz Coins the Word
1748 • Euler Introduces f(x)
1837 • Dirichlet's Modern Definition
1900s • Set Theory Connection
The big question these mathematicians were answering is one you deal with every day: If I know the input, can I predict exactly one output? Understanding functions gives you a precise way to answer that question, whether you're calculating a tip, predicting the weather, or programming a video game.
SECTION 2
Core Principles & Definitions
At its heart, a function is a special kind of rule. It takes an input, does something to it, and produces exactly one output. Let's break down the three big ideas you need to master.
What Is a Function?
Domain — The Inputs
Range — The Outputs
Function Notation: f(x)
The Graph of a Function
KEY TAKEAWAY
SECTION 3
Visual Explanation — Mapping Diagram
One of the clearest ways to see whether a relationship is a function is through a mapping diagram. A mapping diagram has two ovals: one for the domain (inputs) and one for the range (outputs). Arrows connect each input to its output. The key rule: every input must have exactly one arrow leaving it.
Notice something important on the left diagram: inputs 2 and 4 both point to the output 8. That is perfectly fine! A function only requires that each input leads to one output. Multiple inputs can share the same output — just like several friends can have the same birthday.
SECTION 4
Mathematical Framework — Function Notation
Function notation is a compact way to name a function and show what it does to any input. Instead of writing "y equals two x plus three," we write the equation using f(x) notation. This tells us the name of the function and makes it easy to evaluate (calculate) the output for any specific input.
FUNCTION NOTATION
f is the name of the function. x is the input variable (an element of the domain). f(x) is the output (the corresponding element of the range). The expression 2x + 3 is the rule that tells you what to do with the input.
To evaluate a function at a specific value, you substitute that value for x everywhere it appears. Here's how evaluation works step by step.
EVALUATING f AT x = 4
Replace every x with 4, then simplify. The output is 11, so the ordered pair (4, 11) lies on the graph of f.
GRAPH CONNECTION
The graph of a function f is the set of all points (x, y) where y = f(x). Every point on the graph represents one input-output pair. The x-coordinate is the input, and the y-coordinate is the output.
DOMAIN & RANGE FROM A RULE
You can't take the square root of a negative number (in real numbers), so the domain is restricted to x ≥ 0. Since square roots always produce non-negative results, the range is also g(x) ≥ 0.
SECTION 5
Reading Graphs — The Vertical Line Test
When you look at a graph on the coordinate plane, there is a quick visual check called the vertical line test. Imagine sliding a vertical line across the graph from left to right. If the vertical line ever hits the graph at more than one point at the same time, the graph does NOT represent a function. Why? Because that would mean one input (the x-value) produces two different outputs (two y-values).
You can also use the graph to read the domain and range. The domain is the set of all x-values that the graph covers — look at how far left and right the graph stretches. The range is the set of all y-values the graph reaches — look at how far up and down the graph goes. For instance, if a graph starts at x = −2 and ends at x = 5, the domain is −2 ≤ x ≤ 5.
PRO TIP
SECTION 6
Worked Example
Let's work through a complete example that ties together function notation, evaluation, domain, and range.
Analyzing the Function f(x) = x² − 1
- 1
Step 1 — Write the Rule
We are given f(x) = x² − 1. This means: take the input x, square it, then subtract 1. That is the rule. - 2
Step 2 — Determine the Domain
Ask yourself: are there any values of x that would break this rule? Can you square any real number? Yes! There are no restrictions. So the domain is all real numbers, written as (−∞, ∞).Domain: all real numbers, (−∞, ∞) - 3
Step 3 — Evaluate at Several Inputs
Let's plug in a few values to build an input-output table. f(−2) = (−2)² − 1 = 4 − 1 = 3. f(0) = (0)² − 1 = 0 − 1 = −1. f(1) = (1)² − 1 = 1 − 1 = 0. f(3) = (3)² − 1 = 9 − 1 = 8.Ordered pairs: (−2, 3), (0, −1), (1, 0), (3, 8) - 4
Step 4 — Determine the Range
Since x² is always ≥ 0, the smallest value of x² − 1 is 0 − 1 = −1. As x gets larger (positive or negative), x² − 1 grows without bound. So the range is y ≥ −1, written as [−1, ∞).Range: y ≥ −1, or [−1, ∞) - 5
Step 5 — Verify It's a Function
For every x-value we tested (and every x we could test), there is exactly one output. The graph of y = x² − 1 is an upward-opening parabola, and it passes the vertical line test. Therefore, f(x) = x² − 1 is indeed a function.✓ f(x) = x² − 1 is a function with domain (−∞, ∞) and range [−1, ∞).
SECTION 7
Functions vs. Non-Functions — Common Comparisons
Students often confuse functions with other types of relationships. The table below highlights several examples and explains whether each one is a function.
| Relationship | Function? | Why? |
|---|---|---|
| y = 3x + 2 (a line) | ✓ Yes | Each x produces exactly one y. Lines (that aren't vertical) always pass the vertical line test. |
| x² + y² = 25 (a circle) | ✗ No | Most x-values give two y-values (one above, one below the x-axis). Fails the vertical line test. |
| x = 5 (a vertical line) | ✗ No | The single input x = 5 maps to infinitely many y-values. This is the worst-case failure. |
| y = |x| (absolute value) | ✓ Yes | Each x gives exactly one |x|. Even though f(−3) = f(3) = 3, each input still produces only one output. |
| {(1,4), (2,7), (1,9)} | ✗ No | The input 1 maps to both 4 and 9. One input, two outputs — not a function. |
Common examples and whether they qualify as functions.
KEY TAKEAWAY
SECTION 8
Connection to Advanced Topics
The definition of a function you learned in this lesson is the foundation for nearly everything that comes next in algebra, and later in courses like Algebra 2, Precalculus, and Calculus. Here's a preview of how these ideas grow as your math journey continues.
| What You Learned Now | Where It Leads |
|---|---|
| A function assigns each input exactly one output. | One-to-one functions assign each output to exactly one input — these have inverses you can "undo" (Algebra 2). |
| Domain is the set of valid inputs. | Restricted domains arise with rational functions, logarithms, and real-world constraints (Precalculus). |
| f(x) notation names a function and its input. | Composite functions f(g(x)) chain functions together; derivatives f′(x) describe rates of change (Calculus). |
| The graph of f is y = f(x). | Transformations shift, stretch, and reflect graphs. You'll learn rules like y = f(x − 3) + 2 (Algebra 2). |
How today's concepts connect to future math courses.
Every one of those advanced topics builds directly on what you just learned. By truly understanding that a function is a reliable input-output machine — and that domain, range, and notation let you describe and work with that machine — you have the building blocks for years of math ahead.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
A function is a rule that assigns each element of the domain (the set of inputs) to exactly one element of the range (the set of outputs). We use function notation f(x) to name the function and show its output for a given input x. The graph of f is the set of all points (x, y) where y = f(x), and you can use the vertical line test to quickly check whether a graph represents a function.
The single defining rule is that each input maps to exactly one output. Multiple inputs can share the same output, but one input can never produce two different outputs. You can identify the domain by finding all valid x-values and the range by finding all resulting y-values. Mastering these ideas prepares you for every type of function you will encounter — linear, quadratic, exponential, and beyond.