How To Calculate Velocity In Terms Of A Function