What Makes a Relation a Function
A function is a relation with one extra condition attached. The condition is short, it is easy to check in every representation, and it is the reason the notation of the next lesson is allowed to exist at all.
Think of a vending machine. You press a button and something comes out. What would it mean for the machine to be broken in the particular way that a non-function is broken? Not that a button does nothing, but something else. Describe it in one sentence.
A function is a relation in which each element of the first set is associated with exactly one element of the second. One input, one output, every time.
$$\text{each first entry appears exactly once}$$
The condition looks different in each representation but is always the same condition. In a list of pairs: no first entry repeats. In a mapping diagram: exactly one arrow leaves each element on the left. On a graph: no vertical line meets the curve more than once.
Know
- That a function is a relation in which each first entry has exactly one partner
- How the condition looks in a list of pairs, a mapping diagram and a graph
- The vertical line test and what a failure of it demonstrates
Understand
- Why a repeated second entry is permitted but a repeated first entry is not
- Why the vertical line test is the graphical form of the same condition
Can Do
- Decide whether a given relation is a function, in any of the four representations
- Apply the vertical line test and justify the verdict
- Give a counterexample showing that a relation is not a function
A relation is a function when every element of the first set is associated with exactly one element of the second.
Two words in that sentence are load-bearing. Exactly rules out an input with two different outputs. One rules out an input with none.
So this relation is a function:
$$\{(1,5),\ (2,5),\ (3,8)\}$$
Each of $1$, $2$ and $3$ appears once as a first entry. The fact that $1$ and $2$ share the output $5$ is entirely acceptable.
This relation is not:
$$\{(1,5),\ (1,7),\ (3,8)\}$$
The input $1$ has two different outputs, so "the output when the input is $1$" has no single answer.
The asymmetry is the whole point. Repeats among the second entries are harmless; a repeat among the first entries, with different partners, is fatal.
In a list of ordered pairs. Read down the first entries. If any value appears twice with different partners, it is not a function. If a value appears twice with the same partner, the pair was simply written twice, and a set contains no duplicates anyway.
$$\{(0,1),\ (2,3),\ (0,4)\} \quad \text{not a function: } 0 \text{ has two partners}$$
$$\{(0,1),\ (2,3),\ (4,1)\} \quad \text{a function: no first entry repeats}$$
In a mapping diagram. Look at the left region and count the arrows leaving each element. A function has exactly one arrow out of every element on the left. Two arrows leaving one element means two outputs, which fails. No arrow leaving an element also fails, since that input has no output at all.
Nothing is required of the arrows arriving on the right. An element of the second set may receive two arrows, one, or none, and the relation is still a function. The condition constrains the left side only.
On a graph, an input is a horizontal position and its outputs are the heights of the points sitting above or below it. All the points with a given input $x$ therefore lie on one vertical line.
So the condition translates directly:
$$\text{a graph is a function} \iff \text{no vertical line meets it more than once}$$
That is the vertical line test. To apply it, imagine sliding a vertical ruler across the whole graph and watching how many times it touches the curve.
Two things about how it is used.
To show a graph is a function you must be satisfied that every vertical line meets it at most once, which is a claim about all of them. To show a graph is not a function you need only exhibit one line that meets it twice. Disproving is cheap; proving needs the general argument.
The circle $x^2 + y^2 = 25$ fails immediately: the line $x = 0$ meets it at $(0,5)$ and $(0,-5)$. Naming those two points is a complete answer.
Functions. Every straight line except a vertical one. Every parabola of the form $y = ax^2 + bx + c$. Every polynomial from the previous focus area, since $y$ is computed from $x$ by a single formula. The hyperbola $y = \tfrac{1}{x}$, and the exponential $y = 2^x$.
Not functions. A vertical line such as $x = 3$, since it contains $(3,y)$ for every $y$ at once. Any circle. The sideways parabola $x = y^2$. The relation $y^2 = x + 1$.
A quick structural signal, though not a proof: if the equation can be rearranged into the form $y = (\text{something in } x)$ with no $\pm$ appearing, it is a function, because the right-hand side computes one value for each $x$. The $\pm$ is the tell:
$$x = y^2 \quad \Longrightarrow \quad y = \pm\sqrt{x}$$
and that $\pm$ is exactly two outputs for each positive input.
Note that $y = \sqrt{x}$, with the positive root only, is a function. The square root symbol denotes the non-negative root by convention, which is a deliberate choice made so that this expression defines a function.
Watch Me Solve It · 3 examples
-
1(a) Read down the first entries$1$, $2$, $3$: no repeats. So each input has exactly one output, and it is a function. The shared output $4$ is irrelevant to the test.
-
2(b) Look for a repeated first entry$(1,4) \ \text{and} \ (1,5)$The input $1$ has two different outputs, so it is not a function. Naming those two pairs is the complete justification.
-
3(c) Check the first entries again$-2$, $0$, $2$: no repeats, so it is a function. That two outputs are $3$ and one is $-3$ has no bearing.
-
4State the pattern being usedIn every case the test looked only at the first entries. That is the whole method for a list.
-
1(a) Look for one bad line$x = 0: \quad y^2 = 9 \ \Rightarrow \ y = \pm 3$The line $x = 0$ meets the circle at $(0,3)$ and $(0,-3)$, two points. One such line is enough, so it is not a function.
-
2(b) Argue that every line worksFor any value of $x$, the expression $x^2 - 4$ produces exactly one number, because squaring and subtracting each give a single value. So every vertical line meets the parabola exactly once, and it is a function.
-
3(c) Consider the extreme caseThe graph of $x = 2$ is itself a vertical line, and it contains the point $(2,y)$ for every real $y$. The vertical line $x = 2$ therefore meets it infinitely often, so it is not a function.
-
4Note the asymmetry of the argumentsParts (a) and (c) named specific failures; part (b) needed a general argument about all values of $x$. Failing is a one-example job; passing is not.
-
1(a) Rearrange if needed and look for ambiguityThe right side computes one value for each $x$, with no $\pm$ and no choice to make. It is a function.
-
2(b) Solve for y and watch for the plus-or-minus$y = \pm\sqrt{x}$For $x = 4$ this gives $y = 2$ and $y = -2$, two outputs from one input. Not a function.
-
3(c) Note the convention on the root symbolThe symbol $\sqrt{\ }$ denotes the non-negative root only, so $\sqrt{4} = 2$ and nothing else. One output per input, so it is a function. Compare with (b): the difference is the $\pm$, not the square root.
-
4(d) Check whether any input misbehavesFor every $x$ except $2$ the expression gives exactly one value. At $x = 2$ it gives none, since division by zero is undefined. So it is a function on the inputs where it is defined, and Lesson 4 will say that $2$ is simply excluded from the domain rather than that the function is broken.
Brain Trainer · 5 problems
Five items on the function condition. Work each one, then reveal the answer.
-
1 Is $\{(2,7),(3,7),(4,7)\}$ a function?
No first entry repeats; shared outputs are allowed.Yes -
2 Is $\{(5,1),(6,2),(5,3)\}$ a function?
The input $5$ has two different outputs.No -
3 Does the graph of $y = x^3$ pass the vertical line test?
Each $x$ gives exactly one cube.Yes -
4 Does $x^2 + y^2 = 1$ define a function?
The line $x = 0$ meets it at $(0,1)$ and $(0,-1)$.No -
5 Which test decides whether a function is one-to-one?
A different line, checking whether outputs repeat.The horizontal line test
Multiple Choice · 5 questions
A relation is a function when:
Which of these is NOT a function?
A graph fails to be a function as soon as:
The graph of $y = x^2$ meets the horizontal line $y = 9$ twice. This shows that:
Which equation does NOT define $y$ as a function of $x$?
Short Answer · 3 questions
(a) $\{(0,0),(1,1),(2,4),(3,9)\}$
(b) $\{(4,2),(4,-2),(9,3)\}$
(c) The graph of $y = 2x - 5$
(d) The graph of $x^2 + y^2 = 16$
(b) Explain why exhibiting one vertical line that meets a graph twice is enough to disprove that it is a function, but checking three lines that each meet it once is not enough to prove that it is.
(c) The graph of $y = x^2$ meets some horizontal lines twice. Explain why this does not contradict its being a function.
(d) Describe a graph that fails the vertical line test at exactly one value of $x$ and passes everywhere else, and say whether it is a function.
(b) Does $y^2 = 4x$ define $x$ as a function of $y$? Justify your answer.
(c) Explain why $y = \sqrt{4x}$ is a function while $y^2 = 4x$ is not, given that both involve the same square relationship.
(d) Give an equation whose graph is a function and whose graph is also symmetric about the vertical axis, and one whose graph is a function and is symmetric about the origin.
(b) Explain why every vertical line fails the vertical line test, and why this is the only straight line that does.
(c) A relation has $m$ pairs and every first entry is different. Explain why it is a function, and state how many pairs a function from a set of $m$ elements must have.
The condition
Each input has exactly one output
In a list
No first entry repeats with a different partner
On a graph
No vertical line meets it more than once
Allowed
Many-to-one. Two inputs may share an output
Your Badges
0 of 6Mark lesson as complete
Tick when you've finished Learn, Practice and the Stretch. Earns +85 XP and +25 coins.