Complete function for linear drag