Implement the Softplus activation function, a smooth approximation of the ReLU function. Your task is to compute the Softplus value for a given input, handling edge cases to prevent numerical overflow or underflow.
Example:
Input:
softplus(2)
Output:
2.1269
Reasoning:
For x = 2, the Softplus activation is calculated as log(1+ex).