Then y = k1(x+1)+k2/(x+1).
K 1+k2=3
3k 1+k2/3=7
Solution: k2=9/4 and k2=3/4.
So the analytical formula is: y = 9 (x+1)/4+3/4 (x+1).
When x = 2, y = 9 * 3/4+3/4 * 3 = 27/4+1/4 = 7.