When the inductor is charging, V is the voltage across the inductor, Vin -Vout and Dt is the time that S1 is closed. When the inductor is discharging, V is simply Vout and Dt is the time S2 is closed. (Of course this assumes there is no voltage drop across the switches, which in practice is not the case but we’ll deal with that later.) It should be obvious that