IB Mathematics: Applications and Interpretation · Topic 2 · Functions
2.2 Functions, domain and range
Define a function, use function notation, and decide from a graph or a set of values whether a relation is a function.
1/5A function gives exactly one output for each input
- A function gives exactly one output for each input
- Function notation names the rule and the input
- Domain and range describe allowed inputs and possible outputs
- A vertical line test shows whether a graph is a function
- Lists of pairs also reveal whether a relation is a function
- Check your recall
- Practice: 10 questions
Part 1 of 5: A function gives exactly one output for each input
A vending machine gives one item for each code you press. The same code never gives two different items. This reliable link between inputs and outputs is the idea behind a function.
A relation is any set of pairs linking inputs to outputs. It becomes a function when no input is paired with two different outputs. Several inputs may share one output.
Inputs are usually called and outputs are usually called . A graph, a table or an equation can show the pairs.
Key terms · tap one for its definition
function
A function assigns exactly one output to each input in its domain.
relation
A relation is a set of ordered pairs that links each input to one or more outputs.
Part 2 of 5: Function notation names the rule and the input
Now that a function is a rule, it needs a short name.
We name a function with a letter, such as . The symbol means the output of when the input is . This is function notation, and it is read “f of x”.
The bracket holds the input. It does not mean multiplication. To find , replace every in the rule with 3.
Other letters work too. A cost function might be , where is the number of items bought.
Worked example
Evaluating a function
- Substitute 3 for : .
- Simplify: .
- Substitute -2 for : .
- Simplify: .
Answer: and .
Key term
function notation
Function notation writes for the output of the function when the input is .

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: A · Worked explanation
Part 3 of 5: Domain and range describe allowed inputs and possible outputs
A rule may not accept every number, so we must say which inputs are allowed. The set of allowed inputs is the domain. The set of outputs that actually occur is the range.
Some rules restrict the domain. You cannot divide by zero, and you cannot take the square root of a negative number. Context can restrict it too, because a number of tickets must be whole.
Domain and range of three rules
- Rule
- Domain
- all real numbers
- Range
- Rule
- Domain
- Range
- Rule
- Domain
- Range
To find the range, ask which outputs can be reached. A square is never negative, so gives only zero or positive outputs.
Key terms · tap one for its definition
domain
A function’s domain is the set of inputs where the function is defined.
range
A function’s range is the set of outputs that the function produces from its domain.
Part 4 of 5: A vertical line test shows whether a graph is a function
Often a relation is given as a graph rather than a rule. Each input is a position on the horizontal axis. A function allows only one output at that position, so a vertical line should cross the graph at most once.
This is the vertical line test. Imagine sweeping a vertical line across the graph. If it ever meets the graph twice, the relation is not a function.
A circle fails the test. The line meets it at two points, so the input 1 has two outputs.
Key term
vertical line test
The vertical line test states that a graph shows a function only if every vertical line meets it at most once.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: B · Worked explanation
Part 5 of 5: Lists of pairs also reveal whether a relation is a function
Not every relation comes as a graph. A list of pairs is a function when no input appears with two different outputs. Check each input in turn, and look for any input that repeats.
The inputs listed form the domain, and the outputs form the range. List each value once. A mapping diagram draws the pairs as arrows, and a function has exactly one arrow leaving each input.
Worked example
Testing sets of pairs
- In set A, the inputs 1, 2 and 3 each appear once.
- So set A is a function, even though the output 4 repeats.
- The domain of A is and the range is .
- In set B, the input 1 appears with outputs 4 and 6.
- So set B is not a function.
Answer: Set A is a function with domain and range . Set B is not a function.
Be careful with the range. It contains only outputs that really occur, not every number the rule might give.
Check your recall[14 marks]
6 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Define[2 marks]
Define the term function.
Show mark schemeHide mark scheme
Model answer
A function assigns exactly one output to each input in its domain.
- 1 mark for stating that each input is assigned exactly one output
- 1 mark for referring to the inputs belonging to the domain
- 2.Write down[2 marks]
Write down the domain and the range of .
Show mark schemeHide mark scheme
Model answer
The domain is and the range is .
- 1 mark for stating the domain as
- 1 mark for stating the range as
- 3.Calculate[2 marks]
Given , calculate .
Show mark schemeHide mark scheme
Model answer
.
- 1 mark for substituting -2 to give
- 1 mark for obtaining 8
- 4.Explain[2 marks]
Explain why the set of pairs is not a function.
Show mark schemeHide mark scheme
Model answer
The input 1 is paired with two different outputs, 5 and 9. A function allows only one output for each input.
- 1 mark for identifying that input 1 has outputs 5 and 9
- 1 mark for stating that a function allows only one output for each input
- 5.Describe[4 marks]
Describe how the vertical line test shows that a graph is not a function.
Show mark schemeHide mark scheme
Model answer
Draw a vertical line, or imagine one, at each position along the horizontal axis. Count the points where it meets the graph. If any vertical line meets the graph more than once, one input has several outputs. The graph is then not a function.
- 1 mark for drawing or imagining vertical lines
- 1 mark for considering positions along the horizontal axis
- 1 mark for counting where each line meets the graph
- 1 mark for concluding that more than one meeting point means it is not a function
- 6.Determine[2 marks]
Determine the domain of .
Show mark schemeHide mark scheme
Model answer
Division by zero is not allowed, so . The domain is all real numbers except .
- 1 mark for recognising that the denominator cannot be zero
- 1 mark for stating

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyState[1 mark]
Show answer and explanation
Answer: B · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: B · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: C · Worked explanation
Medium[1 mark]
Show answer and explanation
Answer: B · Worked explanation
MediumCalculate[2 marks]
Show answer and explanation
Answer: A · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: C · Worked explanation
HardDeduce[2 marks]
Show answer and explanation
Answer: B · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: D · Worked explanation