By Hand
Kirchhoff’s Voltage Law applied to a series RL circuit gives \[
L\,\frac{dI}{dt} + RI = E(t),
\] which we rewrite in standard linear form by dividing through by \(L\): \[
\frac{dI}{dt} + \frac{R}{L}\,I = \frac{E(t)}{L}.
\]
With the given values \(R = 4\), \(L = 0.1\), \(E(t) = 12\sin(10t)\): \[
\frac{dI}{dt} + 40\,I = 120\sin(10t), \qquad I(0) = 0.
\]
Step 1 — Compute the integrating factor.
\[
\mu(t) = e^{\int 40\,dt} = e^{40t}.
\]
Step 2 — Multiply and integrate.
\[
\frac{d}{dt}\!\left[e^{40t} I\right] = 120\,e^{40t}\sin(10t).
\]
We need \(\displaystyle\int e^{40t}\sin(10t)\,dt\). Use the formula \[
\int e^{at}\sin(bt)\,dt = \frac{e^{at}}{a^2+b^2}\bigl(a\sin(bt) - b\cos(bt)\bigr) + C,
\] with \(a = 40\) and \(b = 10\): \[
\int e^{40t}\sin(10t)\,dt
= \frac{e^{40t}}{1600+100}\bigl(40\sin(10t) - 10\cos(10t)\bigr) + C
= \frac{e^{40t}}{1700}\bigl(40\sin(10t) - 10\cos(10t)\bigr) + C.
\]
Therefore \[
e^{40t} I
= 120 \cdot \frac{e^{40t}}{1700}\bigl(40\sin(10t) - 10\cos(10t)\bigr) + C
= \frac{120}{1700}\,e^{40t}\bigl(40\sin(10t) - 10\cos(10t)\bigr) + C.
\]
Step 3 — Solve for \(I(t)\).
Dividing by \(e^{40t}\): \[
I(t) = \frac{120}{1700}\bigl(40\sin(10t) - 10\cos(10t)\bigr) + Ce^{-40t}.
\]
Simplify \(\dfrac{120}{1700} = \dfrac{12}{170} = \dfrac{6}{85}\): \[
I(t) = \frac{6}{85}\bigl(40\sin(10t) - 10\cos(10t)\bigr) + Ce^{-40t}
= \frac{240}{85}\sin(10t) - \frac{60}{85}\cos(10t) + Ce^{-40t}.
\]
Step 4 — Apply the initial condition \(I(0) = 0\).
\[
0 = \frac{240}{85}(0) - \frac{60}{85}(1) + C
= -\frac{60}{85} + C
\quad\Longrightarrow\quad
C = \frac{60}{85} = \frac{12}{17}.
\]
The particular solution is \[
\boxed{I(t) = \frac{240}{85}\sin(10t) - \frac{60}{85}\cos(10t) + \frac{12}{17}\,e^{-40t}.}
\]
Steady-state and transient interpretation.
The term \(\dfrac{12}{17}\,e^{-40t}\) is the transient part: it decays rapidly to zero (time constant \(\tau = 1/40 = 0.025\) s). The remaining terms \[
I_{\text{ss}}(t) = \frac{240}{85}\sin(10t) - \frac{60}{85}\cos(10t)
\] constitute the steady-state (forced) response, which oscillates at the driving frequency \(\omega = 10\) rad/s. We can write this in amplitude–phase form:
\[
I_{\text{ss}}(t) = A\sin(10t + \phi),
\]
where \[
A = \sqrt{\left(\frac{240}{85}\right)^2 + \left(\frac{60}{85}\right)^2}
= \frac{1}{85}\sqrt{240^2 + 60^2}
= \frac{60\sqrt{17}}{85}
= \frac{12\sqrt{17}}{17}
\approx 2.91\text{ A}.
\]
The time constant \(\tau = L/R = 0.1/4 = 0.025\) s means the transient dies out within a fraction of a second — much faster than the period of the driving signal \(T = 2\pi/10 \approx 0.63\) s.