Given the two points (3,1) and (5,4), find the equation of the exponential function that passes through these two points.