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)\).
One-sided limits · Exercise-ONE-SIDED-LIMITS-008
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)\).
From the left (\(\displaystyle x<2\)) use \(\displaystyle x+1\).
From the right (\(\displaystyle x\ge2\)) use \(\displaystyle x^2-1\).
The one-sided limits agree, so the limit exists and equals 3.
Comment: Also \(\displaystyle f(2)=3\): the function is continuous at 2.