If \(y = \left(\displaystyle\frac{1}{x}\right)^{x}\), then \(\displaystyle\frac{d^2y}{dx^2} =\)
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(x^{-x}(1+\log x)^{2}-x^{-(x+1)}\)
Here \(y = x^{-x}\). The variable is in the base and in the power, so logarithmic differentiation is used:
\(\log y = -x\log x\)
Differentiating with respect to x (product rule on the right):
\( \displaystyle \frac{1}{y}\frac{dy}{dx} = -\left(x\cdot\frac{1}{x} + \log x\right) = -(1+\log x) \)
\( \displaystyle \frac{dy}{dx} = -y(1+\log x) \)
Differentiating again, by the product rule:
\( \displaystyle \frac{d^2y}{dx^2} = -\frac{dy}{dx}(1+\log x) - y\cdot\frac{1}{x} \)
Putting \(\frac{dy}{dx} = -y(1+\log x)\):
\( \displaystyle \frac{d^2y}{dx^2} = y(1+\log x)^2 - \frac{y}{x} \)
With \(y = x^{-x}\), \(\frac{y}{x} = x^{-x-1} = x^{-(x+1)}\), so
\( \displaystyle \frac{d^2y}{dx^2} = x^{-x}(1+\log x)^2 - x^{-(x+1)} \)