Surjective function · Exercise-SURJECTIVE-FUNCTION-002

Step-by-step solved exercise: Relations and functions

Which of these functions from \(\displaystyle \mathbb{R}\) to \(\displaystyle \mathbb{R}\) is surjective?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. A function from \(\displaystyle \mathbb{R}\) to \(\displaystyle \mathbb{R}\) is surjective if for every real \(\displaystyle y\) there is a real \(\displaystyle x\) with \(\displaystyle f(x)=y\).

    \[\displaystyle \forall y\in\mathbb{R}\;\exists x\in\mathbb{R}\;(f(x)=y)\]
  2. The values of \(\displaystyle x^2\) and \(\displaystyle \lvert x\rvert\) are never negative, and those of \(\displaystyle e^x\) are always positive, so none of them reaches \(\displaystyle y=-1\).

    \[\displaystyle x^2\ge 0,\quad \lvert x\rvert\ge 0,\quad e^x>0\]
  3. For \(\displaystyle f(x)=x^3\), given any real \(\displaystyle y\), it suffices to take \(\displaystyle x=\sqrt[3]{y}\), which exists for every real number.

    \[\displaystyle f\left(\sqrt[3]{y}\right)=\left(\sqrt[3]{y}\right)^3=y\]
  4. Therefore, \(\displaystyle x^3\) is the only one of the four that is surjective.

Answer

\(\displaystyle f(x)=x^3\)

🎯 Build my path to this exercise