Continuous function · Exercise-CONTINUOUS-FUNCTION-018
Step-by-step solved exercise: Continuity
Let \(\displaystyle f(x)=x\sin(1/x)\) for \(\displaystyle x\ne0\) and \(\displaystyle f(0)=k\). For which \(\displaystyle k\) is it continuous at \(\displaystyle 0\)?
Step by step with comments, a check and common mistakes.
Step-by-step solution
Since \(\displaystyle |\sin(1/x)|\leq1\) for \(\displaystyle x\neq0\), we have \(\displaystyle |x\sin(1/x)|\leq|x|\).
\[\displaystyle |x\sin(1/x)|\le|x|\]
Since \(\displaystyle |x|\to0\), by the squeeze theorem the limit at \(\displaystyle 0\) is \(\displaystyle 0\).
\[\displaystyle \lim_{x\to0}x\sin(1/x)=0\]
For \(\displaystyle f\) to be continuous at \(\displaystyle 0\) we must define \(\displaystyle f(0)=0\).