2. Consider the following switching circuit with a RC load and duty cycle, D. Analyze the circuit during on and
off periods of the switch, SW and derive expressions for $v_c(t)$ in terms of $V_s$, D, R and C when SW is closed (0
$<t<DT$) and when SW is open ($DT <t<T$).
Also, sketch the capacitor voltage, $v_c(t)$, assuming R = 1 k?, C = 1 µF, duty cycle D = 0.2, switching frequency,
f = 1 KHz. What are the minimum and maximum values of $v_c(t)$?