f ( x ) = { 1 / 3 if  0 ≤ x ≤ 1 ; 2 / 3 if  3 ≤ x ≤ 4 ; 0 elsewhere.