Let f:[0,∞)→[0,3] be defined by f(x)={max{sint:0≤t≤x},2+cosx,0≤x<πx≥π. Then which of the following is true?
Solutions · 1
Official solution
On [0,π/2], max{sint:t≤x}=sinx (increasing); on [π/2,π], the running max stays at 1. At x=π, both pieces meet smoothly: f(π−)=1 and 2+cosπ=1, and the derivatives also match (sin′(π/2)=0 matches the flat piece, and the flat piece's derivative 0 matches −sinπ=0 from the cosine piece at the join). So f is differentiable everywhere in (0,∞).