Theo Vi- ét ta có: \(\left\{{}\begin{matrix}x_1+x_2=\dfrac{-b}{a}\\x_1.x_2=\dfrac{c}{a}\end{matrix}\right.\)
Suy ra: P = \(\dfrac{8+6\left(x_1+x_2\right)+\left(x_1+x_2\right)^2}{4+2\left(x_1+x_2\right)+x_1x_2}\)
Giả sử 0 \(\le x_1\le x_2\le2\) ta có: \(x_1^2\le x_1x_2\); x22 \(\le4\)
Do đó: \(x_1^2+x_2^2\le x_1x_2+4\) suy ra \(x_1^2+x^2_2+2x_1x_2\le4+3x_1x_2\)
hay \(\left(x_1+x_2\right)^2\le4+3x_1x_2\)
Suy ra P \(\le\dfrac{8+6\left(x_1+x_2\right)+4+3x_1x_2}{4+2\left(x_1+x_2\right)+x_1x_2}\) = 3