When x=0
Given: f(x)=⎧⎨⎩x2sin1x,if x≠00,if x=0
If f(x) is continuous at x=0 then
limx→0−f(x)=limx→0+f(x)=f(0)
L.H.L.
=limx→0−x2sin21x=limh→0(0−h)2sin1(0−h)
=limh→0(−h)2sin1(−h)
=0× ( oscillating between −1 to 1))=0
R.H.L.
=limx→0+x2sin1x=limh→0(0+h)2sin1(0+h)
=limh→0h2sin1h
=0× (oscillating between −1 to 1)=0
Finding f(x) at x=0
f(x)=0 at x=0
f(0)=0
Hence, limx→0−f(x)=limx→0+f(x)=f(0)
When x≠0
Given f(x)=x2sin1x
Let us consider the function p(x)=x2,q(x)=sin1x
p(x)=x2 is polynomial function
So, p(x) is continuous for x ∈ R
q(x)=sin1x is sine function so, q(x) is continuous for x≠0
By Algebra of continuous functions,
If p(x) and q(x) all are continuous for x≠0 then f(x)=p(x).q(x) is continuous for x≠0.
∴f(x)=⎧⎨⎩x2sin1x,if x≠00,if x=0 is everywhere continuous for all x ∈ R.