A semiconductor \( pn \) junction at thermal equilibrium has the space charge density \( \rho(x) \) profile as shown in the figure. The figure that best depicts the variation of the electric field \( E \) with \( x \) is ( \( W \) denotes the width of the depletion layer): 
Extrinsic semiconductors are made by doping pure or intrinsic semiconductors with suitable impurity. There are two types of dopants used in doping, Si or Ge, and using them p-type and n-type semiconductors can be obtained. A p-n junction is the basic building block of many semiconductor devices. Two important processes occur during the formation of a p-n junction: diffusion and drift. When such a junction is formed, a ’depletion layer’ is created consisting of immobile ion-cores. This is responsible for a junction potential barrier. The width of a depletion layer and the height of potential barrier changes when a junction is forward-biased or reverse-biased. A semiconductor diode is basically a p-n junction with metallic contacts provided at the ends for application of an external voltage. Using diodes, alternating voltages can be rectified.
