a) Ta có: \(\dfrac{9-3x}{x^2+3x+4}-\dfrac{3x-23}{\left(1-x\right)\left(x+4\right)}\)
\(=\dfrac{9-3x}{x^2+3x+4}+\dfrac{3x-23}{x^2+3x-4}\)
\(=\dfrac{\left(9-3x\right)\left(x^2+3x-4\right)}{\left(x^2+3x+4\right)\left(x^2+3x-4\right)}+\dfrac{\left(3x-23\right)\left(x^2+3x+4\right)}{\left(x^2+3x-4\right)\left(x^2+3x+4\right)}\)
\(=\dfrac{9x^2+27x-36-3x^3-9x^2+12x+3x^3+9x^2+12x-23x^2-69x-92}{\left(x^2+3x-4\right)\left(x^2+3x+4\right)}\)
\(=\dfrac{-14x^2-18x-128}{\left(x^2+3x-4\right)\left(x^2+3x+4\right)}\)
b) Ta có: \(\dfrac{4-x}{x^3+2x}-\dfrac{x+5}{x^3-x^2+2x-2}\)
\(=\dfrac{4-x}{x\left(x^2+2\right)}-\dfrac{x+5}{x^2\left(x-1\right)+2\left(x-1\right)}\)
\(=\dfrac{4-x}{x\left(x^2+2\right)}-\dfrac{x+5}{\left(x-1\right)\left(x^2+2\right)}\)
\(=\dfrac{\left(4-x\right)\left(x-1\right)}{x\left(x-1\right)\left(x^2+2\right)}-\dfrac{x\left(x+5\right)}{x\left(x-1\right)\left(x^2+2\right)}\)
\(=\dfrac{4x-4-x^2+x-x^2-5x}{x\left(x-1\right)\left(x^2+2\right)}\)
\(=\dfrac{-2x^2-4}{x\left(x-1\right)\left(x^2+2\right)}\)
\(=\dfrac{-2\left(x^2+2\right)}{x\left(x-1\right)\left(x^2+2\right)}\)
\(=\dfrac{-2}{x\left(x-1\right)}\)