given a function
$$f(x) = \frac{1}{1+e^{-x}}$$
we can express its derivative in terms of the function's output: $$\frac{df}{dx} = f(x) - f(x)\cdot f(x)$$
But is it possible to express the derivative of the following function in terms of its output? $$f(x) = \ln(x+1)$$
the derivative is: $$\frac{df}{dx} = \frac{1}{x+1}$$
But it's in terms of the argument of the function, not its output value :(
This would mean I need to store input argument in my code, and unfavorable, as it will reduce performance.