\(\dfrac{3x}{x^2-2}=\dfrac{3x.x.\left(x+2\right)}{\left(x^2-2\right).x.\left(x+2\right)}=\dfrac{3x^2\left(x+2\right)}{x\left(x+2\right)\left(x^2-2\right)}\)
\(\dfrac{x-1}{x^2+2x}=\dfrac{x-1}{x\left(x+2\right)}=\dfrac{\left(x-1\right)\left(x^2-2\right)}{x\left(x+2\right)\left(x^2-2\right)}\)