Consider the continuous function . Since as there must be some point where (you should prove this). Similarly, there must be some point where . Then since , there must be some such that by the IVT. Then clearly

So you were right about the intermediate value theorem!