Linear and exponential smoothing 

https://editor.p5js.org/simontiger/sketches/ABdeWZVvs

Smoothing Gif1.gif

The white circle is just the raw mouse movement. The blue circle is with linear smoothing, which means it goes at a fixed speed towards the mouse. The red circle is with exponential smoothing, which means it goes a fixed percentage of the way towards the mouse each frame. So the blue one just abruptly stops, and the red one slows down and stops.

The motion of the red one is a lot prettier, but nonetheless the math for it is also a lot simpler:

IMG_20200704_132740.jpg