What was a problem for classical physics ?
Classical mechanics predicted a varying speed of light , which could not be resolved with the constant speed predicted by Maxwell 's equations of electromagnetism ; this discrepancy was corrected by Einstein 's theory of special relativity , which replaced classical mechanics for fast - moving bodies and allowed for a constant speed of light .