\(\left\{{}\begin{matrix}y\left(2\right)=0\\-\frac{b}{2a}=2\\y\left(0\right)=4\end{matrix}\right.\) \(\Leftrightarrow\left\{{}\begin{matrix}4a+2b+c=0\\4a+b=0\\c=4\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}a=1\\b=-4\\c=4\end{matrix}\right.\)
\(\Rightarrow y=x^2-4x+4\)