Optical fiber theory