\(f\left(x\right)=\dfrac{x+4}{\left(x-3\right)\left(x+3\right)}-\dfrac{2}{x+3}+\dfrac{4x}{x\left(x-3\right)}\)
\(f\left(x\right)=\dfrac{x\left(x+4\right)}{x\left(x-3\right)\left(x+3\right)}-\dfrac{2x\left(x-3\right)}{x\left(x+3\right)\left(x-3\right)}+\dfrac{4x\left(x+3\right)}{x\left(x-3\right)\left(x+3\right)}\)
\(f\left(x\right)=\dfrac{3x^2+22x}{x\left(x-3\right)\left(x+3\right)}\)
\(f\left(x\right)< 0\Leftrightarrow\left\{{}\begin{matrix}x< -\dfrac{22}{3}\\-3< x< 0\\0< x< 3\end{matrix}\right.\) \(\Rightarrow x_{max}=2\)