\(\dfrac{18x}{x^3-9x}-\dfrac{2-x}{x+3}+\dfrac{3}{3-x}\)
=\(\dfrac{18x}{x\left(x^2-9\right)}-\dfrac{\left(2-x\right)\left(x-3\right)x}{\left(x+3\right)\left(x-3\right)x}-\dfrac{3x\left(x+3\right)}{\left(x-3\right)\left(x+3\right)x}\)
=\(\dfrac{18x-\left(2-x\right)\left(x-3\right)x-3x\left(x+3\right)}{x\left(x+3\right)\left(x-3\right)}\)
=\(\dfrac{18x-\left(2x-6-x^2+3x\right)x-3x^2-9x}{x\left(x+3\right)\left(x-3\right)}\)
=\(\dfrac{18x-2x^2+6x+x^3-3x^2-3x^2-9x}{x\left(x+3\right)\left(x-3\right)}\)
=\(\dfrac{x^3-8x^2+15x}{x\left(x-3\right)\left(x+3\right)}\)
=\(\dfrac{x\left(x^2-8x+15\right)}{x\left(x-3\right)\left(x+3\right)}\)
=\(\dfrac{x^2-3x-5x+15}{x\left(x-3\right)\left(x+3\right)}\)
=\(\dfrac{x\left(x-3\right)-5\left(x-3\right)}{\left(x-3\right)\left(x+3\right)}\)
=\(\dfrac{\left(x-3\right)\left(x-5\right)}{\left(x-3\right)\left(x+3\right)}\)
=\(\dfrac{\left(x-5\right)}{x+3}\)