We start with the moment of inertia about the origin for the system of particles, which is defined as
![{\displaystyle (1)I=\sum _{i}m_{i}{r_{i}}^{2}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/132d190787d09b94a79a3c5303c252763027494a)
Differentiate using the chain rule. Note that a vector dotted into itself yields its magnitude square.
![{\displaystyle {\vec {r_{i}}}\cdot {\vec {r_{i}}}=r_{i}^{2}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/20c89db8d15b7592052cecaa0e0079a19b8e11dd)
This lets us make the connection that
![{\displaystyle I=\sum _{i}m_{i}{r_{i}}^{2}=\sum _{i}m_{i}({\vec {r_{i}}}\cdot {\vec {r_{i}}})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/14bf53c0076eec4cb765c22c2dfa18647e77d8c0)
So after differentiating we get
![{\displaystyle {\frac {dI}{dt}}=\sum _{i}m_{i}{\frac {\vec {dr_{i}}}{dt}}\cdot {\vec {r_{i}}}+{\vec {r_{i}}}\cdot {\frac {\vec {dr_{i}}}{dt}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8534281596628e7c4e78e8347069d01d9a8e0378)
Differentiating again yields
![{\displaystyle {\frac {d^{2}I}{dt^{2}}}=\sum _{i}m_{i}{\frac {d^{2}{\vec {r_{i}}}}{dt^{2}}}\cdot {\vec {r_{i}}}+{\frac {\vec {dr_{i}}}{dt}}\cdot {\frac {\vec {dr_{i}}}{dt}}+{\frac {\vec {dr_{i}}}{dt}}\cdot {\frac {\vec {dr_{i}}}{dt}}+{\vec {r_{i}}}\cdot {\frac {d^{2}{\vec {r_{i}}}}{dt^{2}}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/5e3de317f14e50f0fde2fc507eb26a1ce9a5b5ff)
In short form
![{\displaystyle {\frac {d^{2}I}{dt^{2}}}=2\,\sum _{i}(m_{i}{\dot {\vec {r_{i}}}}\cdot {\dot {\vec {r_{i}}}}+m_{i}{\vec {r_{i}}}\cdot {\ddot {\vec {r_{i}}}})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/9c3bd00fdf362b6a1f004a3d8b8da7028ba95085)
When dealing with a system of particles we found that the kinetic energy associated with a system of particles was
![{\displaystyle T={\frac {1}{2}}\sum _{i}m_{i}{\dot {\vec {r_{i}}}}\cdot {\dot {\vec {r_{i}}}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/229dd39aab774997e345b9ded3577f7c23660f49)
Plugging in T into (6) gives us
![{\displaystyle {\frac {d^{2}I}{dt^{2}}}=4T+2\,\sum _{i}m_{i}{\vec {r_{i}}}\cdot {\ddot {\vec {r_{i}}}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8e367f5f8f5480321a024b88e268f4858636ef37)
Next we need to tackle the
term. We first bring in the potential energy through its connection with force. This part is named the Virial of Claussius.
![{\displaystyle {\vec {f_{i}}}=m_{i}{\ddot {\vec {r_{i}}}}=\nabla _{i}U}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e4e436cf021ff1a33d438672fb23cd2fdc3dcec9)
This gives us the equality
![{\displaystyle 2\,\sum _{i}m_{i}{\vec {r_{i}}}\cdot {\ddot {\vec {r_{i}}}}=\sum _{i}{\vec {r_{i}}}\cdot \nabla _{i}U}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2a232e07e41680ce4e9265dc550c4c83df583845)
Now due to Newton's 3rd law that states for every action there is an opposite and equal reaction we have the forces on the ith particle in our system given by
where
.
So when we go to sum up all the forces we notice 'force pairing' such that
![{\displaystyle \sum _{i}{\vec {f_{i}}}=\sum _{i}\sum _{j>i}{\vec {F_{ij}}}+{\vec {F_{ji}}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/6f50f7988f5221f0b8010ac09bcc38fbc3e6e164)
Plugging this into the virial of Claussius yields
![{\displaystyle \sum _{i}{\vec {f_{i}}}\cdot {\vec {r_{i}}}=\sum _{i}\sum _{j>i}({\vec {F_{ij}}}\cdot {\vec {r_{i}}}+{\vec {F_{ji}}}\cdot {\vec {r_{j}}})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/4e8804e8a4dffc177d6029782be3801a49258d65)
Now we need to take the gradient of the potential energy to get the force. This is a tedious calculation which can be found here (insert link)
![{\displaystyle {\vec {F_{ij}}}=-\nabla _{i}{\frac {Gm_{i}m_{j}}{r_{ij}}}=-{\frac {Gm_{i}m_{j}({\vec {r_{i}}}-{\vec {r_{j}}})}{r_{ij}^{3}}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/0b2616162a22f813609a6794e630debbe2d8dee7)
Inserting this into (13) gives
![{\displaystyle \sum _{i}{\vec {f_{i}}}\cdot {\vec {r_{i}}}=\sum _{i}\sum _{j>i}(-{\frac {Gm_{i}m_{j}({\vec {r_{i}}}-{\vec {r_{j}}})\cdot {\vec {r_{i}}}}{r_{ij}^{3}}}-{\frac {Gm_{i}m_{j}({\vec {r_{j}}}-{\vec {r_{i}}})\cdot {\vec {r_{j}}}}{r_{ij}^{3}}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d9d9f0d52ad0c320b46d8992e57fda803733874c)
The two keys in understanding the above equation is to note that
![{\displaystyle r_{ij}=\vert {\vec {r_{i}}}-{\vec {r_{j}}}\vert }](https://wikimedia.org/api/rest_v1/media/math/render/svg/32f4a0a5e348baee624562185dd823d26ea119ec)
and that
![{\displaystyle \vert {\vec {r_{i}}}-{\vec {r_{j}}}\vert ^{2}=({\vec {r_{i}}}-{\vec {r_{j}}})\cdot ({\vec {r_{i}}}-{\vec {r_{j}}})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/cae6dae86e189e93a19f96ad014742ee230050a7)
So now we add the numerators of (15) to get
![{\displaystyle ({\vec {r_{i}}}-{\vec {r_{j}}})\cdot {\vec {r_{i}}}-({\vec {r_{j}}}-{\vec {r_{i}}})\cdot {\vec {r_{j}}}=({\vec {r_{i}}}\cdot {\vec {r_{i}}}-{\vec {r_{i}}}\cdot {\vec {r_{j}}}+{\vec {r_{j}}}\cdot {\vec {r_{j}}}-{\vec {r_{i}}}\cdot {\vec {r_{j}}})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/07c8341fe99c57e35769e2f1d39fa1dbf4bac2a6)
Next we expand (17) to see that it is equal to (18) and this cancels a power of 2 in the denominator of (15) to finally yeild the expression for potential energy
![{\displaystyle \sum _{i}\sum _{j>i}-{\frac {Gm_{i}m_{j}}{r_{ij}}}=-U}](https://wikimedia.org/api/rest_v1/media/math/render/svg/9ca179cf0573a21027e08acd006c43256a1d8e9b)
So going back to (8) we see
![{\displaystyle {\frac {d^{2}I}{dt^{2}}}=4T-2U}](https://wikimedia.org/api/rest_v1/media/math/render/svg/cee361c92eb77c671ee5a037c7d5e80ad39558a4)
From the energy equation of the system, E = T - U and the key to finish up the virial theorem is to note that the momemt of inertia does not change on average with time ("After one dynamical timescale, the time derivative of I is constant so the second derivative is zero
![{\displaystyle {\frac {d^{2}I}{dt^{2}}}=0}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8dad809c4c5ffb15dcda91b38e5d6fdc326ba500)
This leads to
![{\displaystyle T={\frac {1}{2}}U}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2d00916b1fe25bf81c2bb7fd409cc7831e7d86ec)
plugging this into the energy equation gives us the result of the virial theorem which states that the total energy of a stationary system (no significant dynamical evolution) is one-half the potential energy of the system.
![{\displaystyle E={\frac {1}{2}}U-U=-{\frac {1}{2}}U}](https://wikimedia.org/api/rest_v1/media/math/render/svg/9bbf0897031ba0583c8808313b5b9ed46ec5e812)