Với \(a\ne0\) từ đề bài ta có:
\(\left\{{}\begin{matrix}-\dfrac{b}{2a}=2\\4a+2b+c=1\\16a+4b+c=-3\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}4a+b=0\\4a+2b+c=1\\16a+4b+c=-3\end{matrix}\right.\)
\(\Rightarrow a=-1;b=4;c=-3\)
Vậy (P): \(y=-x^2+4x-3\)