Relations &
Functions
Learn how to identify whether a relation is a function, master the vertical line test, and build confidence with domain and range.
What Is a Relation?
A relation is any set of ordered pairs \((x, y)\). It pairs inputs from one set (the domain) with outputs in another set (the range).
Ways to Represent a Relation
Relations can appear in many forms. Recognising each form is essential before testing whether it qualifies as a function.
What Makes It a Function?
A function is a special type of relation. It adds one crucial restriction: every input must map to exactly one output.
Think of it like a vending machine: you press one button, you get one specific item. If pressing the same button could give you different items each time, it wouldn't be a reliable machine: and it wouldn't be a function.
Mapping Diagrams Compared
The Vertical Line Test
When a relation is given as a graph, you can test it visually. Imagine sweeping a vertical line across the graph from left to right.
This works because a vertical line represents all points with the same \(x\)-value. Two intersections mean one \(x\) maps to two different \(y\)-values.
Vertical Line Test: Visual
Relation vs Function
| Relation | Function | |
|---|---|---|
| Definition | Any set of ordered pairs | Each input has exactly one output |
| Repeated \(x\)-values | Allowed with different \(y\) | Not allowed with different \(y\) |
| Vertical Line Test | May fail | Always passes |
| Example | \(\{(1,2),(1,3)\}\) | \(\{(1,2),(2,3)\}\) |
Function Notation: \(f(x)\)
When a relation is a function, we often name it with function notation. Instead of writing \(y\), we write \(f(x)\), read as "\(f\) of \(x\)".
How to Identify a Function
Example 1: Ordered Pairs
Determine whether the relation \(\{(2,5),\;(3,7),\;(4,5),\;(5,9)\}\) is a function.
Example 2: Table of Values
Is the relation shown in the table a function?
| \(x\) | -1 | 0 | 3 | 3 | 5 |
|---|---|---|---|---|---|
| \(y\) | 4 | 2 | 6 | 8 | 1 |
Example 3: Graph Analysis
Is the graph of \(y = \sqrt{x}\) a function?
Domain and Range Review
Once you confirm a relation is a function, you can describe its domain and range using interval or set-builder notation.
Range: \([0, \infty)\)
Range: \([0, \infty)\)
Range: \((-\infty,0)\cup(0,\infty)\)
Common Mistakes
Summary: Quick Reference
| Test / Question | Function | Not a Function |
|---|---|---|
| Repeated \(x\) with different \(y\)? | No | Yes |
| Vertical Line Test | Passes (1 hit max) | Fails (2+ hits) |
| Mapping diagram | Each input \(\to\) one arrow | Some input \(\to\) 2+ arrows |
| Same \(y\) for different \(x\)? | Allowed | Allowed |
Question 1 of 5
Which of the following relations is a function?
Question 2 of 5
A student says the relation \(\{(1,5),\;(2,5),\;(3,5)\}\) is not a function because the \(y\)-value repeats. Is the student correct?
Question 3 of 5
Which graphical test determines whether a relation is a function?
Question 4 of 5
The equation \(x^2 + y^2 = 25\) describes a circle. Is this equation a function of \(x\)?
Question 5 of 5
If \(f(x) = 3x - 7\), what is \(f(4)\)?