IMC 2009 · Problem 1

Day 116th IMC · Budapest, Hungary

Statement

Suppose that ff and gg are real-valued functions on the real line and f(r)≤g(r)f(r) \le g(r) for every rational rr. Does this imply that f(x)≤g(x)f(x) \le g(x) for every real xx if

a) ff and gg are non-decreasing?

b) ff and gg are continuous?

Official solution

Hidden so you can work on the problem first.