Theoretical mechanics