The Theory of the Synchrotron