- Practice
- About 15 min
- 5 practice questions
One-one, onto, composition and inverse: exam methods
Prove or disprove one-one and onto quickly, count bijections, compose functions in the correct order and find inverses of linear and fractional functions.
If something looks wrong, please tell us.
These ideas are usually tested together: show that a function is bijective, then find its inverse, or compose two functions and evaluate. The methods are routine once they are set out in order, and the errors are almost always about the order of composition or about which sets are the domain and codomain. This lesson works through the standard question shapes.
Fast tests
- Not one-one: find two inputs with one output. A quadratic on R always fails: f(x) = x² − 4x has f(0) = f(4) = 0.
- One-one: from f(a) = f(b) derive a = b.
- Not onto: name a value in the codomain that is never reached, often found from the range.
- Onto: solve f(x) = y and check that x lies in the domain for every y in the codomain.
- Finite sets of equal size: one-one and onto are the same thing, and there are n × (n − 1) × ... × 1 bijections.
Worked example 1: a fractional function, start to finish
Let f : R − {2} → R − {1}, f(x) = (x + 1)/(x − 2). One-one: if (a + 1)/(a − 2) = (b + 1)/(b − 2), cross-multiply: ab − 2a + b − 2 = ab − 2b + a − 2, so −3a = −3b and a = b. Onto: for y ≠ 1, solving gives x = (2y + 1)/(y − 1), which is a real number different from 2, and f(x) = y. So f is bijective, and the same working gives f⁻¹(x) = (2x + 1)/(x − 1). Check at a point: f(3) = 4/1 = 4 and f⁻¹(4) = 9/3 = 3.
Composition: inner first
(g ∘ f)(x) = g(f(x)), so f acts first. For a number, evaluate inside out; for a formula, put the inner formula in brackets in place of x in the outer one. Expect g ∘ f ≠ f ∘ g. With three functions, (f ∘ g ∘ h)(x) = f(g(h(x))): h acts first and f last.
Worked example 2: two orders
Let f(x) = 2x + 3 and g(x) = x² − 1. Then (g ∘ f)(x) = (2x + 3)² − 1 = 4x² + 12x + 8 and (f ∘ g)(x) = 2(x² − 1) + 3 = 2x² + 1. At x = −1: (g ∘ f)(−1) = g(1) = 0, and (f ∘ g)(−1) = f(0) = 3. Checking one value of each composite is a quick way to catch an order mistake.
Inverses: the routine
Confirm the function is bijective on the stated sets; write y = f(x); solve for x; rename. For linear f(x) = ax + b with a ≠ 0, the inverse is (x − b)/a. For f(x) = (ax + b)/(cx + d) the solving step always works the same way, and the inverse is (−dx + b)/(cx − a). The inverse satisfies f(f⁻¹(x)) = x, so a nested expression such as f⁻¹(f⁻¹(k)) is found by applying the inverse twice from the inside.
Worked example 3: restricting the domain
f(x) = x² on R has no inverse, because it is neither one-one nor onto. Restrict it to f : [0, ∞) → [0, ∞). Now a² = b² with a, b ≥ 0 gives a = b, and every non-negative y equals (√y)². So the restricted function is bijective with f⁻¹(x) = √x. Exam options often give ±√x; the sign is fixed by the restricted domain.
Worked example 4: counting bijections
How many bijections are there from {1, 2, 3, 4} to {a, b, c, d}? Element 1 has 4 choices, 2 has 3, 3 has 2 and 4 has 1, giving 4 × 3 × 2 × 1 = 24. With five elements each the count is 120.
(g ∘ f)(x) = g(f(x)): inner first. The inverse of (ax + b)/(cx + d) is (−dx + b)/(cx − a); always check f(f⁻¹(x)) = x at one value.
Key takeaways
A counter-example settles 'not one-one' or 'not onto'; algebra settles the positive case. Read the domain and codomain before deciding anything, since restricting them can make a function bijective. Compose from the inside out and test one value of each order. Find inverses by solving y = f(x), and verify at a point.
Check your understanding
-
1. f : R → R is given by f(x) = x² − 4x. Which statement is correct?
- f is one-one, because it is a polynomial
- f is bijective
- f is one-one but not onto
- f is not one-one, because f(0) = f(4)
Show answer
Answer: D. f(0) = 0 and f(4) = 16 − 16 = 0, so two inputs share an output and f is not one-one.
-
2. How many bijections are there from {1, 2, 3, 4, 5} to {a, b, c, d, e}?
- 120
- 25
- 3125
- 24
Show answer
Answer: A. 5 × 4 × 3 × 2 × 1 = 120. (5^5 = 3125 counts all functions.)
-
3. f(x) = (x + 3)/(x − 1), x ≠ 1, maps onto R − {1}. What is f⁻¹(x)?
- (x + 3)/(x − 1)
- (x − 1)/(x + 3)
- (x − 3)/(x + 1)
- (x + 1)/(x − 3)
Show answer
Answer: A. y(x − 1) = x + 3 gives x(y − 1) = y + 3, so x = (y + 3)/(y − 1). The function is its own inverse. Check: f(3) = 3 and f(5) = 2, f(2) = 5.
-
4. f(x) = 3x − 2 and g(x) = x² + 1. What is (f ∘ g)(1) − (g ∘ f)(1)?
- 0
- −2
- 2
- 4
Show answer
Answer: C. (f ∘ g)(1) = f(2) = 4 and (g ∘ f)(1) = g(1) = 2, so the difference is 2.
-
5. f : R → R is given by f(x) = 4x + 1. What is f⁻¹(f⁻¹(33))?
- 8
- 533
- 7/4
- 2
Show answer
Answer: C. f⁻¹(x) = (x − 1)/4. f⁻¹(33) = 8, then f⁻¹(8) = 7/4. Check: f(7/4) = 8 and f(8) = 33.
Sign in to keep track of the lessons you finish.