#2 :Starting from :
ln y = x - 2.ln (1 + exp x ) + C
Notice that 1 + exp x > 0 for all x, so the absolute value can be taken out.
y = exp ( ln y ) = exp ( x - 2.ln (1 + exp x ) + C )
y = exp x . exp ( - 2.ln (1 + exp x )) . exp C
y = exp x . exp C . ( exp ( ln ( 1 + exp x ) ) ) ^ (-2)
y = exp x . exp C . ( 1 + exp x ) ^ (-2)
Since C is a random constant, so is exp C ( a random positive constant), so I'll denote also C what was previoulsy called exp C :
y = C. exp x / ( 1 + exp x )²
This is your answer.
Now you can use a different function to express it :
cosh u = ( exp u + exp (-u) ) / 2
for all real u.
This function is the hyperbolic cosine ("h" stands for "hyperbolic").
https://en.wikipedia.org/wiki/Hyperbolic_functionTo transform the expression of y, try to factorize by the exponential of the mean :
1 + exp x = exp 0 + exp x = exp (x/2) . ( exp (-x/2) + exp (x/2) )
x/2 being the mean between 0 and x.
It appears that exp (-x/2) + exp (x/2) is the double of cosh x , and finally :
1 + exp x = 2 . exp (x/2) . cosh (x/2)
Replace in the previous expression of y :
y = C . exp x / ( 2 . exp (x/2) . cosh (x/2) )²
y = (C/4) / ( cosh (x/2) )²
and again, C/4 is a random positive constant, that you can as well call C :
y = C / ( cosh (x/2) )²