$$x^a = x^b \Rightarrow a =b$$
So, this is a concept I used in multiple math problems and they often turn out right.
The thing is, today my math teacher told me that this is not necessarily true.
(He did not, however, give me a proper explanation as to why that is and no one expected him to because it seemed very trivial and seemed like something that everybody should have already known.)
I was wondering if someone could explain as to why he said that. I presume it has something to do with higher levels of math that I don't understand.
My logic is that since $\log_{x} a = \log_{x} b$, $a = b$.
But that's only true if $f(a) = f(b) \Rightarrow a = b$.
I only assume so because I did that in many trigonometry questions.
But I don't believe that's enough proof to substantiate my claim.
Please help.