One-sided limits · Exercise-ONE-SIDED-LIMITS-008

Step-by-step solved exercise: Limits

Let \(\displaystyle f(x)=x+1\) if \(\displaystyle x<2\) and \(\displaystyle f(x)=x^2-1\) if \(\displaystyle x\ge 2\). Compute \(\displaystyle \lim_{x\to 2} f(x)\).

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

Step-by-step solution

  1. From the left (\(\displaystyle x<2\)) use \(\displaystyle x+1\).

    \[\displaystyle \lim_{x\to2^-}(x+1)=3\]
  2. From the right (\(\displaystyle x\ge2\)) use \(\displaystyle x^2-1\).

    \[\displaystyle \lim_{x\to2^+}(x^2-1)=4-1=3\]
  3. The one-sided limits agree, so the limit exists and equals 3.

    \[\displaystyle \lim_{x\to2^-}f=\lim_{x\to2^+}f=3\ \Rightarrow\ \lim_{x\to2}f(x)=3\]

    Comment: Also \(\displaystyle f(2)=3\): the function is continuous at 2.

Answer

\[\displaystyle 3\]

🎯 Build my path to this exercise