Question:hard

Consider the function \(f:\mathbb{R}\to\mathbb{R}\) defined by

\(f(x)=\begin{cases}\left(2-\sin\left(\frac{1}{x}\right)\right)|x|, & x\ne 0\\ 0, & x=0\end{cases}\)

. Then \(f\) is :

Show Hint

For \(x\gt 0\), \(f'(x)=2-\sin\frac{1}{x}+\frac{1}{x}\cos\frac{1}{x}\), whose sign changes infinitely often near 0; also \(f(-x)=f(x)\), so the same holds for \(x\lt 0\).
Updated On: Nov 4, 2026
  • not monotonic on \((-\infty,0)\) and \((0,\infty)\)
  • monotonic on \((0,\infty)\) only
  • monotonic on \((-\infty,0)\) only
  • monotonic on \((-\infty,0)\cup(0,\infty)\)
Show Solution

The Correct Option is A

Solution and Explanation

Compare values directly on \((0,\infty)\). Where \(\sin\frac{1}{x}=1\), \(f(x)=x\); where \(\sin\frac{1}{x}=-1\), \(f(x)=3x\). Also \(x\le f(x)\le 3x\), so \(f(x)\to 0\) as \(x\to 0^+\) and \(f(x)\gt 0\).
If \(f\) were decreasing on \((0,\infty)\), then for fixed \(x\) and every \(\varepsilon\lt x\), \(f(x)\le f(\varepsilon)\to 0\), contradicting \(f(x)\gt 0\). So it could only be increasing.
Take \(x_1=\frac{1}{2\pi+3\pi/2}\) (where \(\sin\frac{1}{x_1}=-1\), \(f(x_1)=3x_1\)) and \(x_2=\frac{1}{2\pi+\pi/2}\gt x_1\) (where \(\sin\frac{1}{x_2}=1\), \(f(x_2)=x_2\)).
\(\frac{x_2}{x_1}=\frac{7\pi/2}{5\pi/2}=1.4\lt 3\), so \(f(x_2)=x_2\lt 3x_1=f(x_1)\) although \(x_2\gt x_1\): \(f\) is not increasing either.
So \(f\) is not monotonic on \((0,\infty)\); since \(f\) is even, it is not monotonic on \((-\infty,0)\) either.
Answer: (1) not monotonic on \((-\infty,0)\) and \((0,\infty)\)
Was this answer helpful?
0