Skip to main contentSkip to solution

Let f(x)={∣x∣x,x≠01,x=0f(x)=\begin{cases}\dfrac{|x|}{x},&x\ne0\\1,&x=0\end{cases} and g(x)={xsin⁡(1x),x≠00,x=0g(x)=\begin{cases}x\sin\left(\dfrac{1}{x}\right),&x\ne0\\0,&x=0\end{cases}

Then at the origin, which one of the following is true?

Solution

✅ Correct Option: 2

We are given:

f(x)={∣x∣x,x≠01,x=0f(x)=\begin{cases}\dfrac{|x|}{x},&x\ne0\\[6pt]1,&x=0\end{cases}

and

g(x)={xsin⁡(1x),x≠00,x=0g(x)=\begin{cases}x\sin\left(\dfrac{1}{x}\right),&x\ne0\\[6pt]0,&x=0\end{cases}


Let's first simplify f(x)f(x) for x≠0x \ne 0:

  • When x>0x > 0: f(x)=xx=1f(x) = \dfrac{x}{x} = 1
  • When x<0x < 0: f(x)=−xx=−1f(x) = \dfrac{-x}{x} = -1
  • At x=0x = 0: f(0)=1f(0) = 1

So f(x)f(x) outputs +1+1 for all x≥0x \geq 0 and −1-1 for x<0x < 0.


Checking continuity of f(x)f(x) at x=0x = 0:

lim⁡x→0+f(x)=1\displaystyle\lim_{x \to 0^+} f(x) = 1

lim⁡x→0−f(x)=−1\displaystyle\lim_{x \to 0^-} f(x) = -1

Since the left-hand limit ≠\neq right-hand limit, lim⁡x→0f(x)\displaystyle\lim_{x \to 0} f(x) does not exist.

Therefore, f(x)f(x) is not continuous at x=0x = 0.

Since f(x)f(x) is not continuous at x=0x = 0, it cannot be differentiable there either (continuity is a necessary condition for differentiability).


Checking continuity of g(x)g(x) at x=0x = 0:

We need lim⁡x→0g(x)=g(0)=0\displaystyle\lim_{x \to 0} g(x) = g(0) = 0.

We know that −1≤sin⁡(1x)≤1-1 \leq \sin\left(\dfrac{1}{x}\right) \leq 1 for all x≠0x \ne 0.

Multiplying through by ∣x∣|x|:

−∣x∣≤xsin⁡(1x)≤∣x∣-|x| \leq x\sin\left(\dfrac{1}{x}\right) \leq |x|

As x→0x \to 0, both −∣x∣→0-|x| \to 0 and ∣x∣→0|x| \to 0.

By the Squeeze (Sandwich) Theorem:

lim⁡x→0xsin⁡(1x)=0=g(0)\displaystyle\lim_{x \to 0} x\sin\left(\dfrac{1}{x}\right) = 0 = g(0)

Therefore, g(x)g(x) is continuous at x=0x = 0.


Checking differentiability of g(x)g(x) at x=0x = 0:

Using the definition of the derivative:

g′(0)=lim⁡h→0g(h)−g(0)hg'(0) = \displaystyle\lim_{h \to 0} \dfrac{g(h) - g(0)}{h}

=lim⁡h→0hsin⁡(1h)−0h= \displaystyle\lim_{h \to 0} \dfrac{h\sin\left(\dfrac{1}{h}\right) - 0}{h}

=lim⁡h→0sin⁡(1h)= \displaystyle\lim_{h \to 0} \sin\left(\dfrac{1}{h}\right)

As h→0h \to 0, sin⁡(1h)\sin\left(\dfrac{1}{h}\right) oscillates infinitely between −1-1 and +1+1. This limit does not exist.

Therefore, g(x)g(x) is not differentiable at x=0x = 0.


Summary:

Continuous at x=0x = 0?Differentiable at x=0x = 0?
f(x)f(x)NoNo
g(x)g(x)YesNo

The correct answer is: ff is not continuous but gg is continuous and not differentiable at the origin.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question