Limit of a function · Exercise-LIMIT-OF-A-FUNCTION-007

Step-by-step solved exercise: Limits

If \(\displaystyle f(x)=1\) for \(\displaystyle x<0\) and \(\displaystyle f(x)=2\) for \(\displaystyle x\ge 0\), what is \(\displaystyle \lim_{x\to 0} f(x)\)?

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

Step-by-step solution

  1. From the left (\(\displaystyle x<0\)) the function is always 1.

    \[\displaystyle \lim_{x\to0^-}f(x)=1\]
  2. From the right (\(\displaystyle x\ge0\)) the function is always 2.

    \[\displaystyle \lim_{x\to0^+}f(x)=2\]
  3. The one-sided limits differ, so the two-sided limit does not exist.

    \[\displaystyle 1\ne2\ \Rightarrow\ \lim_{x\to0}f(x)\ \text{no existe}\]

    Comment: Note: the value \(\displaystyle f(0)=2\) changes nothing; the limit depends on both sides.

Answer

It does not exist, because the one-sided limits are 1 and 2

🎯 Build my path to this exercise