Question #N566

The function \(f\) is defined by \(f(x) = \frac{2x}{x+1}\). What is the value of \(f(\frac{1}{2})\)?
A. 1
B. 2
C. 3
D. 4