Ta co:\(P=-x^2+2x+5\)
\(P=-\left(x^2-2x+1\right)+6\)
\(P=-\left(x-1\right)^2+6\)
Do \(\left(x-1\right)^2\ge0\)\(\Rightarrow-\left(x-1\right)^2\le0\)
\(\Rightarrow P\ge6\)
Dau ''='' xay ra khi va chi khi
\(\left(x-1\right)^2=0\)
\(\Rightarrow x-1=0\)
\(\Rightarrow x=1\)
Vay MAX cua P=6 khi x=1