f x = 1 − 1 ≤ x < 0 1 2 x = 0 1 − x 2 otherwise