simulate this circuit – Schematic created using CircuitLab
I have to calculate the energy of the inductors magnetic field at t = 6 ms.
I am given: E = 50 V, R1 = 10 Ω, R2 = 15 Ω, R3 = 20 Ω and L = 0.1 H
So at t < 0, the switch is closed and the current is flowing. In the parallel section, we get I1 and I2, since the inductor formula is time-dependent and it is t < 0 the inductor will have no voltage and will behave like a wire.
I calculate the total resistance in the parallel and add R3 for Rtotal;
$$ R_{total} = (\frac{1}{R_1} + \frac{1}{R_2})^{-1} + R_3 = 26 Ω $$
$$ I = \frac{U}{R_{total}} = \frac{50}{26} = 1.92 A $$
Now I can calculate the voltages in the circuit parts;
$$ U_{R3} = I * R_3 = 1.92 * 20 = 38.40 V $$
The voltage in parallel should be the same so UR1 = UR2 and together with UR3 should amount to 50 V, 50 - 38.40 = 11.60V in parallel.
At t = 0 the switch is open. The current stops flowing from the source and the depletion of the inductor starts.
It is a falling function the only voltage provider is the inductor;
$$ I = \frac{U_L}{R_1 + R_2} \rightarrow 1.92 = \frac{U_L}{25} \rightarrow U_L = 48 V $$
So since it is t = 0 things will remain the same;
$$ I_L = 1.92 \exp{\frac{-0}{\tau}} = 1.92 A $$
$$ U_L = 48 \exp{\frac{-0}{\tau}} = 48 V $$
At t = 6ms = 0.006 s;
$$ \tau = \frac{L}{R_{total}} = \frac{0.1}{25} = 0.004 $$
$$ I_L = 1.92\exp{\frac{-0.006}{0.004}} = 0.42 A $$
$$ U_L = 48\exp{\frac{-0.006}{0.004}} = 10.71 V $$
The energy of the inductor at t = 6 ms;
$$ W_L = \frac{Li^2}{2} = \frac{0.1 * 0.42^2}{2} = 0.008 J $$