Find the function which closely describes the given graph.
We will try to define the function, using its graph.
x>0⇒f(x)=1
x=0⇒f(x)=0
x<0⇒f(x)=−1
Combine these three, we get
f(x)=⎧⎨⎩1 \text{if } x\gt 0 0 \text{if } x=0 −1 \text{if } x\lt 0
so option D is correct.
Other options are zero when x=0.
If x < 0,|x|x=−xx=−1
|x|x=x−x=−1
If x > 0,|x|x=xx=1
|x|x=xx=1
This means A,B and C are equal to the function given in D.
⇒ All the option are correct.