\(P=\left(\dfrac{3x^2+3x-3}{x^2+x-2}+\dfrac{1}{x-1}+\dfrac{1}{x+2}-2\right):\dfrac{1}{x^2-1}\left(dk:x\ne-2,x\ne\pm1\right)\)
\(=\left(\dfrac{3x^2+3x-3}{\left(x-1\right)\left(x+2\right)}+\dfrac{1}{x-1}+\dfrac{1}{x+2}-2\right).\left(x^2-1\right)\)
\(=\left(\dfrac{3x^2+3x-3+x+2+x-1-2\left(x^2+x-2\right)}{\left(x-1\right)\left(x+2\right)}\right).\left(x-1\right)\left(x+1\right)\)
\(=\dfrac{3x^2+5x-2-2x^2-2x+4}{x+2}.\left(x+1\right)\\ =\dfrac{x^2+3x+2}{x+2}.\left(x+1\right)\)
\(=\dfrac{x^2+x+2x+2}{x+2}.\left(x+1\right)\\ =\dfrac{x\left(x+1\right)+2\left(x+1\right)}{x+2}.\left(x+1\right)\\ =\dfrac{\left(x+1\right)^2\left(x+2\right)}{x+2}\\ =x^2+2x+1\)
Ta có :
\(x^2-x-6=0\\ \Leftrightarrow x^2+2x-3x-6=0\\ \Leftrightarrow x\left(x+2\right)-3\left(x+2\right)=0\\ \Leftrightarrow\left(x-3\right)\left(x+2\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x=3\left(tm\right)\\x=-2\left(ktm\right)\end{matrix}\right.\)
Với \(x=3\) thì \(P=x^2+2x+1=\left(x+1\right)^2=\left(3+1\right)^2=16\)
Vậy ...