\(P=x+\sqrt{4x^2-4x+1}=x+\sqrt{\left(2x-1\right)^2}=x+\left|2x-1\right|\)
Thay x=-2,5 vào P, ta được:
\(P=-2,5+\left|2\cdot\left(-2,5\right)-1\right|\)
\(=-2,5+\left|-5-1\right|=-2,5+6=3,5\)
\(M=\sqrt{x^2}+\sqrt{x^2+6x+9}-2x+1\)
\(=\sqrt{x^2}+\sqrt{\left(x+3\right)^2}-2x+1\)
=|x|+|x+3|-2x+1
Thay x=3 vào M, ta được:
\(M=\left|3\right|+\left|3+3\right|-2\cdot3+1\)
=3+6-3+1
=6+1=7