We are given:
f(x)=⎩⎨⎧x∣x∣,1,x=0x=0
and
g(x)=⎩⎨⎧xsin(x1),0,x=0x=0
Let's first simplify f(x) for x=0:
- When x>0: f(x)=xx=1
- When x<0: f(x)=x−x=−1
- At x=0: f(0)=1
So f(x) outputs +1 for all x≥0 and −1 for x<0.
Checking continuity of f(x) at x=0:
x→0+limf(x)=1
x→0−limf(x)=−1
Since the left-hand limit = right-hand limit, x→0limf(x) does not exist.
Therefore, f(x) is not continuous at x=0.
Since f(x) is not continuous at x=0, it cannot be differentiable there either (continuity is a necessary condition for differentiability).
Checking continuity of g(x) at x=0:
We need x→0limg(x)=g(0)=0.
We know that −1≤sin(x1)≤1 for all x=0.
Multiplying through by ∣x∣:
−∣x∣≤xsin(x1)≤∣x∣
As x→0, both −∣x∣→0 and ∣x∣→0.
By the Squeeze (Sandwich) Theorem:
x→0limxsin(x1)=0=g(0)
Therefore, g(x) is continuous at x=0.
Checking differentiability of g(x) at x=0:
Using the definition of the derivative:
g′(0)=h→0limhg(h)−g(0)
=h→0limhhsin(h1)−0
=h→0limsin(h1)
As h→0, sin(h1) oscillates infinitely between −1 and +1. This limit does not exist.
Therefore, g(x) is not differentiable at x=0.
Summary:
| Continuous at x=0? | Differentiable at x=0? |
|---|
| f(x) | No | No |
| g(x) | Yes | No |
The correct answer is: f is not continuous but g is continuous and not differentiable at the origin.