The energy of a rotating cylinder is \( E = \frac{1}{2} I \omega^2 \), where \( I = \frac{1}{2} m r^2 \) and \( \omega = 2\pi n \). The energy used in heating the cylinder is related to the temperature change, and after simplifying the formula, we obtain:
\[
\Delta T = \frac{\pi^2 n^2 d^2}{8s}
\]