Mathematics I / Functions as Mappings
Practice question · Numerical answer

Let f have domain {-2, -1, 0, 1, 2} and rule f(n) = n squared. How many distinct elements are in its image?

Hints
  1. Compute every output, then discard repeats, the image is a set.
  2. Squaring loses the sign, so some inputs collide.
Show the answer

3

Why

The outputs are 4, 1, 0, 1, 4, so the image is {0, 1, 4}, three elements. The domain has five elements but the image only three, which is exactly the failure of injectivity made visible.

Read the lesson: Functions as Mappings →

Practise Functions as Mappings

The app has 5 more questions on this lesson, and keeps your place in the course. Mathematics I is free to start.

More questions on Functions as Mappings