is f(x)=3x-7 a one to one function

Yes, all straight lines are one-to-one (in the Cartesian plane), so are polynomials between extrema.