https://www.mphysicstutorial.com/2020/12/derivation-of-mayers-formula-specific.html