CSEC Mathematics · relations, functions and graphs
Distinguishing Relations and Functions
Before you start
A relation is simply any connection between a set of inputs (the domain) and a set of outputs (the range). You have already seen relations written as ordered pairs (x,y), shown on arrow diagrams, and plotted on Cartesian graphs.
Builds on: Representing Relations, Characteristics of Functions
1. The Core Rule: Each Input Gets Exactly One Output
Every function is a relation, but not every relation is a function. Think of a vending machine at a school canteen in Kingston: when you press button B3, you expect exactly one specific drink to drop down. If pressing B3 sometimes gave you a ginger beer and sometimes gave you a bottle of water, the machine would be malfunctioning.
In mathematics, a relation is a function if and only if each input in the domain is paired with exactly one output in the range.
When examining a list of ordered pairs (x,y):
- Look strictly at the first coordinates (the x-values).
- If every x-value appears only once, the relation is a function.
- If any x-value appears more than once paired with different y-values, the relation is not a function.
Worked example
State, with a reason, whether each of the following relations represents a function:
(a) S={(1,4),(2,7),(3,7),(4,10)}
(b) T={(5,2),(6,3),(5,8),(7,4)}
- Check the domain (x-values) of S: the inputs are 1, 2, 3, and 4. Each input appears exactly once and points to a single output. (It does not matter that both 2 and 3 produce 7).
- Conclusion for S: S is a function.
- Check the domain (x-values) of T: the input 5 appears twice, paired once with 2 and once with 8.
- Conclusion for T: T is not a function because the single input 5 produces two different outputs.
Answer: S is a function because each input has exactly one output. T is not a function because the input 5 has two different outputs (2 and 8).
Quick check
Which of the following relations is a function?
2. Classifying Mappings (Arrow Diagrams)
When relations are drawn as mapping diagrams with arrows going from the domain to the range, we can classify them into four types:
- One-to-one: Each input points to a distinct output. (This is a function.)
- Many-to-one: Two or more inputs point to the same output. (This is a function, because each individual input still has only one arrow leaving it.)
- One-to-many: A single input points to two or more outputs. (This is not a function.)
- Many-to-many: Multiple inputs share outputs, and at least one input has multiple outputs. (This is not a function.)
To test a mapping diagram quickly, count the arrows leaving each element in the domain (the left bubble). If every element has exactly one arrow leaving it, the mapping is a function.
Worked example
A relation maps students in a class to their grades on a CSEC test: {Amir → Grade I, Bianca → Grade II, Chris → Grade I, Devon → Grade III}.
(a) State whether this mapping is one-to-one, many-to-one, or one-to-many.
(b) Is this relation a function? Explain your answer.
- Examine the outputs: Amir and Chris both receive Grade I. This means multiple inputs share the same output.
- Check the number of arrows per input: each student receives only one grade, so each input has exactly one arrow.
- Identify the mapping type: since two inputs share an output, it is many-to-one.
- Apply the definition: a many-to-one mapping has exactly one output for each input, so it is a function.
Answer: (a) The mapping is many-to-one. (b) Yes, it is a function because every student (input) is assigned exactly one grade (output).
Quick check
Which type of mapping is NEVER a function?
3. The Vertical Line Test
When a relation is shown on a Cartesian graph, you can test whether it is a function using the vertical line test.
Imagine sliding a vertical line (a line parallel to the y-axis) across the graph from left to right:
- If every vertical line cuts the curve at most once, the relation is a function.
- If any vertical line cuts the curve more than once, the relation is not a function.
Why does this work? A vertical line represents a single constant x-value (for instance, the line x=2). If that line crosses the curve at two points, say (2,1) and (2,−3), then that single input x=2 corresponds to two different outputs. That makes the relation one-to-many, so it cannot be a function.
Worked example
Determine whether the relation shown by the equation x=y2 is a function, using the vertical line test.
- Choose a positive value of x, for example x = 4.
- Solve for y: if 4 = y^2, then y = 2 or y = −2.
- Notice that the points (4, 2) and (4, −2) both lie on the graph.
- A vertical line drawn at x = 4 intersects the graph at two distinct points, (4, 2) and (4, −2).
- Apply the rule: since the vertical line cuts the graph more than once, it fails the test.
Answer: The relation x=y2 is not a function because the vertical line x=4 intersects the graph at two points, (4,2) and (4,−2).
Quick check
A student draws a circle with equation x² + y² = 25 on graph paper. Is this circle a function?
Common mistakes
- [object Object]
- [object Object]
- [object Object]
In the exam
- When justifying why a relation is NOT a function on Paper 2, always quote the exact violating input: for example, write 'The input x=3 maps to two different outputs, 5 and 7.'
- In arrow diagrams, count the arrows leaving each element in the domain. Exactly 1 arrow per domain element means it is a function.
- Be precise with terminology: write 'one-to-many relation' or 'many-to-one function' rather than vague descriptions like 'it goes to two things'.
Key terms
- Relation
- Any set of ordered pairs or mapping between two sets (a domain and a range).
- Function
- A relation where each input in the domain is paired with exactly one output in the range.
- One-to-one mapping
- A mapping where each element of the domain maps to a unique, distinct element of the range.
- Many-to-one mapping
- A mapping where two or more elements of the domain map to the same element of the range; this is a function.
- One-to-many mapping
- A mapping where a single element of the domain maps to multiple elements of the range; this is NOT a function.
- Vertical line test
- A visual test where a graph represents a function if and only if no vertical line intersects the curve at more than one point.
Practice
Easier to harder. Use paper for your working.
Practice 1
Given the relation P={(a,3),(b,3),(c,3),(d,3)}, where a,b,c,d are distinct values, which statement is true?
Practice 2
A relation is defined by the set of pairs: R={(2,9),(k,15),(7,11),(2,2k+1)}. Find the value of k that makes R a function.
Practice 3
Consider the graphs of the following four relations:
I. y=3x−5
II. y=x2−4
III. x=3
IV. y=√x (for x≥0)
Which of these graphs FAILS the vertical line test?
Finished the lesson?
0 of 6 checks right on this device.
Read more
- CSEC Maths Study Guide - Maths Crash Course, p. 180
- Mathematics for CSEC, p. 317
- Collins - Concise Revision Course for CSEC Mathematics, p. 344
- algebra-and-trigonometry-2e_-_WEB, p. 204