Chapter 1 Relations and Functions
Practice questions
A linear function f(x) = mx + c satisfies f(1) = 5 and f(3) = 11. What is f(−2)?
- 4
- −4
- −8
- 8
Answer and explanation
Answer: B
m + c = 5 and 3m + c = 11. Subtracting, 2m = 6, so m = 3 and c = 2. Then f(−2) = 3(−2) + 2 = −6 + 2 = −4.
If f(x) = x − 4 and g(x) = x², what is (g∘f)(x) − (f∘g)(x)?
- −8x + 20
- 8x − 20
- −8x + 12
- 0
Answer and explanation
Answer: A
(g∘f)(x) = (x − 4)² = x² − 8x + 16. (f∘g)(x) = x² − 4. Difference: x² − 8x + 16 − x² + 4 = −8x + 20. It is not 0, which shows again that composition is not commutative.
f(x) = 2x + 1 and g(x) = x − 3. For which x is g(f(f(x))) = f(g(g(x)))?
- 11/2
- −11
- 3
- −11/2
Answer and explanation
Answer: D
f(f(x)) = 2(2x + 1) + 1 = 4x + 3, so g(f(f(x))) = 4x + 3 − 3 = 4x. g(g(x)) = x − 6, so f(g(g(x))) = 2(x − 6) + 1 = 2x − 11. Then 4x = 2x − 11 gives 2x = −11 and x = −11/2.
f(x) = x² + 1 for x ≤ 0; f(x) = 3x − 2 for 0 < x < 4; f(x) = 20 − x for x ≥ 4. What is [f(−3) + f(4)] ÷ f(2)?
- 6
- 7
- 13/2
- 26
Answer and explanation
Answer: C
−3 ≤ 0, so f(−3) = 9 + 1 = 10. 4 ≥ 4, so f(4) = 20 − 4 = 16. 2 is in 0 < x < 4, so f(2) = 6 − 2 = 4. Then (10 + 16) ÷ 4 = 26/4 = 13/2.
Which function from ℝ to ℝ is a bijection?
- f(x) = x²
- f(x) = |x|
- f(x) = 5
- f(x) = 7 − 2x
Answer and explanation
Answer: D
7 − 2a = 7 − 2b gives a = b, so f(x) = 7 − 2x is one-one; for any y, x = (7 − y)/2 gives f(x) = y, so it is onto. x² and |x| give the same value for x and −x, and the constant 5 has a one-element range.
A = {−1, 0, 1, 2} and f : A → B is onto, with f(x) = x² − 1. What is B?
- {−1, 0, 3}
- {0, 1, 3}
- {−1, 0, 1, 3}
- {−2, −1, 0, 3}
Answer and explanation
Answer: A
f(−1) = 0, f(0) = −1, f(1) = 0, f(2) = 3. For an onto function the co-domain equals the range, so B = {−1, 0, 3}. Since f(−1) = f(1), f is also many-one.
How many functions are there from a set with 3 elements to a set with 4 elements?
- 12
- 81
- 64
- 7
Answer and explanation
Answer: C
Each of the 3 elements of the domain has 4 choices of image, so there are 4 × 4 × 4 = 4³ = 64 functions. (81 = 3⁴ counts functions the other way round.)
What is the domain of f(x) = (x + 1)/(x² − 9)?
- ℝ − {3}
- ℝ − {−1}
- ℝ − {9}
- ℝ − {−3, 3}
Answer and explanation
Answer: D
The denominator x² − 9 = (x − 3)(x + 3) is zero at x = 3 and x = −3, so both must be removed: the domain is ℝ − {−3, 3}. The numerator being zero at −1 does no harm.
If f(x) = x² − 2x, what is f(a + 1) − f(a − 1)?
- 4a
- 4a − 4
- 2a − 2
- 0
Answer and explanation
Answer: B
f(a + 1) = (a + 1)² − 2(a + 1) = a² + 2a + 1 − 2a − 2 = a² − 1. f(a − 1) = (a − 1)² − 2(a − 1) = a² − 2a + 1 − 2a + 2 = a² − 4a + 3. Difference: (a² − 1) − (a² − 4a + 3) = 4a − 4.
A = {1, 2} and B = {3, 4, 5}. Which relation from A to B has domain {1} and range {3, 5}?
- {(1, 3), (2, 5)}
- {(3, 1), (5, 1)}
- {(1, 3), (1, 5)}
- {(1, 3), (1, 4), (1, 5)}
Answer and explanation
Answer: C
{(1, 3), (1, 5)} uses only the first coordinate 1 (domain {1}) and the second coordinates 3 and 5 (range {3, 5}). The first set has domain {1, 2}, the second is not a subset of A × B, and the last has range {3, 4, 5}.
R = {(x, y) | y = x², x ∈ {−2, −1, 0, 1, 2}}. What is the range of R?
- {0, 1, 4}
- {−2, −1, 0, 1, 2}
- {0, 1, 2, 4}
- {1, 4}
Answer and explanation
Answer: A
The squares are 4, 1, 0, 1, 4. Writing each value once, the range is {0, 1, 4}. The set {−2, −1, 0, 1, 2} is the domain.
If n(A) = 2 and n(B) = 3, how many non-empty relations are there from A to B?
- 64
- 6
- 9
- 63
Answer and explanation
Answer: D
n(A × B) = 6, so there are 2⁶ = 64 relations. Removing the null relation leaves 64 − 1 = 63 non-empty relations.
If (x² − 3x, y + 2x) = (4, 1), which gives all possible values of (x, y)?
- (4, 9) or (−1, −1)
- (4, −7) only
- (4, −7) or (−1, 3)
- (−4, 9) or (1, −1)
Answer and explanation
Answer: C
x² − 3x = 4 gives x² − 3x − 4 = 0, (x − 4)(x + 1) = 0, so x = 4 or x = −1. Then y = 1 − 2x: for x = 4, y = −7; for x = −1, y = 3. So (4, −7) or (−1, 3).
A = {1, 2}, B = {2, 3, 4} and C = {4, 5}. What is n((A ∪ C) × B)?
- 12
- 6
- 15
- 9
Answer and explanation
Answer: A
A ∪ C = {1, 2, 4, 5} has 4 elements and B has 3, so n((A ∪ C) × B) = 4 × 3 = 12.
A × A has 9 elements, and two of them are (3, 5) and (5, 7). What is A?
- {3, 5}
- {3, 5, 7}
- {5, 7}
- {3, 7}
Answer and explanation
Answer: B
n(A × A) = n(A)² = 9, so A has 3 elements. The coordinates of the given pairs show that 3, 5 and 7 are all in A, so A = {3, 5, 7}.
Which function from ℝ to ℝ is NOT one-one?
- f(x) = x³
- f(x) = x²
- f(x) = 3x − 2
- f(x) = x
Answer and explanation
Answer: B
f(x) = x² gives f(3) = f(−3) = 9, so two inputs share an output and it is many-one; its graph fails the horizontal line test. The cubic x³, the linear 3x − 2 and the identity x are all one-one.
Which describes the graph of f(x) = −x² on ℝ?
- A straight line through the origin
- A V shape opening upward
- A parabola opening downward with range (−∞, 0]
- Two branches in the first and third quadrants
Answer and explanation
Answer: C
−x² is a quadratic function, so its graph is a parabola. Since −x² ≤ 0 for every x, it opens downward and its range is (−∞, 0].
If f(x) = 2x − 3, what is f(f(2))?
- 1
- 5
- −5
- −1
Answer and explanation
Answer: D
Work from the inside: f(2) = 2 × 2 − 3 = 1. Then f(1) = 2 × 1 − 3 = −1. So f(f(2)) = −1.
If f(x) = 2x + 3, g(x) = 3x + k and f∘g = g∘f, what is k?
- 6
- 3
- −6
- 9
Answer and explanation
Answer: A
(f∘g)(x) = 2(3x + k) + 3 = 6x + 2k + 3. (g∘f)(x) = 3(2x + 3) + k = 6x + 9 + k. So 2k + 3 = 9 + k, giving k = 6.
If f(x) = x² and g(x) = x + 4, what is (f∘g)(x)?
- x² + 4
- x² + 8x + 16
- x² + 16
- 4x²
Answer and explanation
Answer: B
(f∘g)(x) = f(g(x)) = f(x + 4) = (x + 4)² = x² + 8x + 16. Note x² + 4 is (g∘f)(x), which is different.