a: \(P=\dfrac{x\left(x-1\right)\left(x^2+x+1\right)}{x^2+x+1}-\dfrac{x\left(2x+1\right)}{x}+\dfrac{2\left(x-1\right)\left(x+1\right)}{x-1}\)
\(=x^2-x-2x-1+2x+2\)
\(=x^2-x+1\)
b: \(P=x^2-2\cdot x\cdot\dfrac{1}{2}+\dfrac{1}{4}+\dfrac{3}{4}\)
\(=\left(x-\dfrac{1}{2}\right)^2+\dfrac{3}{4}>=\dfrac{3}{4}\)
Dấu '=' xảy ra khi x=1/2