Step 1: Starting point, the junction at zero bias:
When the two types of semiconductor join, carriers diffuse across and leave a layer of uncovered ions. This layer is the depletion region, of width $d$ (a few tenths of a micrometre). The ions set up an electric field from the $n$-side to the $p$-side, and a barrier potential $V_0$ between the two sides. For silicon, $V_0$ is about 0.7 V.
An applied voltage $V$ changes the net voltage across the junction, and this decides the width of the depletion region.
Step 2: Forward bias compared with reverse bias:
Forward bias ($p$ to the positive end of the battery): the applied field opposes the built-in field. The net voltage across the junction is $V_0 - V$, which is smaller than $V_0$. A smaller voltage needs a smaller number of uncovered ions to support it, so $d$ decreases. The potential barrier is lowered. Electrons and holes cross the junction in large numbers, so the current is in mA and increases rapidly with $V$.
Reverse bias ($p$ to the negative end of the battery): the applied field adds to the built-in field. The net voltage is $V_0 + V$, which is larger than $V_0$. More ions must be uncovered, so $d$ increases. The barrier is higher, and the majority carriers are held back. A tiny current of $\mu$A flows, due only to minority carriers.
In short, the junction conducts well in one direction and very poorly in the other. This one-way behaviour is what makes rectification possible.
Step 3: Why a rectifier is needed:
The mains supply is a.c., but electronic devices need d.c. A single diode passes only one half of each cycle (half-wave). A full-wave rectifier uses both halves, so it gives a higher average output.
Step 4: Circuit of the full-wave rectifier (centre-tap type):
Components: one transformer whose secondary winding has a middle terminal (centre tap) $C$, two diodes $D_1$ and $D_2$, and a load resistor $R_L$.
Wiring: the ends of the secondary go to the anodes of $D_1$ and $D_2$ respectively. The cathodes are tied together. The load $R_L$ connects this tied point to the centre tap $C$. The a.c. input is fed to the primary.
Step 5: Input current and output current:
Half cycle 1: the upper end is positive, so $D_1$ is forward biased and $D_2$ is reverse biased. Only $D_1$ carries current through $R_L$.
Half cycle 2: the lower end is positive, so $D_2$ is forward biased and $D_1$ is reverse biased. Only $D_2$ carries current, and it flows through $R_L$ in the same direction as before.
Input current: a sine curve that goes above and below the time axis.
Output current: repeated positive humps, one per half cycle, joined at the axis. The curve never goes below the axis, so the current is unidirectional but pulsating. With a 50 Hz input, the humps repeat 100 times per second.
Because both half cycles are used, the average output is larger than that of a half-wave rectifier.
Final Answer:
Forward bias thins the depletion region and lowers the barrier, reverse bias thickens the region and raises the barrier. The two-diode centre-tap circuit rectifies both half cycles, so the output current is unidirectional with double the input frequency.
\[ \boxed{\text{Forward: } d\downarrow,\ V_0-V \qquad \text{Reverse: } d\uparrow,\ V_0+V} \]