y1=k/x
y2=m(x-2)
y=k/x-m(x-2)
x=3
y=k/3-m=5 (1)
x=1
y=k+m=-1 (2)
(1)+(2)
4k/3=4
k=3
m=-4
所以y=3/x+4x-8