Let [t] denote the greatest integer ≤t. Let f(x)=x−[x], g(x)=1−x+[x], and h(x)=min{f(x),g(x)}, x∈[−2,2]. Then h is
Solutions · 1
Official solution
f(x)={x}, g(x)=1−{x}. h(x)=min{{x},1−{x}} is continuous everywhere (fractional part functions are continuous except at integers, but the min structure removes the jump), while it has corners at x=−23,−1,−21,0,21,1,23 in (−2,2) --- more than four points, so h is continuous in [−2,2] but not differentiable at more than four points.