The study of how muscles work, including the processes of contraction, relaxation, and energy metabolism.