Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Advanced (2026) Introduction to Functions and Relations

Types of Relations

20 practice questions 2 video lessons Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Types of Relations - Video - Types of Relations Watch
  • Types of Relations - Video - Types of Relation | Functions Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A relation is any set of ordered pairs; a function is a relation in which each \(x\)-value is paired with exactly one \(y\)-value. This Year 11 Mathematics Advanced page shows how to decide whether a relation is a function from a list of ordered pairs, a table, an arrow diagram, an equation or a graph, using the vertical line test, and how to split a relation such as \(y^{2}=x+9\) into two functions.

A relation is a set of ordered pairs \((x,y)\). It can be shown as a list such as \(\{(2,3),(4,6),(2,8)\}\), a table of values, an arrow diagram, an equation such as \(x^{2}+y^{2}=36\), or a graph. The domain is the set of first coordinates and the range is the set of second coordinates, each value listed once.

A function is a relation in which each \(x\)-value is paired with exactly one \(y\)-value. Different \(x\)-values may share the same \(y\)-value: \(\{(1,5),(2,5)\}\) is a function. What is not allowed is one \(x\)-value with two different \(y\)-values, like \((2,3)\) and \((2,8)\).

In an arrow diagram, a relation from \(X\) to \(Y\) is a function when every element of \(X\) has exactly one arrow leaving it. In everyday terms, “each person → their year of birth” is a function (everyone has one year of birth), but “each year → the people born in it” is not (a year can have many people).

The vertical line test: a graph represents a function if every vertical line meets it at most once. This works because a vertical line \(x=a\) contains every point with \(x\)-value \(a\). The horizontal line test is not a test for a function.

Arrow diagrams of two relationsLeft: 1 goes to 4, 2 goes to 4 and 3 goes to 6. Each element of X has exactly one arrow, so it is a function. Right: 1 goes to 4, 2 goes to both 5 and 6, and 3 goes to 6. The element 2 has two arrows, so it is not a function. X Y 1 2 3 4 5 6 function X Y 1 2 3 4 5 6 not a function
Left: every element of \(X\) has one arrow, so it is a function (\(1\) and \(2\) sharing \(4\) is allowed). Right: \(2\) has two arrows, so it is not a function.
The vertical line testLeft: the parabola y = x squared minus 2. The vertical line x = 2 meets it once, at (2, 2), and every vertical line meets it at most once, so it is a function. Right: the sideways parabola x = y squared. The vertical line x = 4 meets it twice, at (4, 2) and (4, -2), so it is not a function. x y 2 2 (2, 2) y = x² − 2 x = 2 x y 4 2 −2 (4, 2) (4, −2) x = y² x = 4 passes: functionfails: not a function
Every vertical line meets \(y=x^{2}-2\) at most once: a function. The line \(x=4\) meets \(x=y^{2}\) at \((4,2)\) and \((4,-2)\): not a function.

The definition of a function, in symbols:

\[\text{function: each }x\text{ in the domain}\ \to\ \text{exactly one }y\]
a function pairs each x in the domain with exactly one y
\[\text{vertical line test: every line }x=a\text{ meets the graph at most once}\]
vertical line test: every vertical line x equals a meets the graph at most once

Common relations that are not functions, with an \(x\)-value that gives two \(y\)-values:

RelationGraphTwo \(y\)-values
\(x^{2}+y^{2}=r^{2}\)circle, centre \(O\), radius \(r\)\(x=0\): \(y=\pm r\)
\(x=y^{2}\) or \(y^{2}=x\)parabola opening to the right\(x=4\): \(y=\pm 2\)
\(x=c\)vertical lineevery \(y\) at \(x=c\)

Functions include lines \(y=mx+c\) (and horizontal lines \(y=c\)), parabolas \(y=ax^{2}+bx+c\), cubics, \(y=\sqrt{x}\) and \(y=|x|\).

