Exercise 1.2 · Q10: from to
Let and . Consider the function defined by Is one-one and onto? Justify your answer.
One-one: Let with . Then
Expanding and cancelling on both sides,
Thus is one-one.
Onto: Let , so . Put :
Here , since gives , which is false. So . Also and , so . Thus is onto.
Yes, is one-one and onto.
Want the reason behind every step, the basics and the checks?
The two excluded numbers are not arbitrary. is removed from the domain because it makes the denominator zero. is removed from the codomain because can never equal 1: the top and the bottom always differ by exactly 1, so they are never equal. A useful way to see everything is to rewrite The term is never 0, so ; and solving gives exactly one for each . So is both one-one and onto.
- Given
- with domain (all reals except 3) and codomain (all reals except 1).
- To find
- Whether is one-one and whether it is onto, with justification.
- Plan
- (1) Check is defined on all of and never takes the value 1, so it really maps into . (2) One-one: assume , cross-multiply, and deduce . (3) Onto: for an arbitrary , solve ; show the solution is in and check it. (4) Explain why has no preimage, so the codomain must exclude it. (5) Conclude.
Basics you need
means every real number except 3. For to make sense, must be defined for every and must land in . Basics: what a function is
If and , then . It is only valid because the denominators are non-zero.
One-one: (Definition 5). Onto: for every there is with (Definition 6). When proving onto, the you find must lie in the domain . Basics: one-one and onto
To show an equation has no solution, assume it has one and derive something false, such as . Basics: proving and disproving
Solution
is defined on all of and never equals 1
Defined on : for we have , so the denominator , and is a real number.
Never equal to 1: suppose some had . Multiplying both sides by (non-zero):
which is false. So for every , and really maps into .
The same fact in one line: , and a fraction with numerator 1 is never 0.
The question declares the codomain to be . That is only legitimate if no output equals 1, so we prove it. The contradiction argument covers every at once: whatever is, and differ by 1, so they cannot be equal. This step also explains, before we even start, why the question removed 1 from .To show an equation has no solution, assume a solution and reach a false statement (Basic 4). Multiplying both sides by a non-zero quantity keeps an equation equivalent.One-one: cross-multiply and simplify
Let with :
Both denominators are non-zero (since ), so we may cross-multiply:
So is one-one.
Cross-multiplying clears the fractions so we can compare polynomials. It is legal only because and are non-zero, which is guaranteed by . After expanding, the product and the constant 6 appear on both sides and cancel, leaving a linear equation whose only solution is . The form gives a quicker check: equal values give , so .Cross-multiplication with non-zero denominators (Basic 2). One-one: (Definition 5).Onto: solve for any
Take an arbitrary , so is real and . We look for with . Multiply both sides by and collect the -terms:
The last division is allowed because , so . Now two checks.
(a) The solution lies in the domain , that is, . Suppose . Then , so , which is false. Hence and .
(b) It really maps to . With :
So every is the image of some : is onto.
The graph of is a hyperbola with two branches. The dashed vertical line is the excluded input (the graph never touches it), and the dashed horizontal line is the excluded output (the graph approaches it but never meets it). Every other horizontal line, such as , meets the graph exactly once, here at . Solving the equation finds the only candidate; it does not by itself prove the candidate is valid. Check (a) is essential because the domain has a hole at 3: if the formula had produced for some , that would have no preimage in . Check (b) confirms the algebra. Notice that is never zero, which is another way of seeing check (a).Onto: for an arbitrary in the codomain, find in the domain with (Definition 6, Basic 3). Basics: one-one and ontoWhy the codomain had to exclude 1
The formula breaks down at exactly one value, , where it divides by zero. Step 1 showed this is not an accident of the method: no gives . So the range of is exactly .
Consequently, if the codomain had been all of , then would be an element of the codomain with no preimage, and would not be onto. Removing 1 from the codomain makes the codomain equal to the range, which is exactly what onto requires.
Whether a function is onto depends on the codomain chosen, not only on the formula. The textbook's Remark after Definition 6 says is onto if and only if its range equals the codomain. Here the range is , and the question chose , so the two match.Onto ⇔ range = codomain (Remark after Definition 6). Lesson: types of functionsConclude
is one-one (Step 2) and onto (Step 3). So the answer is yes: is one-one and onto, that is, bijective. Its inverse is the formula from Step 3:
The onto step did more than prove existence: it found the unique input for each output, which is the inverse function. The inverse swaps the roles of the excluded points: it is undefined at and never takes the value 3.A function is invertible exactly when it is one-one and onto. Lesson: invertible functions
Yes. is one-one, because cross-multiplying reduces to . It is onto , because every is the image of , which is never 3 and so lies in . The value 1 is correctly excluded from the codomain, since would force . (Textbook answer: "Yes".)
Forward: , , , . Back with : gives ✓; gives ✓; gives ✓; gives ✓. Near the hole: and , close to 1 but not equal to it.
- Cross-multiplying without saying why it is allowed. It needs and , which come from the domain .
- Skipping the check that the preimage is not 3. Onto needs ; without check (a) the proof has a gap.
- Thinking the excluded 1 is "just given". It must be justified: never takes the value 1, and if it did, would not be a valid codomain.
- Answering "not onto because has no preimage". 1 is not in the codomain , so it does not need a preimage.
- For a rational function, rewrite it as "constant + simple fraction" (here ) to see at a glance which value it misses.
- In an onto proof, always check that the solved lies in the domain, especially when the domain has holes.
- The value missing from the range is exactly where the inverse formula divides by zero, and the codomain must exclude it for to be onto.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| , and | Idea, Steps 1, 2 | Algebra of fractions |
| Cross-multiplication needs non-zero denominators | Step 2 | Algebra of equations |
| Definitions of one-one, onto | Steps 2, 3 | Definitions 5, 6, Section 1.3 (Lesson: types of functions) |
| Onto ⇔ range = codomain | Step 4 | Remark after Definition 6, Section 1.3 |
| One-one and onto = bijective; bijective ⇔ invertible | Step 5 | Definition 7 (Section 1.3); Definition 9 and Section 1.4 |
| Preimage formula and all numerical values | Step 3, Check | Solved symbolically and recomputed exactly in the site's verification script |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →