In this study the effect of optical feedback in semiconductor laser diodes (LD) has been examined using small signal analysis. The transfer function of LD is given as H(jω-m$/)D and transfer function of external cavity LD is given as TF(jω-m$/)HD respectively. The investigated parameters of these transfer functions are external cavity length (Lext), line-width enhancement factor (α) and mirror power reflection coefficient (R). The gain change occurring due to optical feedback noise is shown by broadening the bandwidth and narrowing the frequency spectra and the state of chaos (coherence collapse) is determined in each case. By varying the level of reflected optical feedback power (fext) the optical feedback system of LD has been improved. In addition to that the system is driven out of chaos by finding reasonable levels for these variables.