Concept:Solve the given equation for x, then substitute it into the expression.Explanation:Given: x2+1=2x.Rearrange: x2−2x+1=0.Factorise: (x−1)2=0.So, x−1=0 and hence x=1.Now numerator: x4+x21=14+121=1+1=2.Denominator: x2−3x+1=12−3(1)+1=1−3+1=−1.Therefore, value =−12=−2.Answer:−2