Splitting a relation into two functions. \(y^{2}=x+9\) gives \(y=\pm\sqrt{x+9}\). The upper half \(y=\sqrt{x+9}\) and the lower half \(y=-\sqrt{x+9}\) each pass the vertical line test. In the same way \(y=\sqrt{36-x^{2}}\) (the upper semicircle) is a function, because a square root sign means the non-negative root, but the full circle \(x^{2}+y^{2}=36\) is not.
Function notation for a set of pairs. If \(f=\{(-2,5),(0,1),(2,5)\}\), then \(f(0)=1\), and \(f(x)=5\) when \(x=-2\) or \(x=2\).

How to decide whether a relation is a function

  1. Ordered pairs or a table: look for a repeated \(x\)-value. If the same \(x\) appears with two different \(y\)-values, it is not a function. Repeated \(y\)-values do not matter.
  2. Arrow diagram: check that every element of the first set has exactly one arrow leaving it.
  3. Equation: make \(y\) the subject where possible. If you get \(\pm\), or \(y^{2}\) on its own, substitute one \(x\)-value (such as \(x=0\)) and show it gives two \(y\)-values.
  4. Graph: apply the vertical line test. Look carefully at endpoints: two closed dots directly above each other fail the test; an open dot is not part of the graph.

Other question types

  1. Write a relation as ordered pairs: substitute each \(x\) in the given domain into the rule.
  2. Number of elements in the domain or range: list the values as a set, each once, then count.
  3. Find the parameter that stops it being a function (Example 4): if all the \(y\)-values are different, the relation fails exactly when two \(x\)-values are equal. Set each pair of \(x\)-values equal and solve.
  4. A vertical line \(x=k\) and a circle \(x^{2}+y^{2}=r^{2}\): substitute \(x=k\) to get \(y^{2}=r^{2}-k^{2}\). There are two points when \(r^{2}-k^{2}\gt 0\), that is \(-r\lt k\lt r\).
Example 1 — Ordered pairs
A relation is given by \(\{(2,1),(3,4),(5,4),(2,6)\}\).
(i) State its domain and range.
(ii) Is the relation a function? Give a reason.
Solution

(i) Domain = set of first coordinates; range = set of second coordinates:

Domain \(=\boldsymbol{\{2,3,5\}}\) (list \(2\) once)
Range \(=\boldsymbol{\{1,4,6\}}\) (list \(4\) once)

(ii) A relation is a function if each \(x\)-value is paired with exactly one \(y\)-value.

Arrow diagram of the relationX = {2, 3, 5} and Y = {1, 4, 6}. 2 goes to 1 and to 6, 3 goes to 4, 5 goes to 4. The element 2 has two arrows. X Y 2 3 5 1 4 6 not a function

The pairs \((2,1)\) and \((2,6)\) have the same \(x\)-value, \(2\), but different \(y\)-values.

\(\therefore\) the relation is not a function. (\(3\) and \(5\) both going to \(4\) is allowed.)

Example 2 — Testing equations
Which of these relations are functions?
(i) \(y=x^{2}-4x\)   (ii) \(x^{2}+y^{2}=36\)   (iii) \(x=y^{2}+2\)
(iv) Write relation (iii) as two separate functions.
Solution

(i) \(y=x^{2}-4x\) gives one \(y\) for each \(x\) (a parabola): a function.

(ii) Substitute \(x=0\):

\(y^{2}\)\(=\)\(36\)
\(y\)\(=\)\(\pm 6\)
y squared equals 36, so y equals plus or minus 6

One \(x\)-value gives two \(y\)-values: not a function.

(iii) Substitute \(x=6\):

\(6\)\(=\)\(y^{2}+2\)
\(y^{2}\)\(=\)\(4\)
\(y\)\(=\)\(\pm 2\)
y squared equals 4, so y equals plus or minus 2

\(x=6\) gives \(y=2\) or \(y=-2\): not a function.

\(\therefore\) only (i) is a function.

(iv) Solve for \(y\):

\(y^{2}\)\(=\)\(x-2\)
\(y\)\(=\)\(\pm\sqrt{x-2}\)
y squared equals x minus 2, so y equals plus or minus root x minus 2

Upper half: \(\boldsymbol{y=\sqrt{x-2}}\); lower half: \(\boldsymbol{y=-\sqrt{x-2}}\). Each passes the vertical line test.

