Lesson 1 put numbers and expressions into functions without asking whether every input is allowed. Some are not: you can’t divide by zero, for example. This lesson names the allowed inputs and the outputs, and shows why the two matter for inverses.
Domain and range
- The domain is the set of inputs the function accepts.
- The range is the set of outputs it actually gives.
A function must give one output for each input. Two inputs may share an output, as and both go to 4 here.
Finding the domain: three things to avoid
For a function on the real numbers, the domain is every except those that break one of these rules:
- Division by zero. Leave out the values that make a denominator zero.
- Square roots of negatives. What is under must be .
- Logarithms of zero or negatives. What is inside must be .
So a fraction is undefined exactly where its bottom is zero. Factorise the bottom and make each bracket zero.
More: where a function is undefined
Worked example · WAEC 2014
The rule for logs
- A logarithm is defined only for positive numbers.
- So .
Think first. What must be true of the number inside the log?
When is a fraction positive?
- Both positive: and , which means .
- Both negative: and , which means .
- So the domain is .
Think first. The top and bottom must have the same sign. When are both positive? Both negative?
Solve f(y) = 1
- means .
- Multiply by : .
- Take from both sides: .
Think first. Write log₂(…) = 1 without the log.
Check against the domain
- , so is in the domain.
- And ✓.
Finding the range
The range is every value the function actually reaches. Picture the graph, or look at how the rule is built:
- A square is never negative, so is never less than 5. Its range is .
- is at least 1, so is at most . It is always positive, but gets as close to 0 as you like.
Pick a function, then slide into and out of its domain:
The domain of an inverse
The inverse runs the function backwards, so its inputs are the function’s outputs:
Only a function that is one-to-one (each output comes from one input) has a proper inverse. is not: and both give 4, so the inverse can’t know which to return. Questions then either restrict the domain (say, to ) or accept the answer with .
Worked example · WAEC 2022
Two functions and are defined on the set of real numbers, , by and , . Find the domain of .
The composite
- acts first: .
- Replace in : .
Think first. g∘f: f first. What is g(x² + 2)?
Make x the subject
- Write , so .
- Take 4 from both sides: .
- So , and .
Think first. Write y = 1/(x² + 4) and solve for x.
Its domain
- The bottom can’t be zero: .
- What is under the root must be at least 0: .
- Both parts positive: (both negative is impossible).
- So the domain is .
Think first. What must be true for the root to exist?
Check with the range
- , so is at most and always positive.
- The range of is : the same set ✓.
Equations built from functions
When a question sets two functions equal, as in “where do and meet?”, write and solve. A substitution, such as , often turns it into a simple equation.
More: equations with functions
Your turn
WAEC 2023 · Paper 2 · Q9 (a)
Two functions and are defined on the set of real numbers, , by and .
- (a)(i)
Find ;
- (a)(ii)
the values of for which is undefined.
Worked solution (try it first)
(a)(i)
- : replace every in by .
- The top: .
- The bottom:.
- So .