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

Explanation

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.

Study Set theory in ZWMath →

Review the concept: Image and preimage

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\).

\[f(X)=\{f(x)\colon x\in X\},\qquad f^{-1}(Y)=\{a\in A\colon f(a)\in Y\}\]

More practice problems: image and preimage

← ZW-IMAGE-AND-PREIMAGE-009