# Circuit Theory/1Source Excitement/Example 10

Given:
    $I_{s}(t)=120{\sqrt {2}}cos(377t+120^{\circ })$

## Prior Work calculating Steady State/Particular Solution

Have already found the steady state/particular solution:
    $V_{s}(t)=I_{m}{\frac {\sqrt {(\omega ^{2}L^{2}R)^{2}+(\omega LR^{2})^{2}}}{R^{2}+\omega ^{2}L^{2}}}\cos(\phi +\arctan({\frac {R}{\omega L}}))$
Or numerically:
    $V_{s_{P}}(t)=599\cos(377t+3.30)$

## Calculating the Transient/Homogeneous Solution

Need to find the transient/homogeneous solution to:
    $I_{s}=I_{R}+I_{L}$
    $I_{s}={\frac {Vs}{R}}+I_{L}$
    ${dI_{s} \over dt}={d{\frac {V_{s}}{R}} \over dt}+{dI_{L} \over dt}$
    ${dI_{s} \over dt}={d{\frac {V_{s}}{R}} \over dt}+{\frac {V_{s}}{L}}$
    $0={\frac {1}{R}}{dV_{sH} \over dt}+{\frac {V_{sH}}{L}}$
There is no I$_S$ .. this makes the homogeneous solution easy!
Guess:
    $V(t)_{s_{H}}=A*e^{\frac {-t}{\tau }}$
Finding the time constant:
    ${\frac {-Ae^{\frac {-t}{\tau }}}{\tau R}}+{\frac {A}{L}}e^{\frac {-t}{\tau }}=0$
Dividing out A and the exponential:
    $-{\frac {1}{\tau R}}+{\frac {1}{L}}=0$
Solving for the time constant:
    $\tau =L/R=.001$
Now see if it works:
    ${\frac {Ae^{\frac {-t}{L/R}}}{R}}+{\frac {A(-{\frac {R}{L}})*e^{\frac {-t}{L/R}}}{L}}{\overset {\underset {\mathrm {???} }}{=}}0$
Divide through by A, cancel L's
    $Re^{\frac {-t}{L/R}}-Re^{\frac {-t}{L/R}}{\overset {\underset {\mathrm {???} }}{=}}0$
It works, therefore it must be the solution:
    $v(t)_{s_{H}}=Ae^{\frac {-t}{0.0001}}$

## Determining the Constants

There are two constants. $A$ and $C$ come from any homogeneous solution to a non-homogeneous differential equation equation. These were not ignored in the steady state phasor solutions earlier, the fact that they were not being computed was pointed out.
    $V(t)_{s}=V(t)_{s_{P}}+V(t)_{s_{H}}$
    $V(t)_{s}=599\cos(377t+3.30)+Ae^{\frac {-t}{0.0001}}+C$
There are two initial conditions that have to be true:
* The inductor terminal relationship has to be true at t=0
* initial current through the inductor is zero, thus is an open, thus all the current is going through the resistor

## Finding the two initial Conditions

Two equations are necessary to find A and C:
The inductor's terminal relationship has to be true:
    $V_{s}(t)=L*{di_{L}(t) \over dt}$
We don't know what the inductor's current is, but we know it is 0 at t=0. So we have to solve the equation for i$_L$ and then set that equation equal to zero.
    $\int V_{s}(t)=L*i_{L}(t)$
    $\int (599\cos(377x+3.30)+Ae^{\frac {-t}{0.0001}}+C)dt=L*i_{L}(t)$
    $1.59*sin(377.0*t+3.3)-0.001*Ae^{\frac {-t}{0.0001}}+C*t=L*i_{L}(t)$
    $-0.001*A-0.258=0$
    $A=-258$
The other equation comes from the fact that all the source current is going through the resistor. The initial voltage across the resistor and inductor is determined only by the resistor. The inductor doesn't care about or influence the voltage. The inductor is only worried about maintaining it's energy level (which is assumed to be 0.) So the second equation is:
    $v_{s}(0)=i_{s}(0)*R$
    $599\cos(3.30)+A+C=120{\sqrt {2}}cos(120^{\circ })*10$
    $258+A+C=0$
So
    $C=0$

## Summarizing the Results

    $v_{s}(t)=599\cos(377t+3.30)-258*e^{\frac {-t}{0.0001}}$