g(x) = { (x - 2)^2 for x <= 2; 2 - x^2 for x > 2. is g continuous at x = 2? choose 1 answer: a yes b no

g(x) = { (x - 2)^2 for x <= 2; 2 - x^2 for x > 2. is g continuous at x = 2? choose 1 answer: a yes b no
Answer
Explanation:
Step1: Calculate left - hand limit
We find $\lim_{x\rightarrow2^{-}}g(x)$. Since $x\rightarrow2^{-}$ (approaching 2 from the left, so $x\leq2$), $g(x)=(x - 2)^2$. Then $\lim_{x\rightarrow2^{-}}g(x)=\lim_{x\rightarrow2^{-}}(x - 2)^2=(2 - 2)^2 = 0$.
Step2: Calculate right - hand limit
We find $\lim_{x\rightarrow2^{+}}g(x)$. Since $x\rightarrow2^{+}$ (approaching 2 from the right, so $x>2$), $g(x)=2 - x^2$. Then $\lim_{x\rightarrow2^{+}}g(x)=\lim_{x\rightarrow2^{+}}(2 - x^2)=2-2^2=2 - 4=-2$.
Step3: Check continuity condition
For a function to be continuous at $x = a$, $\lim_{x\rightarrow a^{-}}g(x)=\lim_{x\rightarrow a^{+}}g(x)=g(a)$. Here, $\lim_{x\rightarrow2^{-}}g(x)=0$ and $\lim_{x\rightarrow2^{+}}g(x)=-2$. Since $\lim_{x\rightarrow2^{-}}g(x)\neq\lim_{x\rightarrow2^{+}}g(x)$, the function $g(x)$ is not continuous at $x = 2$.
Answer:
B. No