Exercise · ZW-IMAGE-AND-PREIMAGE-010 · ★★★ Advanced
Let \(f\colon\mathbb{Z}\to\mathbb{Z}\), \(f(n)=n^2\), and \(Y=\{0,1,2,3,4\}\). How many elements does \(f^{-1}(Y)\) have?
Choose one option.
Show answer
- B. 5
Exercise · ZW-IMAGE-AND-PREIMAGE-010 · ★★★ Advanced
Choose one option.
Integers \(n\) with \(n^2\in\{0,1,4\}\) are \(-2,-1,0,1,2\), so there are five. Keeping only nonnegative ones gives three, and all integers from \(-4\) to \(4\) gives nine.
Given \(f\colon A\to B\), the image of \(X\subseteq A\) is the set of values \(f(x)\) with \(x\in X\), and the preimage of \(Y\subseteq B\) is the set of \(a\in A\) whose value lies in \(Y\).