\(B=\left(\frac{21}{x^2-9}-\frac{x-4}{3-x}+\frac{x-1}{3+x}\right)\div\left(1-\frac{1}{x+3}\right)\)
\(B=\left(\frac{21}{x^2-9}+\frac{x-4}{x-3}+\frac{x-1}{x+3}\right)\div\left(\frac{x+3}{x+3}-\frac{1}{x+3}\right)\)
\(B=\left(\frac{21}{\left(x+3\right)\left(x-3\right)}+\frac{\left(x-4\right)\left(x+3\right)}{\left(x+3\right)\left(x-3\right)}+\frac{\left(x-1\right)\left(x-3\right)}{\left(x+3\right)\left(x-3\right)}\right)\div\frac{x+2}{x+3}\)
\(B=\left(\frac{21}{\left(x+3\right)\left(x-3\right)}+\frac{x^2-x-12}{\left(x+3\right)\left(x-3\right)}+\frac{x^2-4x+3}{\left(x+3\right)\left(x-3\right)}\right)\cdot\frac{x+3}{x+2}\)
\(B=\left(\frac{21+x^2-x-12+x^2-4x+3}{\left(x+3\right)\left(x-3\right)}\right)\cdot\frac{x+3}{x+2}\)
\(B=\frac{2x^2-5x+12}{\left(x+3\right)\left(x-3\right)}\cdot\frac{x+3}{\left(x+2\right)}\)
\(B=\frac{2x^2-5x+12}{\left(x-3\right)\left(x+2\right)}\)
\(B=\frac{2x^2-5x+12}{x^2-x-6}\)
Đến đây là chịu ạ :(