In general, if you want to go between two points and play with the way it moves, one way is to use linear interpolation + an easing curve.
linear interpolation (aka 'lerp'): just do lerp(start,end,t) = start+(end-start)*t, and you move from end to start at constant speed. t is the time variable.
easing: do the above, but 'warp' t before passing it to the linear interpolation function by passing it through an easing function. So, posn = lerp(a,b,ease(t)) Depending on the easing function you use, you will accelerate in, out, or both ways.
I don't know what language you're using but you can probably find a nice set of easing functions for it, or adapt one from a different language -- here's a set ported to C# by Renaud Bedard:
http://theinstructionlimit.com/?p=401