Density \( \rho \) is inversely proportional to volume \( V \). When volume increases due to heating, density decreases:
\[
\frac{\Delta \rho}{\rho} \approx -\gamma \Delta T
\]
Where:
\[
\gamma = 5 \times 10^{-4}\ ^\circ \text{C}^{-1}, \quad \Delta T = 40^\circ\text{C}
\]
\[
\Rightarrow \frac{\Delta \rho}{\rho} = -5 \times 10^{-4} \times 40 = -0.02
\]
Hence, the magnitude of fractional change in density is approximately \(0.02\).