m是方程x^2-3x+1=0的一个根
m^2-3m+1=0
m≠0
m+1/m=3
m^2-2m=m-1
m^2+1=3m
m^2-2m+3/(m^2+1)
=m-1+3/3m
=m+1/m-1
=3-1
=2