So I have this question here which says:
"An object of mass m is thrown vertically upward from the surface of the earth. It is subject to a constant gravitational field and air resistance proportional to the square of the object's velocity. If $g > 0$ is the constant acceleration due to gravity and $b > 0$ is the coefficient of quadratic air resistance, then Newton's second law gives
$\frac{dv}{dt}=-g-\frac{b}{m}v^2$;
where v(t) = $\frac{dz}{dt}$ is the object's velocity as a function of time $t= 0$. (Here we assume that when the object is moving upward, its velocity is positive). Solve the differential equation to find $v(t)$ and the height $z(t)$ of the object as it travels upward. Find the maximum height of the object, if its initial velocity is $v_0 > 0$."
This is obviously separable and I get
$\frac{dv}{-g-\frac{b}{m}v^2}=dt$
Which I feel I did correctly. I should then be able to integrate and then solve...
If I integrate, I get...
$\int_{v_o}^v \frac{dv}{-g-\frac{b}{m}v^2}$ = $\int_{0}^t dt$
I assume my bounds are correct. If I try to integrate tough, I get a really nasty substitution problem and end up with arc tan so I'm a little skeptical of if that's the right process...
Any guidance?
Your way is true and answer is right. For an object of mass $m>0$ which is thrown vertically upward from the surface of the earth, and air resist proportional to the square of the object's velocity, with $b>0$ is the coefficient of quadratic air resistance, you obtain $$\int_{v_o}^v \frac{dv}{-g-\frac{b}{m}v^2}=\int_{0}^t dt$$ by integration you have $$\color{red}{\frac{-1}{g}\sqrt{\frac{mg}{b}}\arctan(\sqrt{\frac{b}{mg}}v)\Big|_{v_0}^v=t}$$ then object goes up untill stop (for a moment), in this case we have $v=0$ so $$\frac{-1}{g}\sqrt{\frac{mg}{b}}\Big(-\arctan(\sqrt{\frac{b}{mg}}v_0\Big)=t$$ and $$\color{blue}{t_{top}=\sqrt{\frac{m}{bg}}\arctan\Big(\sqrt{\frac{b}{mg}}v_0\Big)}$$