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
From the left (\(\displaystyle x<0\)) the function is always 1.
\[\displaystyle \lim_{x\to0^-}f(x)=1\]
From the right (\(\displaystyle x\ge0\)) the function is always 2.
\[\displaystyle \lim_{x\to0^+}f(x)=2\]
The one-sided limits differ, so the two-sided limit does not exist.