一元二次方程x2-3x+2=0的两根为x1,x2,∵a=1,b=-3,c=2,∴x1+x2=- b a =3,x1x2= c a =2,则x12+x22=(x1+x2)2-2x1x2=32-2×2=5.故答案为:5