Let f be the subset of Z × Z defined by f = {(ab, a + b) : a, b ∈ Z}. Is f a function from Z to Z? Justify your answer.
Show solutionHide solution
A relation from \(\mathbb{Z}\) to \(\mathbb{Z}\) is a function only if every element of the domain \(\mathbb{Z}\) is paired with exactly one element of \(\mathbb{Z}\). Here the first coordinate of a pair is \(ab\) and the second is \(a+b\), where \(a,b\in\mathbb{Z}\).
We test whether a single first coordinate can arise from two different choices of \(a\) and \(b\) that give different sums.
Take \(a=1,\ b=6\). Then \(ab=6\) and \(a+b=7\), so \((6,7)\in f\).
Now take \(a=2,\ b=3\). Then \(ab=6\) and \(a+b=5\), so \((6,5)\in f\).
Both pairs have the same first coordinate \(6\), but their second coordinates are different: \(7\neq 5\). Thus the element \(6\in\mathbb{Z}\) is associated with two different images, \(7\) and \(5\).
Therefore \(f\) is not a function from \(\mathbb{Z}\) to \(\mathbb{Z}\), because a function cannot assign two different values to the same input.