where $ \tau $ is carrier lifetime, $ p_0 $ is minrority carrier concentration in bulk semiconductor in steady state and
This equation descirbie the situation when the extra carriers was injected to the semiconductor and next we observe how carriers from higher concentrations move to the area of lower concentration. The number of extra carriers will recombine and reduce
In Matlab the bvp4c (boundary value probles for ordiniary differential equations) is involve to solve this equation. The method requires from us to reduce the order of equation by one. Knowing that the diffusion lenght is related with the Einstein Diffusion Coefficient and the Carrier lifetime by
we obtain and equation which can be applay in Matlab using bvp4c function:
The bvp4c function requires the first order differenatial equation \texbf{odefun}, the bounduary conditions \textbf{bcfun} and the guessed value to initiate the computations \textbf{solinit}. To make everything alife lest assume some typical values in our calculations:
- the concentration of carriers near the surface
$p_n[0] = 10^{14}$ - the concentration of carriers in bulk $ p_0 = 10^{13} $
- the diffusion lenght $ L = 6 [\mu m]$
Using above conditions the equations looks like: