x=2是对称轴
f(x)=a(x-2)^2+b=ax^2-4ax+4a+b
f(0)=3 4a+b=3
10=x1^2+x2^2=(x1+x2)^2-2x1x2=16-2(4a+b)/a
a=1 b=-1
f(x)=(x-2)^2-1