Given a ring $R$ and an element $x\in R$, we can adjoint the inverse of $x$ by ring extension $R[\frac{1}{x}]=R[x,y]/\langle xy-1\rangle$, so any elements in $R[\frac{1}{x}]$ is of form $\frac{a}{x^i}$.
I aim to prove that in the ring $R[\frac{1}{x}]$, for any two elements $\frac{a}{x^i},\frac{b}{x^j}$, they are equal iff $(\exists n\ge 0)(x^n\cdot ax^j=x^n\cdot bx^i)$.
It sounds quite counter-intuitive since I expect $ax^j= bx^i$ is enough. Why it doesn't hold, may I please ask some counterexamples?
I tried to prove it but have not found a way yet. Could someone please tell me how to prove the fact: Two fractions in $R[\frac{1}{x}]$ are equal iff $(\exists n\ge 0)(x^n\cdot ax^j=x^n\cdot bx^i)$?
Thanks for any help.
Edit: I have not seen the definition of localization in my algebra course, I googled the construction and wonder why we make the equivalence relation $t(r_1s_2 − r_2s_1) = 0$. And also it does not directly give the desired conclusion because here we require a multiple of $x$, instead of an arbitary element in $R$, playing the role of $t$. If possible, may I please ask for an argument does not involve the usage of definition of localization? Thanks!
Something that could go wrong is if you try to invert a nilpotent element. For example, let $R = k[\epsilon] / (\epsilon^2)$ for some field $k$, and attempt to invert the element $\epsilon \in R$. Then the extended ring is $S = k[\epsilon, t] / (\epsilon^2, t \epsilon - 1)$. At this point, we want to say that $1 / \epsilon^0 \neq 1 / \epsilon^1$, since $\epsilon \neq 1$ in $R$.
However, we can take the relation $t \epsilon = 1$ in $S$, and multiply it by $\epsilon$ to find that $t \epsilon^2 = 0 = \epsilon$. At this point the relation $t \epsilon = 1$ turns into $0 = 1$, and so $S$ is in fact the zero ring. So every expression involving fractions in $\epsilon$ are equal! This demonstrates the need for that extra $x^n$ in the criterion you have there: in this case, it's saying that the expressions are equal for some power of $\epsilon$. In particular, higher powers of $\epsilon$ are all $0$ and so everything is equal in the extended ring.
The moral of the story is basically that "bad stuff" happens when we invert nilpotent elements or zero-divisors: the theory developed around localisation gives good tools for dealing with how to do this. The "universal property of localisation" is also a very powerful way to look at how to introduce fractions into commutative rings.