Example 3 — Vertical line test with endpoints
The graph of a relation is shown below.
Graph of a relation made of two segmentsA segment from (0, 0) to (3, 3) and a segment from (3, 1) to (5, 3), with closed dots at all four endpoints. x y 1 2 3 4 5 1 2 3 4 (3, 3) (3, 1) (5, 3)
(i) Explain why the graph does not represent a function.
(ii) Describe one change that would make it a function.
(iii) After your change, state the domain and range.
Solution

(i) Vertical line test: \((3,3)\) and \((3,1)\) are both closed (included) points, so the line \(x=3\) meets the graph twice.

\(\therefore\) \(x=3\) has two \(y\)-values: not a function.

(ii) Change one of these endpoints to an open circle, e.g. exclude \((3,1)\), so \(x=3\) has only the \(y\)-value \(3\).

(iii) The \(x\)-values run from \(0\) to \(5\) with no gaps, and the \(y\)-values from \(0\) (at the origin) up to \(3\).

\(\therefore\) domain \(\boldsymbol{[0,5]}\), range \(\boldsymbol{[0,3]}\)

Example 4 — Finding a parameter
Find all values of \(a\) for which the relation \(\{(a^{2},2),(9,5),(a+6,8)\}\) is not a function.
Solution

The \(y\)-values \(2,5,8\) are all different, so the relation fails when two \(x\)-values are equal:

\(a^{2}=9\): \(a=\pm 3\)
\(a+6=9\): \(a=3\)
Set \(a^{2}=a+6\):

\(a^{2}-a-6\)\(=\)\(0\)
\((a-3)(a+2)\)\(=\)\(0\)
a squared minus a minus 6 equals 0, so a minus 3 times a plus 2 equals 0

so \(a=3\) or \(a=-2\)

\(\therefore\) not a function when \(\boldsymbol{a=-3,\ -2}\) or \(\boldsymbol{3}\).

Check \(a=-2\): the pairs are \((4,2)\), \((9,5)\) and \((4,8)\), and \(x=4\) has two \(y\)-values.

Common pitfalls

Repeated \(y\)-values are fine. \(\{(-1,4),(0,4),(1,4)\}\) is a function (the constant function \(y=4\)). Only a repeated \(x\)-value with different \(y\)-values breaks the rule.
Use vertical lines, not horizontal ones. A horizontal line meeting \(y=x^{2}\) twice does not stop it being a function.
\(y=-2\) is a function but \(x=-2\) is not. \(y=-2\) is a horizontal line that every vertical line meets once. \(x=-2\) is itself a vertical line, so \(x=-2\) is paired with every \(y\)-value, e.g. \((-2,0)\) and \((-2,1)\).
Show a specific \(x\)-value. To prove a relation is not a function, give one \(x\)-value and its two \(y\)-values, e.g. for \(x^{2}+y^{2}=49\), \(x=0\) gives \(y=\pm 7\).
Check open and closed dots. Two endpoints above each other only fail the vertical line test if both are closed.

Frequently asked questions

What is the difference between a relation and a function?

A relation is any set of ordered pairs. A function is a relation in which each \(x\)-value is paired with exactly one \(y\)-value. Every function is a relation, but not every relation is a function.

What is the vertical line test?

A graph represents a function if every vertical line meets it at most once. If some vertical line meets the graph twice, one \(x\)-value has two \(y\)-values, so it is not a function.

Is a circle a function?

No. For \(x^{2}+y^{2}=36\), \(x=0\) gives \(y=6\) and \(y=-6\), so a vertical line meets the circle twice. The upper semicircle \(y=\sqrt{36-x^{2}}\) is a function.

Can two x-values have the same y-value in a function?

Yes. A function may pair different \(x\)-values with the same \(y\)-value, as \(y=x^{2}\) does with \(x=2\) and \(x=-2\). It is one \(x\)-value with two \(y\)-values that is not allowed.

How do you tell if an equation is a function without a graph?

Make \(y\) the subject. If one \(x\)-value can give two \(y\)-values, for example because of a \(\pm\) square root, it is not a function. Show it with a specific \(x\)-value.