Let f:[0,∞)→[0,3] be a function defined by f(x)={max{sint:0≤t≤x},0≤x≤π2+cosx,x>π Then which of the following is true?