Circuit Theory/TF Examples/Example34/iL

Starting Point
Starting point of iL looks good. Can get the voltage across the inductor and the parallel components. Then a voltage divider is going to help get to the Vc initial condition.

Transfer Function

 * $$H(s)= \frac{i_o}{i_s} = \frac{\frac{1}{R_2 + \frac{1}{sC}}}{\frac{1}{sL}+\frac{1}{R_1}+ \frac{1}{R_2 + \frac{1}{sC}}}$$

L :=1; R1 := 1/2; C := 1/2; R2 := 1.5; simplify((1/(R2 + 1/(s*C))/(1/(s*L) + 1/R1 + 1/(R2 + 1/(s*C))))
 * $$\frac{i_o}{i_s} = \frac{2s^2}{8s^2 + 11s + 4}$$

Homogeneous Solution
Set the denominator of the transfer function to 0 and solve for s: solve(8*s^2 + 11*s + 4)
 * $$s_{1,2} = \frac{-11 \pm \sqrt{7}i}{16}$$

So the solution is going to have the form:
 * $$i_{L_h} = e^{\frac{11t}{16}}(A\cos \frac{7}{16} + B\sin \frac{7}{16}) + C$$

Particular Solution
After a very long time the inductor shorts, all the current flows through it so:
 * $$i_o = 0$$

Initial Conditions
Adding the particular and homogeneous solutions, get:
 * $$i_o(t) = e^{-\frac{11t}{16}}(A\cos \frac{7t}{16} + B\sin \frac{7t}{16}) + C$$

Doing the final condition again, get:
 * $$i_o(\infty) = 0 = C \Rightarrow C = 0$$

Let's try for Vc first. From the terminal relation for a capacitor:
 * $$V_c(t) = \frac{1}{C}\int i_o dt$$

io := exp(-11*t/16)*(A*cos(7*t/16) + B*sin(7*t/16)) VC := int(io,t) We know that initially Vc = 0.5 so at t=0 can find equation for A and B: t :=0; solve(0.5 = VC) At this point mupad goes numeric and get this equation:
 * $$A = - 0.6363636364B - 0.4829545455$$

Need another equation. Can find Vt by adding Vr and Vc. Then from Vt can find expression for the current through the inductor and visit it's initial condition. io := exp(-11*t/16)*(A*cos(7*t/16) + B*sin(7*t/16)) VC := int(io,t) The integration constant is going to be zero because after a long time VC is zero (the inductor shorts). VT := VC + io*1.5 IL := int(VT) Mupad goes numeric.

At this point have to figure out the integration constant. After a long time, the inductor's current is going to be 1 because it shorts the current source. Looking at IL in the mupad window can see that every term is multiplied by e-0.6875t which is going to zero as t goes to &infin;. This means the integration constant is 1.

So add 1 to IL, then set t=0 and IL = 0.5 and again solve for A and B: t :=0; solve (IL + 1 = 0.5) Get this equation:
 * $$A = 0.4107683001B + 0.5463551119$$

Now need to solve the two equations and two unknowns: solve([A = - 0.6363636364*B - 0.4829545455,A = 0.4107683001*B + 0.5463551119],[A,B]) Get:
 * $$A = 0.142578125, B = -0.9829799107$$

So now have time domain expression for io step response:
 * $$i_o(t)\mu(t) = e^{-\frac{11t}{16}}(0.143\cos \frac{7t}{16} - 0.983\sin \frac{7t}{16})$$

Impulse Response
The impulse response is the derivative of the step response: i_u := exp(-11*t/16)*(0.142578125 * cos(7*t/16) - -0.9829799107*sin(7*t/16)) i_s := diff(i_u,t)

Convolution Integral
The first step is to substitute into i_s for t: i_sub := subs(i_s, t = y-x): Now form the convolution integral: f := i_sub*(1 + 3*cos(2*x)): io := int(f,x = 0..y) Replacing y with t: i_o :=subs(io, y=t) There is going to be an integration constant. This value can not be determined because the driving function oscillates. The initial conditions of the inductor and capacitor have already been visited. More information (like a specific value at a future time) is needed in order to compute an integration constant.

Thus the final answer is:
 * $$ i_o = 0.344cos(2t) + 0.314sin(2t) - 0.201e^{-0.6875t}cos(0.438t) + 1.29e^{-0.6875t}sin(0.438t) - 0.143$$