First observe that and are onto since and are.
Suppose that for all . This means that for some . And for all implies there exists a such that .
These are contradictions, hence the conclusion follows. (By continuity)
(You can use intermediate value theorem to show: and for some implies there exists a such that , by continuity of ).