A function is a rule that sends every input in its domain to exactly one output. Learn the words examiners use (domain, range, one-one, many-one), read and write notation such as \(f(x) = 2e^{x}\) and \(f : x \mapsto \lg x\), and find the range of a function, including a quadratic on a restricted domain.
A function maps every input in its domain to exactly ONE output. The range is the set of outputs, written in terms of \(f(x)\), e.g. \(f(x) \ge -3\). A function is one-one if each output comes from only one input, and many-one if some output comes from two or more inputs.
Fig. 1: f(x) = (x + 1)² - 6 for -3 ≤ x ≤ 2. The least output is at the vertex inside the domain, not at an end, so the range is -6 ≤ f(x) ≤ 3
Section 01
What makes a function?
A function is a rule that takes each input from a set called the domain and gives exactly ONE output. In the lab, pick a rule and watch the mapping diagram: every arrow starts at an input and ends at a single output. Two inputs may share an output, but one input may never split into two outputs.
Mapping
Example
A function?
one-one
\(x \mapsto 2x + 1\): each output from one input
yes, a one-one function
many-one
\(x \mapsto x^{2}\): \(-3\) and \(3\) both give \(9\)
yes, a many-one function
one-many
\(x \mapsto \pm\sqrt{x}\): \(4\) gives \(2\) and \(-2\)
no
Worked example Function or not, and which type?
For each rule on the given domain, say whether it is a function and, if so, whether it is one-one or many-one. (a) \(x \mapsto 5 - 3x\), \(x \in \mathbb{R}\) (b) \(x \mapsto x^{2} + 1\), \(x \in \mathbb{R}\) (c) \(x \mapsto \pm\sqrt{x}\), \(x \ge 0\)
(a) Each \(x\) gives one value of \(5 - 3x\), and the graph is a straight line that always decreases, so different inputs give different outputs: a one-one function.
(b) Each \(x\) gives one value of \(x^{2} + 1\), but \(x = -2\) and \(x = 2\) both give \(5\): a many-one function.
(c) The input \(4\) gives two outputs, \(2\) and \(-2\), so this rule is not a function.
Answer: (a) one-one function (b) many-one function (c) not a function
Worked example Explain it in words
The function f is defined by \(f : x \mapsto x^{2} - 4x\) for \(x \in \mathbb{R}\). Explain why f is a function, and explain why it is not one-one.
For every real number \(x\), the expression \(x^{2} - 4x\) has exactly one value, so each input has exactly one output: f is a function.
\(f(0) = 0\) and \(f(4) = 16 - 16 = 0\).
Two different inputs give the same output, so f is many-one, not one-one.
Answer: Each \(x\) gives one output, so f is a function; \(f(0) = f(4) = 0\), so it is many-one
Examiner trap
'Function' and 'one-one' are different tests. A function needs each INPUT to have one output; one-one needs each OUTPUT to come from one input. \(x \mapsto x^{2}\) is still a function even though it is many-one.
Section 02
Reading function notation.
The same function can be written \(f(x) = 2e^{x}\) or \(f : x \mapsto 2e^{x}\), read 'f maps \(x\) to \(2e^{x}\)'. The domain is stated alongside, e.g. 'for \(x \in \mathbb{R}\)' (all real numbers) or 'for \(x > 0\)'. Here \(\lg x\) means \(\log_{10} x\) and \(\ln x\) means \(\log_{e} x\). To find \(f(a)\), replace every \(x\) with \(a\).
Worked example Exponential and logarithm
\(f(x) = 2e^{x}\) for \(x \in \mathbb{R}\) and \(g : x \mapsto \lg x\) for \(x > 0\). Find (a) \(f(0)\) (b) \(f(\ln 3)\) (c) \(g(100)\) (d) the value of \(x\) for which \(g(x) = -1\).
\(f(2x)\) is not \(2f(x)\). With \(f(x) = 2e^{x}\), \(f(2x) = 2e^{2x}\) but \(2f(x) = 4e^{x}\). Replace the \(x\) inside the rule; do not multiply the answer.
Stage 1 · Learn
Check your understanding
Four quick checks. Each correct answer earns XP and records this skill on your profile.
Quick check+10 XP
Which of these is a many-one function?
Quick check+10 XP
\(f(x) = 2e^{x}\). Find \(f(\ln 5)\).
Quick check+10 XP
What is the largest possible domain of \(f(x) = \sqrt{x - 3}\)?
Quick check+10 XP
Find the range of \(f(x) = x^{2} - 2\) for \(x \in \mathbb{R}\).
Section 03
Domain and range.
The domain is given in the question, but sometimes you must find the largest domain a rule allows. The range is every output the domain produces. For a quadratic, complete the square to find the vertex, then check whether the vertex lies inside the domain as well as working out the values at the ends (Fig. 1).
The vertex is \((-1, -6)\), and \(x = -1\) lies inside the domain, so the least value is \(-6\).
Ends: \(f(-3) = 4 - 6 = -2\) and \(f(2) = 9 - 6 = 3\). The greater is \(3\).
Answer: \(-6 \le f(x) \le 3\)
Worked example Exponential and logarithm ranges
Find the range of (a) \(f(x) = 2e^{x} + 1\) for \(x \in \mathbb{R}\) (b) \(g : x \mapsto \lg x\) for \(x \ge 10\).
(a) \(e^{x} > 0\), so \(2e^{x} > 0\) and \(2e^{x} + 1 > 1\). As \(x\) increases, \(f(x)\) grows without limit.
The value 1 is never reached, so the inequality is strict.
(b) \(\lg x\) increases with \(x\), and \(g(10) = \lg 10 = 1\), so the outputs start at 1 and keep increasing.
Answer: (a) \(f(x) > 1\) (b) \(g(x) \ge 1\)
Your turn
Find the range of \(f(x) = 3 - 2x\) for \(-1 < x \le 4\).
\(f\) is decreasing: \(f(4) = -5\) is reached, and \(f(-1) = 5\) is not (since \(x = -1\) is excluded). Range: \(-5 \le f(x) < 5\).
Examiner trap
Do not just substitute the ends. For Fig. 1, the ends alone give \(-2 \le f(x) \le 3\) and miss every output from \(-6\) to \(-2\). Always look for a vertex inside the domain, and write the answer with \(f(x)\), not \(x\).
Stage 2 · Exam
Exam-style questions
Unlocks once the four checks above are done. Worth more XP, written to IGCSE Additional Mathematics Paper 1 and Paper 2 standard.
Finish the four checks above to unlock the exam questions
Exam style+20 XP
Find the range of \(f(x) = x^{2} - 8x + 10\) for \(1 \le x \le 6\).
Exam style+20 XP
The function f is defined by \(f : x \mapsto \lg(2x + 4)\). State the largest possible domain of f.
Exam style+20 XP
The function f is defined by \(f(x) = 3e^{x} - 2\) for \(x \in \mathbb{R}\). State the range of f.
Exam style+20 XP
The function f is defined by \(f(x) = (x - 2)^{2} + 1\) for \(0 \le x \le 5\). Which statement is true?
Skill unlocked
Functions, domains and ranges, done.
This skill is now recorded on your profile. Keep the chain going.