The functions $f(x) = \tanh(x/2)$ and $f(x) = \coth(x/2)$ satisfy the nonlinear differential equation:
$$-f'' + \textstyle\frac{1}{2}(f^2 - 1)f = 0$$
Is there any way I can find the more general solution to this differential equation knowing the example tanh and coth solutions?
First integral
As usual with a kinetic equation in a potential field, multiply with $2f'$ and integrate $$ -f'(x)^2+\frac14(f(x)^2-1)^2=C $$
Reparametrization of the level curve
This has the general form $A^2-B^2=C$ and can thus be parametrized by hyperbolic functions.