There is a passage in a physics textbook I don't quite follow. Since my question is mathematical, I've decided to post it here. The book says:
Let $V$ be the volume of a molecule and assume $V = nr^3$. Then, because the incompressibility $K$ is defined as $K = -V \frac{\partial P}{\partial V}$, and pressure $P$ is defined as $P = - \frac{\partial U}{\partial V}$, one finds $K =V \frac{\partial ^2 U}{\partial V^2}$.
Using $V = nr^3$, $P = -\frac{dU}{dr} \frac{dr}{dV} = - \frac{1}{3nr^2} \frac{dU}{dr}$. Thus the incompressibility becomes
$$K = -nr^3 \frac{dP}{dr} \frac{dr}{dV} = \frac{r}{9n} \frac{d}{dr} \left[\frac{1}{r^2} \frac{dU}{dr} \right]$$
Question 1
I don't quite see how this last expression is obtained. I know that since $V = nr^3$ we have $\frac{dV}{dr} = 3nr^2$, so $\frac{dr}{dV} = \frac{1}{3nr^2}$. Thus, I see how the expression for $P$ is obtained. Also I see that for $K$ we have $K = -nr^3 \frac{d}{dr} \left[ -\frac{1}{3nr^2} \frac{dU}{dr} \right] \frac{dr}{dV}$, but I have a hard time working this out algebraically to get the expression above. If anyone can show me the intermediate steps here, then I would be very grateful.
The book further states:
At the equilibrium position $r = r_0$, $\frac{dU}{dr} = 0$. Thus
$$K_0 = \frac{1}{9nr_0} \left(\frac{d^2 U}{dr^2} \right)_0$$
Question 2
This confuses me. If $\frac{dU}{dr} = 0$ and $K = \frac{r}{9n} \frac{d}{dr} \left[\frac{1}{r^2} \frac{dU}{dr} \right]$, the shouldn't we get simply $K = 0$?
Any help on any of these questions will really be appreciated!
1. $$ K=-V\frac{\partial P}{\partial V}=-V\frac{\partial P}{\partial r}\frac{\partial r}{\partial V} =-nr^3\frac{\partial P}{\partial r}\frac{\partial r}{\partial V} =-nr^3\frac{\partial P}{\partial r}\frac{1}{3nr^2}\\ =-nr^3\frac{1}{3nr^2}\frac{\partial}{\partial r}\left[-\frac1{3nr^2}\frac{\partial U}{\partial r}\right] =\frac{r}{9n}\frac{\partial}{\partial r}\left[\frac1{r^2}\frac{\partial U}{\partial r}\right] $$ 2. $$ \frac{\partial}{\partial r}\left[\frac1{r^2}\frac{\partial U}{\partial r}\right]=-\frac2{r^3}\frac{\partial U}{\partial r}+\frac1{r^2}\frac{\partial^2 U}{\partial r^2} $$