Ta có : \(P\left(\dfrac{1}{2}\right)=a\left(\dfrac{1}{2}\right)^2+2.\dfrac{1}{2}+1=1\)
=> \(\dfrac{1}{4}a+1+1=1\)
\(\dfrac{1}{4}a=-1\)
\(a=-1:\dfrac{1}{4}\)
a=-4
Ta có: \(P\left(x\right)=ax^2+2x+1\)
⇒ \(P\left(\dfrac{1}{2}\right)=a.\left(\dfrac{1}{2}\right)^2+2.\dfrac{1}{2}+1=1\)
\(=\) \(a.\dfrac{1}{4}+1+1\) \(=\dfrac{a}{4}+1:1\)
\(=\dfrac{a}{4}+1\)
⇒ \(\dfrac{a}{4}+1\)⇔ \(\dfrac{a}{4}-1\) ⇔ \(a=-4\)
Vậy hệ số a là \(-4\)