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