Jump to content

Mapping/Squaring/Injective and surjective/Example

From Wikiversity

The mapping

ℝ⟶ℝ,x⟼x2,

is neither injective nor surjective. It is not injective because the different numbers 2 and −2 are both sent to 4. It is not surjective because only nonnegative elements are in the image (a negative number does not have a real square root). The mapping

ℝ≥0⟶ℝ,x⟼x2,

is injective, but not surjective. The injectivity can be seen as follows: If x≠y, then one number is larger, say

x>y≥0.

But then also x2>y2, and in particular x2≠y2. The mapping

ℝ⟶ℝ≥0,x⟼x2,

is not injective, but surjective, since every nonnegative real number has a square root. The mapping

ℝ≥0⟶ℝ≥0,x⟼x2,

is injective and surjective.