The energy dissipated into the resistor is the actual energy
delivered to the load. To evaluate the circuit operation over
both the steady-state and switching portions, we will break
to waveform into four intervals: (0−t0), (t1−t2), (t2−t3), and
(t3−t4).