This is not a fair example.

.

Therefore, and .

Thus, the domains do not match up. We can construct more of these. And this example is excellent for pre-calculus and calculus students because they would not know the difference. But what CaptainBlankwas talking about was different, their it is more complicated to find a counter-example.