$f_n(x)=nx^n+n\ln(|x|)$.
So this is what we have, I do understand the steps but I got stuck at one step, as follows. Firstly we need to find the derivatives of the function, the first and the second, which are \begin{align} (f_n)'(x)=n^2x^{n-1}+\frac{n}{x}, && (f_n)''(x)=(n−1)n^2x^{n−2}−\frac{n}{x^2}. \end{align} Now in the proof I do not understand why we have to solve the first derivative and get $x$, then substitute $x$ in the second function, like this,
$$ f''_n\left(\frac{1}{\sqrt[n]{-n}}\right)=(n−1) n^2\left(\frac{1}{\sqrt[n]{-n}}\right)^{n-2}-n\left(\frac{1}{\sqrt[n]{-n}}\right)^2 $$
$x$ is give through this process which I understand,

$f'_n(x) = 0$yields $f'_n(x) = 0$. Enclose the equation in double dollar signs to use display mode (equation goes on its own line). Fractions like this:$\frac{1}{-n}$yields $\frac{1}{-n}$. Radicals like this:$\sqrt[n]{k}$yields $\sqrt[n]{k}$. – Brian Tung Jul 12 '22 at 17:10