In particular, tanh(x + I*pi/2) = coth(x) and coth(x + I*pi/2) =
tanh(x). You can verify this with SymPy:
In [22]: x = Symbol('x', real=True)
In [23]: tanh(x + I*pi/2).expand(complex=True).simplify()
Out[23]:
1
───────
tanh(x)
In [24]: 1/tanh(x + I*pi/2).expand(complex=True).simplify()
Out[24]: tanh(x)
But note that the arbitrary constant in the solution of your ODE is
like coth(a*t + C1). So the solution represents both tanh() and
coth(), depending on the value of C1.
Aaron Meurer