when does the intermediate value theorem not apply