Let $R$ be a ring with unity $x \in R$ such that $x^2 = x$. The inverse of $2x - 1$ is $\cdots$
This problem is rather easy to be tricky. I found that $2x-1$ is an inverse of itself because $(2x-1)(2x-1) = 4x^2-4x+1$ and by using the equation $x^2 = x$, I get $(2x-1)(2x-1) = 1$. So here I get. Instead by using this approachment, are there any precise ways to solve the problem?
As you noticed, the fact that $x^2 = x$ is leading us to think that $(2x-1)^{-1}$ is a polynomial of $x$ ; and such polynomial is of the form $ax+b$.
But - assuming commutativity - $$\begin{array}{rr} &(2x-1)(ax+b) = 1 \\ \iff & 2ax + 2xb -ax -b=1 \\ \iff & x(a+2b) -b = 1 \\ \iff & a = 2 \text{ and } b=-1 \end{array}$$
EDIT : since I did not make this clear enough, note that the last "$\iff$" is only valid because of the uniqueness of $(2x-1)^{-1}$