We have f(x)={(2−sin(x1))∣x∣,0,x=0x=0.
For x>0, ∣x∣=x, so f(x)=(2−sin(x1))x=2x−xsin(x1).
Differentiating using the product rule: f′(x)=2−sin(x1)−x⋅cos(x1)⋅(−x21)=2−sin(x1)+x1cos(x1).
For f to be monotonically increasing on (0,∞), we need f′(x)≥0 for all x>0. The term 2−sin(x1) is always at least 1 (since −1≤sin≤1). However, the term x1cos(x1) oscillates and becomes unbounded near x=0.
To see this, consider xn=(2n+1)π1 for large positive integers n. At these points, xn1=(2n+1)π, so cos(xn1)=cos((2n+1)π)=−1 and sin(xn1)=0. Then f′(xn)=2−0+(2n+1)π⋅(−1)=2−(2n+1)π. For n≥1, this gives f′(xn)=2−3π<0.
Similarly, at xn=2nπ1, we have cos(xn1)=1 and sin(xn1)=0, so f′(xn)=2+2nπ>0.
Since f′(x) takes both positive and negative values for x near 0+, the function is not monotonic on (0,∞).
For x<0, ∣x∣=−x, so f(x)=−(2−sin(x1))x. Differentiating: f′(x)=−2+sin(x1)−x1cos(x1).
By the same argument, at xn=−2nπ1 (approaching 0 from the left), cos(xn1)=1 and xn1=−2nπ, so f′(xn)=−2+0−(−2nπ)(1)=−2+2nπ>0 for n≥1. At xn=−(2n+1)π1, cos(xn1)=−1 and xn1=−(2n+1)π, so f′(xn)=−2+0−(−(2n+1)π)(−1)=−2−(2n+1)π<0.
So f′(x) also changes sign near 0−, meaning f is not monotonic on (−∞,0) either.
Therefore, f is not monotonic on (−∞,0) and (0,∞), which is Option B.