is called the softplus function. Since gives , the logarithm is always positive, so the domain is all real numbers and the range is . The inside increases monotonically and is increasing, so the whole function is monotonically increasing.
As , and , so on the left (the -axis) is an asymptote. As , , so , and on the right the line is an asymptote. The graph is thus a smoothly bent shape, flat near on the left and approaching the slope- line on the right.
The derivative is exactly the logistic (sigmoid) function:
Its value lies between and , tending to as and to as . The second derivative is positive, so the graph is always convex.
Here are some values; for large the output is almost equal to .
The ReLU , common in machine learning, has a corner at the origin where it is not differentiable; softplus is a smooth approximation that rounds off that corner, staying rounded near the origin while nearly coinciding with ReLU far away. It is used as an activation function in neural networks and to parametrize quantities that must stay positive, such as a variance or a population count. Because its derivative is the sigmoid — equivalently, softplus is the antiderivative (integral) of the sigmoid — this elegant relationship also simplifies gradient computations.