I am creating a video game, where the drag force of an object is proportional to its velocity. Every object has a mass of $1$ so this is equivalent to a drag acceleration.
$$ a_{d} = \ln(1 - k) \times v $$
If the constant $k$ is $0.1$ then, after one second, there is a $10\%$ reduction in an object's velocity due to this force.
I have the following formula to calculate velocity from constant acceleration.
$$v = u + at$$
However, I need this to work with variable acceleration (including the drag force which depends on velocity, and a constant acceleration $a_{c}$):
$$ a = a_{c} + a_{d} $$
What changes should I make to the formula to allow this?
From there, I'm hoping to find out how to update the following formula as well, which should calculate displacement ($s$) from starting velocity ($u$), acceleration and time:
$$ s = ut + \frac{1}{2}at^2 $$