Let z \ in (a, b) be an extreme point or a maximum point of f in the interval (otherwise, replace f(x) with -f(x)), then f takes the maximum value in a closed neighborhood [u, v] of z contained in (a, b). Let p = max {f(u), f(v)}, then p
(\in indicates latex)