\(P=\left(\dfrac{x^2+1}{x^2-9}-\dfrac{x}{x+3}+\dfrac{5}{3-x}\right):\left(\dfrac{2x+10}{x+3}-1\right)\)
\(=\left(\dfrac{x^2+1}{\left(x-3\right)\left(x+3\right)}-\dfrac{x\left(x-3\right)}{\left(x-3\right)\left(x+3\right)}-\dfrac{5\left(x+3\right)}{\left(x-3\right)\left(x+3\right)}\right):\left(\dfrac{2x+10}{x+3}-\dfrac{x+3}{x+3}\right)\)
\(=\left(\dfrac{x^2+1-x^2+3x-5x-15}{\left(x-3\right)\left(x+3\right)}\right):\left(\dfrac{2x+10-x-3}{x+3}\right)\)
\(=\left(\dfrac{-2x-14}{\left(x-3\right)\left(x+3\right)}\right):\left(\dfrac{x+7}{x+3}\right)\)
\(=\dfrac{-2\left(x+7\right)}{\left(x-3\right)\left(x+3\right)}.\dfrac{x+3}{x+7}\)
\(=\dfrac{-2}{x-3}\)
đk : x khác -3 ; 3 ; -7
\(P=\left(\dfrac{x^2+1+x\left(x-3\right)+5x+15}{x^2-9}\right):\left(\dfrac{2x+10-x-3}{x+3}\right)\)
\(=\dfrac{2x^2+1+2x+15}{x^2-9}:\dfrac{x+7}{x+3}=\dfrac{2x^2+2x+16}{\left(x-3\right)\left(x+7\right)}\)