Model an AC-to-DC full-wave rectifier with four diodes and a capacitor for smoothing the output.
Plot the input voltage vi and the voltage rectified by the diodes, vr.
When vr increases, vo[t]=vr[t]; it charges the capacitor and supplies current to the load. When vr starts to decrease (vr'[t]<0), the capacitor discharges through the load and the output voltage followsvo'[t]=vo[t]/cr.
Simulate the system.
Plot the output voltage smoothened by the capacitor.