Pulse broadening from linear and nonlinear dispersion in an optical fiber