What is the inverse of the one to one function f(x)=2x?

A.) f^-1(x)=x-2
B.) f^-1(x)=1/2x
C.) f^-1(x)=x+2
D.) f^-1(x)=2x

B.) f^-1(x)=1/2x