a: \(=\dfrac{x^3-x^2+x+3\left(x^2-1\right)+x+4}{\left(x+1\right)\left(x^2-x+1\right)}\)
\(=\dfrac{x^3-x^2+2x+4+3x^2-3}{\left(x+1\right)\left(x^2-x+1\right)}=\dfrac{x^3+2x^2+2x+1}{\left(x+1\right)\left(x^2-x+1\right)}\)
\(=\dfrac{\left(x+1\right)\left(x^2-x+1\right)+2x\left(x+1\right)}{\left(x+1\right)\left(x^2-x+1\right)}\)
\(=\dfrac{x^2+x+1}{x^2-x+1}\)
b: \(x^2+x+1=\left(x+\dfrac{1}{2}\right)^2+\dfrac{3}{4}>0\)
\(x^2-x+1=\left(x-\dfrac{1}{2}\right)^2+\dfrac{3}{4}>0\)
=>A>0 với mọi x<>-1