Solveeit Logo

Question

Question: Discuss the continuity of the function \(f\left( x \right)=\left\\{ \begin{matrix} {{x}^{2}}\si...

Discuss the continuity of the function f\left( x \right)=\left\\{ \begin{matrix} {{x}^{2}}\sin \left( \dfrac{1}{x} \right),x\ne 0 \\\ 0,\text{ }x=0 \\\ \end{matrix} \right. at x=0.

Explanation

Solution

Hint: Use the fact that if a function f(x) is continuous at a point, then the left hand limit and the right hand limit at that point are equal and are equal to the value of the function at that point. Hence, we have f(x)f\left( x \right) is continuous at x= a if limxaf(x)=limxa+f(x)=f(a)\underset{x\to {{a}^{-}}}{\mathop{\lim }}\,f\left( x \right)=\underset{x\to {{a}^{+}}}{\mathop{\lim }}\,f\left( x \right)=f\left( a \right). Hence find the left hand limit and the right hand limit at x= 0. Verify if the limits are equal or not. Check if the limits are equal and are they equal to the functional value and hence verify whether f(x) is continuous at x =0. Use the fact that limx0xsin(1x)=0\underset{x\to 0}{\mathop{\lim }}\,x\sin \left( \dfrac{1}{x} \right)=0 and use limxaf(x)=limh0f(ah)\underset{x\to {{a}^{-}}}{\mathop{\lim }}\,f\left( x \right)=\underset{h\to 0}{\mathop{\lim }}\,f\left( a-h \right) and limxa+f(x)=limh0f(a+h)\underset{x\to {{a}^{+}}}{\mathop{\lim }}\,f\left( x \right)=\underset{h\to 0}{\mathop{\lim }}\,f\left( a+h \right) and hence find LHL and RHL.

Complete step-by-step answer:
We have f\left( x \right)=\left\\{ \begin{matrix} {{x}^{2}}\sin \left( \dfrac{1}{x} \right),x\ne 0 \\\ 0,\text{ }x=0 \\\ \end{matrix} \right.
Now, we have
LHL =limx0f(x)=limh0f(0h)=\underset{x\to {{0}^{-}}}{\mathop{\lim }}\,f\left( x \right)=\underset{h\to 0}{\mathop{\lim }}\,f\left( 0-h \right)
Hence, we have
LHL =limh0f(h)=limh0(h)2sin(1h)=limh0h2sin(1h)=\underset{h\to 0}{\mathop{\lim }}\,f\left( -h \right)=\underset{h\to 0}{\mathop{\lim }}\,{{\left( -h \right)}^{2}}\sin \left( \dfrac{-1}{h} \right)=\underset{h\to 0}{\mathop{\lim }}\,{{h}^{2}}\sin \left( \dfrac{-1}{h} \right)
We know that limh0hsin(1h)=0\underset{h\to 0}{\mathop{\lim }}\,h\sin \left( \dfrac{1}{h} \right)=0
Hence, we have LHL =limh0(h)limh0hsin(1h)=0×0=0=\underset{h\to 0}{\mathop{\lim }}\,\left( -h \right)\underset{h\to 0}{\mathop{\lim }}\,h\sin \left( \dfrac{1}{h} \right)=0\times 0=0
Now, RHL =limx0+f(x)=limh0f(0+h)=\underset{x\to {{0}^{+}}}{\mathop{\lim }}\,f\left( x \right)=\underset{h\to 0}{\mathop{\lim }}\,f\left( 0+h \right)
Hence, we have
RHL =limh0f(h)=limh0h2sin(1h)=\underset{h\to 0}{\mathop{\lim }}\,f\left( h \right)=\underset{h\to 0}{\mathop{\lim }}\,{{h}^{2}}\sin \left( \dfrac{1}{h} \right)
We know that limh0hsin(1h)=0\underset{h\to 0}{\mathop{\lim }}\,h\sin \left( \dfrac{1}{h} \right)=0
Hence, we have RHL =limh0h×limh0hsin(1h)=0×0=0=\underset{h\to 0}{\mathop{\lim }}\,h\times \underset{h\to 0}{\mathop{\lim }}\,h\sin \left( \dfrac{1}{h} \right)=0\times 0=0
Hence LHL = RHL = 0.
Also f(0) = 0.
Hence, we have
LHL = RHL = f(0).
Hence, the function is continuous at x=0.

Note: Graph of f(x):

As can be seen from the graph of f(x), f(x) is continuous at x=0.
[2] Alternative solution:
We know that if f(x) is continuous at x =a, then ε>0\forall \varepsilon >0 there exists δ>0\delta >0 such that f(x)f(a)<ε\left| f\left( x \right)-f\left( a \right) \right|<\varepsilon , whenever xa<δ\left| x-a \right|<\delta .
We have f\left( x \right)=\left\\{ \begin{matrix} {{x}^{2}}\sin \left( \dfrac{1}{x} \right),x\ne 0 \\\ 0,\text{ }x=0 \\\ \end{matrix} \right.
Claim: f(x) is continuous at x=0.
We have f(x)f(a)=x2sin(1x)0=x2sin(1x)\left| f\left( x \right)-f\left( a \right) \right|=\left| {{x}^{2}}\sin \left( \dfrac{1}{x} \right)-0 \right|=\left| {{x}^{2}}\sin \left( \dfrac{1}{x} \right) \right|
Since sin(1x)1\sin \left( \dfrac{1}{x} \right)\le 1, we have x2sin(1x)x2x2\left| {{x}^{2}}\sin \left( \dfrac{1}{x} \right) \right|\le \left| {{x}^{2}} \right|\le {{\left| x \right|}^{2}}.
Hence ε>0δ=ε>0\forall \varepsilon >0\exists \delta =\sqrt{\varepsilon }>0 such that whenever x0<δx2<εx2sin(1x)0<ε\left| x-0 \right|<\delta \Rightarrow \left| {{x}^{2}} \right|<\varepsilon \Rightarrow \left| {{x}^{2}}\sin \left( \dfrac{1}{x} \right)-0 \right|<\varepsilon .
Hence f(x) is continuous at x= 0.