To prove a function is onto, you must demonstrate that every element in the codomain has at least one pre‑image in the domain. This property, known as surjectivity, is a cornerstone of set theory and function analysis, and mastering the proof technique unlocks deeper insight into how functions behave across different mathematical structures. In this guide we will walk through the definition, outline a reliable step‑by‑step strategy, illustrate the method with concrete examples, and address common misconceptions that often trip up learners.
No fluff here — just what actually works.
Understanding the Definition of Onto (Surjective)
A function (f: A \rightarrow B) is called onto (or surjective) if for every (b \in B) there exists at least one (a \in A) such that (f(a) = b). In symbolic form:
[ \forall b \in B,; \exists a \in A ; \text{with} ; f(a)=b. ]
Key terms to remember:
- Domain ((A)): the set of all permissible inputs.
- Codomain ((B)): the set of all possible outputs declared by the function.
- Range (or image): the actual set of values that the function attains; it is always a subset of the codomain.
- Pre‑image: any element of the domain that maps to a given codomain element.
When the range equals the codomain, the function is onto. If the range is strictly smaller, the function fails to be surjective Nothing fancy..
General Strategy to Prove Onto
The core of proving surjectivity lies in solving the equation (f(a)=b) for (a) in terms of an arbitrary (b) from the codomain. The steps below form a universal checklist that can be adapted to virtually any type of function.
- Identify the codomain explicitly. Do not assume it is the set of all real numbers unless the problem states so.
- Take an arbitrary element (b) from the codomain. The word “arbitrary” signals that the proof must work for any (b), not just a specific one.
- Set up the equation (f(a)=b) and solve for (a) in terms of (b).
- Show that the solution (a) belongs to the domain. Verify any restrictions (e.g., no division by zero, no taking square roots of negatives) are satisfied.
- Conclude existence: since you have produced a valid (a) for an arbitrary (b), the definition is satisfied, and the function is onto.
If any step fails—particularly step 4—then the function is not onto, and you may need to adjust the codomain or provide a counterexample The details matter here..
Step‑by‑Step Checklist
- Step 1: Write down the function’s formula and its declared codomain.
- Step 2: Choose a generic (b \in) codomain.
- Step 3: Solve (f(a)=b) for (a).
- Step 4: Check that the solved (a) lies within the domain (respect any implicit constraints).
- Step 5: Conclude that every (b) has a pre‑image, therefore the function is onto.
Worked Examples
Example 1: Linear Function
Consider (f: \mathbb{R} \rightarrow \mathbb{R}) defined by (f(x)=3x+2). To prove that (f) is onto:
- Let (b) be an arbitrary real number.
- Solve (3x+2 = b) → (x = \frac{b-2}{3}).
- Since (\frac{b-2}{3}) is a real number for any real (b), it belongs to the domain (\mathbb{R}).
- So, for every (b) there exists an (x) such that (f(x)=b). Hence, (f) is onto.
Example 2: Quadratic Function with Restricted DomainLet (g: [0,\infty) \rightarrow [0,\infty)) be defined by (g(x)=x^{2}). To test surjectivity:
- Take an arbitrary (b \in [0,\infty)).
- Solve (x^{2}=b) → (x = \sqrt{b}) (the non‑negative root).
- Because (\sqrt{b}) is defined for all (b \ge 0) and lies in ([0,\infty)), it is a valid pre‑image.
- Thus, every non‑negative (b) is attained, and (g) is onto.
Note: If the codomain were (\mathbb{R}) instead of ([0,\infty)), the function would not be onto, since negative numbers have no real square root.
Example 3: Piecewise Function
Define (h: \mathbb{R} \rightarrow \mathbb{R}) by[ h(x)= \begin{cases} x+1 & \text{if } x \le 0,\ 2x-1 & \text{if } x > 0. \end{cases} ]
To prove (h) is onto:
- Let (b) be any real number.
- Consider two cases:
- If (b \le 1), choose (x = b-1 \le 0); then (h(x)= (b-1)+1 = b).
- If (b > 1), choose (x = \frac{b+1}{2} > 0); then (h(x)=2\left(\frac{b+1}{2}\right)-1 = b).
- In both scenarios, the selected (x) lies in the appropriate sub‑domain, providing a pre‑image for every (b).
- This means (h) is onto.
Common Mistakes and How to Avoid Them
- Assuming the codomain without verification. Always read the problem statement; the cod
Common Mistakes and How to Avoid Them
- Assuming the codomain without verification. Always read the problem statement; the codomain defines the target set. If it’s too broad (e.g., (\mathbb{R}) for (g(x) = x^2)), surjectivity fails for values outside the function’s range.
- Ignoring domain constraints. Solutions for (a) must lie within the declared domain. For (g(x) = x^2) with domain ([-2, 2]), (b = 5) has no pre-image since (\sqrt{5} \notin [-2, 2]).
- Overlooking algebraic restrictions. When solving (f(a) = b), ensure no operations violate mathematical rules (e.g., division by zero, logarithms of non-positive numbers).
- Concluding too hastily. A single valid (a) doesn’t prove surjectivity; every (b) in the codomain must have a pre-image.
Conclusion
Proving a function is onto (surjective) hinges on systematically verifying that every element in the codomain maps back to at least one element in the domain. This requires: (1) clearly defining the function and its codomain, (2) solving (f(a) = b) for an arbitrary (b) in the codomain, (3) ensuring the solution (a) lies within the domain while respecting all mathematical constraints, and (4) confirming no exceptions exist. The examples illustrate that surjectivity is not inherent to the function alone but depends critically on the interplay between the function’s rule, its domain, and its codomain. By rigorously applying the step-by-step method and avoiding common pitfalls, one can conclusively determine whether a function achieves complete coverage of its codomain or identify where adjustments—such as restricting the codomain to the function’s range—are necessary. This process underscores the precision required in mathematical proofs, where definitions and domains are foundational to validity.