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