Functions
Practice questions
What is the range of f(x) = x² − 2x on the interval [−1, 3]?
- [−1, 0]
- [−1, 3]
- [0, 3]
- [−1, 1]
Answer and explanation
Answer: B
f(x) = (x − 1)² − 1 has its minimum −1 at x = 1. At the ends, f(−1) = 3 and f(3) = 3. So the range is [−1, 3].
f(x) = ax + b satisfies f(f(x)) = x for all x, and f is not the identity function. What must hold?
- a = 1 and b = 0, and nothing else
- a = −1 and b = 0, and nothing else
- a = 1 and b can be any real number
- a = −1 and b can be any real number
Answer and explanation
Answer: D
f(f(x)) = a²x + ab + b = x requires a² = 1 and b(a + 1) = 0. If a = 1 then b = 0 and f is the identity. So a = −1, and b is unrestricted.
How many onto functions are there from {1, 2, 3, 4} to {1, 2, 3}?
- 81
- 36
- 24
- 18
Answer and explanation
Answer: B
3⁴ − 3 × 2⁴ + 3 = 81 − 48 + 3 = 36.
For which k is √(x² − kx + 9) defined for every real x?
- k ≥ 6
- −3 ≤ k ≤ 3
- −6 ≤ k ≤ 6
- k ≤ −6 or k ≥ 6
Answer and explanation
Answer: C
We need x² − kx + 9 ≥ 0 for all x, so the discriminant k² − 36 must be at most 0. That gives −6 ≤ k ≤ 6.
For which values of k is f(x) = x² − 2kx + 3 one-one on [2, ∞)?
- k ≤ 2
- k ≥ 2
- k ≤ −2
- k ≥ −2
Answer and explanation
Answer: A
The vertex is at x = k. On [2, ∞) the function is one-one only if the vertex is at or to the left of 2, so k ≤ 2.
Let f(x) = |x| and g(x) = x² − 4. What is the range of f ∘ g?
- [−4, ∞)
- (0, ∞)
- [0, ∞)
- [4, ∞)
Answer and explanation
Answer: C
(f ∘ g)(x) = |x² − 4|, which is never negative and equals 0 at x = ±2. Large x give large values, so the range is [0, ∞).
Let f(x) = |x| and g(x) = x − 3. What is (g ∘ f)(−2)?
- −1
- 5
- −5
- 1
Answer and explanation
Answer: A
f(−2) = 2 and g(2) = 2 − 3 = −1. The value 5 belongs to (f ∘ g)(−2) = |−5|.
What is [(−1.5)²], the greatest integer of the square of −1.5?
- 4
- −2
- 2
- 3
Answer and explanation
Answer: C
(−1.5)² = 2.25, and the greatest integer not exceeding 2.25 is 2.
With the same f and g, what is (g ∘ f)(2)?
- 5
- 9
- 4
- 3
Answer and explanation
Answer: B
f(2) = 2 + 1 = 3 (since 2 ≥ 1), and g(3) = 9.
Let f(x) = 2x for x < 1 and f(x) = x + 1 for x ≥ 1, and g(x) = x². What is (f ∘ g)(−3)?
- 36
- −6
- 9
- 10
Answer and explanation
Answer: D
g(−3) = 9, and since 9 ≥ 1 we use x + 1, so f(9) = 10. The value 36 is g(f(−3)).
How many real solutions does x² − 3|x| + 2 = 0 have?
- 4
- 2
- 3
- 6
Answer and explanation
Answer: A
With u = |x|, u² − 3u + 2 = 0 gives u = 1 or 2. Each positive u gives two values of x: ±1 and ±2. That is 4 solutions.
What is the range of f(x) = sgn(x² − 4)?
- {−1, 1}
- {−1, 0, 1}
- {0, 1}
- R
Answer and explanation
Answer: B
x² − 4 is positive for |x| > 2, zero at x = ±2 and negative for |x| < 2, so sgn takes the values 1, 0 and −1.
What are the solutions of |x − 1| + |x − 3| = 6?
- x = 1 and x = 3
- x = −2 and x = 6
- x = 0 and x = 4
- x = −1 and x = 5
Answer and explanation
Answer: D
For x > 3: 2x − 4 = 6 gives x = 5. For x < 1: 4 − 2x = 6 gives x = −1. Both lie in their regions.
What is the solution of |2x − 3| < 5?
- −1 < x < 4
- x < −1 or x > 4
- −4 < x < 1
- x < 4
Answer and explanation
Answer: A
|2x − 3| < 5 means −5 < 2x − 3 < 5. Adding 3 gives −2 < 2x < 8, so −1 < x < 4.
What is the minimum value of |x − 1| + |x − 3|?
- 0
- 1
- 2
- 4
Answer and explanation
Answer: C
The sum is the total distance from x to 1 and to 3, which is at least the distance between 1 and 3, namely 2, and equals 2 for every x in [1, 3].
If f(x − 1/x) = x² + 1/x² for x ≠ 0, what is f(0)?
- −2
- 0
- 4
- 2
Answer and explanation
Answer: D
x² + 1/x² = (x − 1/x)² + 2, so f(t) = t² + 2 and f(0) = 2. Check: x = 1 gives x − 1/x = 0 and x² + 1/x² = 2.
If f(2x − 1) = 6x + 2, what is f(3)?
- 20
- 8
- 14
- 12
Answer and explanation
Answer: C
Put 2x − 1 = 3, so x = 2. Then f(3) = 6(2) + 2 = 14.
If f(x) = (x + 1)/(x − 1) for x ≠ 1, what is f(f(5))?
- 5
- 3/2
- 1
- 3
Answer and explanation
Answer: A
f(f(x)) = x for this function, so f(f(5)) = 5. Directly: f(5) = 6/4 = 3/2 and f(3/2) = (5/2)/(1/2) = 5.
A linear function f(x) = ax + b with a > 0 satisfies f(f(x)) = 4x + 3. What is f(2)?
- 7
- 4
- 9
- 5
Answer and explanation
Answer: D
a² = 4 with a > 0 gives a = 2, and ab + b = 3b = 3 gives b = 1. So f(x) = 2x + 1 and f(2) = 5.
If f(x + 1/x) = x² + 1/x² for x ≠ 0, what is f(3)?
- 9
- 7
- 11
- 3
Answer and explanation
Answer: B
Since x² + 1/x² = (x + 1/x)² − 2, we have f(t) = t² − 2. Then f(3) = 9 − 2 = 7.