If you want the gory math and physics details, read
Performance Cycling: A Scientific Way to Improve Your Cycling Performance by Stuart Baird
It is presented in a light hearted way while giving you the details behind common and uncommon riding practices.