Ta có : \(f\left(x\right)=x^2+2x+1=\left(x+1\right)^2\)
a, \(f\left(1\right)=\left(1+1\right)^2=2^2=4\)
\(f\left(0\right)=\left(0+1\right)^2=1^2=1\)
b, Ta có : y = 1 hay \(f\left(x\right)=1\)
\(\Leftrightarrow\left(x+1\right)^2=1\Leftrightarrow x^2+2x+1=1\)
\(\Leftrightarrow x^2+2x=0\Leftrightarrow x\left(x+2\right)=0\Leftrightarrow x=0;-2\)
Vậy \(x=\left\{0;-2\right\}\)