I'm trying to solve $\displaystyle\int \frac{m \; dv }{mg-kv^2}$. Plugging this into Wolfram Alpha produces $$ \sqrt{\frac{m}{gk}} \tanh^{-1} \left( \sqrt{\frac{k}{gm}}v \right).$$ My question is, what happens when $\displaystyle v> \sqrt{\frac{gm}{k}}$? Then it seems like you're taking the inverse hyperbolic tangent of something greater than $1$, which isn't real.
So is there no real solution to this integral for $\displaystyle v> \sqrt{\frac{gm}{k}}$? Or if there is, what is it?
Let we re-construct the problem from scratch. We have a free-fall motion ($a=g$) and a dissipative force (friction $-kv^2$). Our body starts at $t=0$ with initial speed $v_0=v(0)$ and we want to understand its speed at $t=T>0$. We have:
$$ a(t) = \frac{dv}{dt} = \frac{mg-kv^2}{m} = g-\frac{k}{m}v^2$$ hence $$ \frac{dt}{dv} = \frac{1}{g-\frac{k}{m}v^2} $$ and by integrating both sides over the interval $(v(0),v(T))$ we get: $$ T = \int_{v(0)}^{v(T)}\frac{dv}{g-\frac{k}{m}v^2} $$ We may notice that $v_L=\sqrt{\frac{mg}{k}}$ is a limit speed: if $v_0<v_L$, $v(t)$ is an increasing function bounded above by $v_L$; if $v_0>v_L$, $v(t)$ is a decreasing function bounded below by $v_L$.
In the first case
$$ T = \sqrt{\frac{m}{gk}}\left[\text{arctanh}\left(\frac{v(T)}{v_L}\right)-\text{arctanh}\left(\frac{v(0)}{v_L}\right)\right]$$ from which: $$ \exp\left(2T\sqrt{\frac{gk}{m}}\right)=\frac{v_L+v(T)}{v_L-v(T)}\cdot\frac{v_L-v_0}{v_L+v_0} $$ that holds also in the second case$^{(*)}$. Solving that with respect to $v(T)$, $$ \frac{1+v(T)/v_L}{1-v(T)/v_L}=\frac{1+v_0/v_L}{1-v_0/v_L}\,\exp\left(2T\sqrt{\frac{gk}{m}}\right)$$ leads to: $$\boxed{\, v(T) = v_L\cdot\frac{\frac{1+v_0/v_L}{1-v_0/v_L}\,\exp\left(2T\sqrt{\frac{gk}{m}}\right)-1}{\frac{1+v_0/v_L}{1-v_0/v_L}\,\exp\left(2T\sqrt{\frac{gk}{m}}\right)+1}.}$$ $(*)$ The crucial fact is that $\frac{v_L-v_0}{v_L-v(T)}$ is positive anyway for $T>0$, and $$\exp\left(2\,\text{arctanh}(z)\right) = \frac{1+z}{1-z} $$ holds for every $z\neq 1$.
Of course we have not studied the case $v_0=v_L$: in such a case the speed is simply constant.