For nonempty A and B: two different inputs share an output; some element of B is never an output
Key Insight: The definition of a function only demands that each input have exactly one output. It allows two inputs to share an output and allows elements of the codomain to be missed; the two properties above are extra conditions a function may or may not meet.
IIVisualization 1 β Shared Outputs and Missed Outputs
Each input has exactly one arrow, yet two arrows may land together and some elements of the codomain may receive none.
π‘ Challenge: make both lines under the diagram hold at once. Only one of the three codomains allows it.
IIIVisualization 2 β Negating the Two Properties
A negation turns β into β, β into β, and PβQ into Pβ§Β¬Q.
Statementβx,yβA,xξ =yβf(x)ξ =f(y)
Negate the whole statementΒ¬(βx,yβA,xξ =yβf(x)ξ =f(y))
Simplify, then find a witnessβyβB,βxβA,f(x)ξ =y
For f (with f(1)=a, f(2)=b, f(3)=c): y=d works, since f(1), f(2) and f(3) all lie in {a,b,c}, so the negation is true for f.
π‘ Negating only the conclusion of the first statement gives βx,yβA,xξ =yβf(x)=f(y), which says every two different inputs share an output: that forces f to be constant, and it is not the negation.
IVVisualization 3 β Why 5x+3 Has Neither a Shared nor a Missed Output
For g(x)=5x+3 from R to R, no two inputs share an output and no real number is missed.
VQuiz Questions
Problem 1 Β· Read the Table
Given:f:{1,2,3,4}β{p,q,r,s,t} with f(1)=q, f(2)=s, f(3)=p, f(4)=s β find a pair of different inputs that share an output, and the range of f.
Which pair of different inputs shares an output?
What is range(f)?
β Correct!2ξ =4 but f(2)=f(4)=s, and the outputs actually produced are p, q and s. So f fails both properties: two inputs share an output, and r and t are missed.
β Not quite. Look at the outputs again: s appears twice in the table.
β Not quite.f(1)=q and f(3)=p are different outputs, so this pair does not share one.
β Not quite. The two inputs must be different. f(4)=f(4) holds for every function and says nothing.
β Not quite. That is the domain. The range is a subset of the codomain: the outputs f(x) actually produced.
β Not quite. That is the codomain. The range contains only the letters that some input is sent to, and nothing is sent to r or t.
β Not quite. Those are the letters that are missed. The range is the set of letters that are reached.
Show solution
Shared output. The outputs in order are q,s,p,s. The letter s appears for the inputs 2 and 4, so x=2, y=4 satisfy xξ =y and f(x)=f(y). No other pair shares an output.
Range. The outputs produced are q, s, p, so range(f)={p,q,s}. It is a proper subset of the codomain: r and t are never outputs.
Answers: (b) and (d).
Problem 2 Β· Negate the Contrapositive Form
Given: nonempty sets A, B and f:AβB, and the statement βx,yβA,f(x)=f(y)βx=y β which is its negation?
β Correct!Β¬β becomes β, and Β¬(PβQ) becomes Pβ§Β¬Q with P: f(x)=f(y) and Q: x=y. It is the same condition as the negation of the first form: two different inputs share an output.
β Not quite. This negates only the conclusion and keeps β. It can never be true: taking y=x gives f(x)=f(x) but not xξ =x.
β Not quite. The negation of PβQ is Pβ§Β¬Q: the hypothesis f(x)=f(y) stays as it is. Here it was negated too.
β Not quite. The quantifier is right, but the negation of a conditional is not a conditional: Β¬(PβQ)β‘Pβ§Β¬Q.
Show solution
Write the statement as βx,yβA,P(x,y)βQ(x,y) with P: f(x)=f(y) and Q: x=y.
Substituting: βx,yβA such that f(x)=f(y) and xξ =y. This is the same condition as the negation of βx,yβA,xξ =yβf(x)ξ =f(y), as it must be, since the two statements are contrapositives of each other.
Answer: (c).
Problem 3 Β· A Missed Output, Written and Found
Given: nonempty sets A, B and f:AβB, and the function k:{1,2,3,4,5}β{p,q,r,s} with k(1)=s, k(2)=q, k(3)=s, k(4)=p, k(5)=q β negate the statement βyβB,βxβAΒ withΒ f(x)=y, then find a witness for k.
Which is the negation?
Which y makes the negation true for k?
β Correct! Both quantifiers flip and the equation is negated. For k the outputs are s,q,s,p,q, so k(x)ξ =r for every x: r is never an output.
β Not quite. Only the equation was negated; neither quantifier was flipped. Negating "for all y" gives "there exists y", and the inner βx must then become βx.
β Not quite. The βx must flip to βx. "Some input misses y" is true for every f as soon as B has two elements, even when every element of B is reached; the negation needs every input to miss y.
β Not quite. The inner βx correctly became βx, but the leading βy must also flip to βy; here it stayed β. This version says no element of B is an output at all, which is false whenever A is nonempty.
β Not quite.s is an output twice (k(1)=k(3)=s). That is a shared output, which is the other property; a witness here must be an element no input reaches.
β Not quite.5 is an input, not an element of the codomain {p,q,r,s}. The witness y must come from the codomain.
β Not quite. List the outputs: s,q,s,p,q. The letter r never appears.
Show solution
Negation.Β¬βy becomes βy, then Β¬βx becomes βx, and Β¬(f(x)=y) becomes f(x)ξ =y:
βyβB,βxβA,f(x)ξ =y.
Witness for k. The outputs are k(1)=s, k(2)=q, k(3)=s, k(4)=p, k(5)=q, so range(k)={p,q,s}. For y=r, k(x)ξ =r for all five inputs, so the negation is true for k: not every element of the codomain is an output.
Answers: (d) and (a).
Problem 4 Β· Changing the Codomain
Given: the rule F(1)=p, F(2)=q, F(3)=r, F(4)=p on the domain {1,2,3,4} β choose a codomain C so that F:{1,2,3,4}βC is a function with every element of C an output, then decide whether different inputs give different outputs.
Which codomain C works?
With that codomain, do different inputs give different outputs?
β Correct! Shrinking the codomain to the range {p,q,r} removes the missed outputs, but it cannot separate 1 and 4: they share the output p for every choice of codomain.
β Not quite. No input is sent to s, so s is a missed output.
β Not quite.F(3)=r is not in {p,q}, so F is not even a function from {1,2,3,4} to this set: the codomain must contain every output.
β Not quite. No input is sent to s or t, so both are missed outputs.
β Not quite. The two properties are independent. Every element of C being an output says nothing about whether two inputs share one.
β Not quite. The condition is about all pairs of different inputs, including the pair 1 and 4.
β Not quite. The conclusion is right but the reason is not: an output reached once causes no failure. The failure is the pair 1ξ =4 with F(1)=F(4).
Show solution
Codomain. The outputs are p,q,r,p, so the range is {p,q,r}. A codomain must contain every output, which rules out {p,q}. Every element of C is an output exactly when C=range(F)={p,q,r}; the larger sets contain the missed letters s (and t).
Different inputs. The negation βx,y,xξ =yβ§F(x)=F(y) is witnessed by x=1, y=4: 1ξ =4 and F(1)=F(4)=p. This pair does not depend on the codomain, so no choice of C gives F the first property.