\(\frac{x}{x-1}=\frac{x+4}{x+1}\Leftrightarrow x^2+x-\left(x^2+3x-4\right)=0\)
\(\Leftrightarrow-2x+4=0\Leftrightarrow x=2\)
-----------------------------------------------------------------
\(\frac{3}{x-2}=\frac{2x-1}{x-2}-x\Leftrightarrow\frac{3}{x-2}=\frac{2x-1}{x-2}-\frac{x^2-2x}{x-2}\)
\(\Leftrightarrow2x-1-x^2+2x-3=0\Leftrightarrow-\left(x-2\right)^2=0\Leftrightarrow x=2\)