I'm completely stuck, I think I have to use Newton's second law but I have no idea where to start, any help would be appreciated!
At time $t=0$ a particle of unit mass is projected vertically upward with velocity $v_0$ against gravity, and the resistance of the air to the particle's motion is $k$ times its velocity. Show that during its flight the velocity $v$ of the particle at time $t$ is:
$$v = \left(v_{0} + \frac{g}{k}\right) e^{-kt} - \frac{g}{k}$$
Deduce that the particle reaches its greatest height when
$$t = \frac{1}{k} \ln\left({1+\frac{kv_{0}}{g}}\right)$$
and that the height reached is
$$ \frac{v_{0}}{k} - \frac{g}{k^2} \ln{\left(1 + \frac{kv_{0}}{g}\right)}$$
Thanks!
After making edits, my original comment was too long. So, I've made it into an answer. Note: I had deleted my answer, but I just undeleted for more of a hint to the problem rather than a full solution (as well as for the few sentences following this.)
What were your forces acting on the ball? When you're looking to write a differential equation for an introductory physics course (involving air resistance or for SHM), you should immediately think of an equation involving net force or one that involves net torque ($\sum F = {ma}$ or $\sum \text{torque} = I\alpha$). Obviously in this case you want to deal with forces.
To expand, once you write your net force statement $\sum F = ma$, you can then rewrite $a$ as $\frac{dv}{dt}$ and simply separate variables and integrate both sides. Note that the mass is considered $1$ so your integration is made slightly easier. It will take some "prettying up" after you integrate. Also, a hint for the second part, when is a key feature when something is at its max height even for just an instant?