\(\dfrac{x+2}{x-1}=\dfrac{\left(x+2\right)\left(x+1\right)}{x^2-1}\)
\(\Rightarrow\left(x+2\right)\left(x^2-1\right)=\left(x-1\right)\left(x+2\right)\left(x+1\right)\)
\(\Rightarrow\left(x+2\right)\left(x^2-1\right)=\left(x+2\right)\left(x^2-1\right)\)
-> đpcm.