P=\(\left(\dfrac{3\left(x+2\right)}{2x^2+8}-\dfrac{2x^2-x-10}{\left(x+1\right)\left[\left(x+1\right)^2-2x\right]}\right):\left(\dfrac{5}{x^2+1}+\dfrac{3}{2\left(x+1\right)}-\dfrac{3}{x-1}\right)\cdot\dfrac{2}{x-1}\)
a) rút gọn P
b)tìm tất cả các giá trị nguyên của x để P có giá trị là bội của 4
a: \(P=\left(\dfrac{3x+6}{2\left(x^2+4\right)}-\dfrac{2x^2-x-10}{\left(x+1\right)\left(x^2+1\right)}\right):\left(\dfrac{10\left(x^2-1\right)+3\left(x^2+1\right)\left(x-1\right)-6\left(x+1\right)\left(x^2+1\right)}{\left(x^2+1\right)\left(x+1\right)\left(x-1\right)\cdot2}\right)\cdot\dfrac{2}{x-1}\)
\(=\left(\dfrac{\left(3x+6\right)\left(x^3+x^2+x+1\right)-\left(2x^2+8\right)\left(2x^2-x-10\right)}{2\left(x^2+4\right)\left(x+1\right)\left(x^2+1\right)}\right)\cdot\dfrac{\left(x^2+1\right)\left(x-1\right)\left(x+1\right)\cdot2}{-3x^3+x^2-3x-13}\cdot\dfrac{2}{x-1}\)
\(=\dfrac{-x^4+11x^3+13x^2+17x+16}{\left(x^2+4\right)}\cdot\dfrac{2}{-3x^3+x^2-3x-13}\)