用基本不等式来求,设y=x+1/(x-1)
∴x-1>0
y=x-1+1/(x-1)+1≥1+2*根号下(x-1)*1/(x-1)≥3
当且仅当x-1=1/(x-1),即x=2时取“=”
∴当x=2时,y的最小值是4