(i) State and prove the intermediate value theorem.
(ii) Let be a continuous function. The chord joining the points and of the curve is said to be horizontal if . Suppose that the chord joining the points and is horizontal. By considering the function defined on by
or otherwise, show that the curve has a horizontal chord of length in . Show, more generally, that it has a horizontal chord of length for each positive integer .