The function f is defined by
f(x)=⎧⎪⎨⎪⎩1−x,x<01,x=0x+1,x>0 Draw the graph of f(x).
Here,
f(x)=1−x for x<0. So,
f(−4)=1−(−4)=5f(−3)=1−(−3)=4f(−2)=1−(−2)=3f(−1)=1−(−1)=2 etc
Also, f(x) = x + 1, for x > 0
and f(1) = 2, f(2) = 3, f(3) = 4, f(4) = 5 and so on.
Thus, the graph of f is as shown below: