Finding f in terms of v, m, and r