Note on self-phase modulation and cross-phase modulation