Prove that the a continuous function with compact domain has a continuous inverse. Also prove that the result does not hold if the domain is not compact.
The Attempt at a Solution
I tried using the epsilon delta definition of continuity but didn't get anywhere.
This is supposed to be a pretty standard proof in any real analysis book but unfortunately the one I'm using has it listed as an exercise...