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