Could every Croke Park seat be assigned even if two fans get the same seat?
At Croke Park, suppose each fan gets exactly one seat number. Could every seat number be handed out even if two fans get the same one? Keep those two questions separate: who shares a number, and which numbers get handed out?
The input set, or domain, contains A, B and C. The target set, or codomain, contains P and Q. Follow the arrows: A and B both go to P, and C goes to Q. This is a function because each input has exactly one output.
Here A and B are the inputs, and P, Q and R are the targets. A goes to P and B goes to Q. No target gets two arrows, so this function is injective, or one-to-one. R can be unused and the function still passes that test.
The inputs are A, B and C, and the targets are P and Q. A goes to P, B goes to Q, and C goes to P. Is this function one-to-one? Pick the answer that gives the right reason.
Go back to inputs A, B and C and targets P and Q. P gets two arrows and Q gets one. Every member of the codomain is hit. That's surjective, or onto. P getting two arrows doesn't stop the function from being onto.
The inputs are A and B, and the targets are P and Q. A goes to Q and B goes to P. Each target gets exactly one arrow, so the function is both one-to-one and onto. A function that passes both tests is called a bijection.
With real inputs and targets, minus two and two share four. Squaring hits exactly the non-negative numbers, using their square roots as inputs. Restrict only the targets: onto only. Restrict only the inputs instead: one-to-one only, since the non-negative square root is unique. With both restrictions, each target has exactly one input. That's a bijection.
Now use x squared plus one. The inputs are non-negative, and any real number is a target. Ask yourself which target values can come out and whether two different inputs can give the same value. Pick the correct classification.
You might see that squaring hits every non-negative number and call it onto straight away. Both maps here hit exactly those same values. With all real targets, minus one is missed. With only non-negative targets, nothing is missed. Check the stated codomain before you decide.
If the question says, ‘Show that f is a bijection,’ give both reasons. First read the sets. Two non-positive inputs with equal squares must both be the negative of the same square root, so they're equal. Every non-negative target is hit by the negative of its square root, including zero.