Three techniques for the self-consistent solution of the diffusion equation, which describes the distribution of carriers in semiconductor lasers and optical amplifiers, and the EM wave equation have been investigated. The relative merits of a Jacobian tri-diagonal technique, a perturbation approach and a transfer matrix method are identified.