We have,
f\left(x\right) = \left\{xpsinx1,x=0 {0,x=0\right)
For f(x) to be continuous at x=0
limx→0f(x)=f(0)
⇒limx→0(xpsinx1)=0
⇒limx→0(xp)×limx→0(sinx1)=0
⇒limx→0(xp)×(value between−1to1)=0
∴p>0
Now,
RHD at RHD at(x=0)=limh→0hhpsinh1−0=limh→0[hp−1sinh1]
LHD at(x=0)=limh→0−h(−h)psin(−h1)−0=limh→0[(−1)p(−h)p−1sin(h1)]
Since, f(x) is not differentiable at x=0, therefore
p≤1
Hence, 0<p≤1.