t = 0 and the source voltage V S ( t ) = δ ( t ) , where δ ( t ) is the Dirac-Delta function . Solve for the current as a function of time. The result is of the form:
In the given RLC circuit, the inductor and capacitor have no stored energy at timeI ( t ) = e − α t ( γ cos ( β t ) + ϵ sin ( β t ) )
Also, calculate the total energy supplied by the source and the heat dissipated by the resistor. Let these values value be θ and ϕ respectively. Enter your answer as:
α + β + γ + ϵ + θ + ϕ
Bonus: Apply the law of conservation of energy and see if all energy exchanges are accounted for. Also, perform numerical integration using two different numerical methods (Explicit Euler and Runge-Kutta 4th order) and see if the results agree well. Moreover, does the closed-form solution for current satisfy the initial condition?
Note: R = 2 Ω , L = 1 H and C = 0 . 5 F
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
@Steven Chase A very nice solution. Upvoted
@Steven Chase You said you didn't understand some aspects, which is I think impossible.
Thanks for the solution. I have been dwelling on this for several hours and decided to post this problem. Although, I think I might have an explanation.
Consider the circuit equation:
L I ˙ + I R + C Q = δ ( t )
Multiplying both sides by I d t gives:
L I I ˙ d t + I 2 R d t + C Q I d t = δ ( t ) I d t
Integrating both sides from 0 to ∞ :
( ∫ 0 ∞ L I I ˙ d t ) + ∫ 0 ∞ I 2 R d t + ∫ 0 ∞ C Q I d t = ∫ 0 ∞ δ ( t ) I d t ⟹ ( ∫ 0 ∞ L I I ˙ d t ) + ∫ 0 ∞ I 2 R d t + ∫ 0 0 C Q d Q = ∫ 0 ∞ δ ( t ) I d t ∵ Q ˙ = I ∵ Q ( 0 ) = Q ( ∞ ) = 0
Finally: ⟹ ( ∫ 0 ∞ L I I ˙ d t ) + ∫ 0 ∞ I 2 R d t + 0 = ∫ 0 ∞ δ ( t ) I d t
So, the energy supplied by the source is partly dissipated as heat. The other part of this energy causes a sudden current surge, the magnetic energy due to which is initially stored in the inductor. This inductor energy then asymptotically goes to zero as time progresses. So essentially, the integral:
∫ 0 ∞ L I I ˙ d t
Should evaluate to + 0 . 5 . This I am yet to check, but I will do this first thing tomorrow morning. What are your thoughts on this?
The stranger aspect of this problem is the numerics. Did you try that?
Log in to reply
Actually, I did do a quick check and the by using the current expression and it's derivative, I evaluate the integral:
∫ 0 ∞ L I I ˙ d t = − 0 . 5
The sign is off. I think a minus sign forcefully needs to be introduced because as time increases, current decreases. Awaiting your feedback.
Log in to reply
Interesting. So that just means that we have to get rid of our assumption of zero initial current. The inductor energy starts off at plus one half, and then accumulates an additional minus one half, for zero energy after infinite time, just like the current expression dictates. Regarding the numerical approach, I would never try to use numerical methods to simulate a Dirac delta pulse input. I imagine that process would be fraught with peril.
Log in to reply
@Steven Chase – I would still say that the initial condition I ( 0 ) = 0 holds. The strangeness of the nature of the Dirac pulse is what causes an initial surge, which makes the current 'appear' to be non zero initially.
I think I am realising the numerical problems the hard way. Although I did use the definition I presented in my previous exercise for impulse response. The problem I faced was that I used explicit Euler which gave me a meaningful result. But the RK4, which is theoretically more accurate, gave completely wrong solutions.
Log in to reply
@Karan Chatrath – Yeah, I'm a big fan of numerical methods, but I don't use them on anything that has infinities. And since the Dirac delta is infinitely narrow (or something like that), that makes my list of things to avoid.
And then how does the overall energy accounting work? The inductor starts at +0.5 and ends at zero. The capacitor starts at zero and ends at zero. The resistor starts at zero and ends at +0.5. If you sum the deltas for those three components, you get zero. I would want those three deltas to add up to the energy supplied by the source.
Log in to reply
@Steven Chase – Yes, this point bugs me as well. I think the forceful introduction of a negative sign in the inductor energy integral would fix this problem. I have seen this being done in other physics-related calculations too. But this manipulation does not feel natural.
@Steven Chase has used the Laplace transform to solve this problem. That is the recommended approach because the problem greatly simplifies in the Laplace domain as the transformed Dirac function is simply unity. I am presenting an alternative approach to this problem.
The definition of the Dirac Delta function is:
δ ( t ) = h → 0 lim ⎩ ⎪ ⎨ ⎪ ⎧ 0 h 1 0 t < 0 0 ≤ t ≤ h t > h
Now, since we are working in the time-domain, t < 0 becomes irrelevant, making: δ ( t ) = h → 0 lim { h 1 0 0 ≤ t ≤ h t > h
Now, if one were to plot this and compute the area under the curve, one would naturally arrive at the result:
∫ 0 t δ ( t ) d t = 1
So, essentially, the integral of the Dirac delta function is the unit step function ( H ( t ) ). In the case when the unit step occurs at t = 0 , it can practically be treated as a constant function.
So now, let us consider the circuit equation:
L I ˙ + I R + C Q = δ ( t ) Q ˙ = I
Integrate both sides of the above equation.
L e t ∫ 0 t Q d t = Q s This makes the governing differential equation:
L Q ¨ s + R Q ˙ s + C Q s = ∫ 0 t δ ( t ) d t L Q ¨ s + R Q ˙ s + C Q s = H ( t ) L Q ¨ s + R Q ˙ s + C Q s = 1
Now, one can easily solve for Q s ( t ) . Using that result:
Q = Q ˙ s And finally:
I = Q ˙
So the conclusion here is that while dealing with impulse inputs, the way to tackle such a problem would be to compute the unit step response and then differentiate that with respect to time to obtain the impulse response. This makes the problem manageable numerically as well.
@Karan Chatrath A very nice solution. Upvoted.
@Karan Chatrath In the first line you have mentioned the Steven sir, you can even just write Steven sir has used laplace transform without mentioning him.
Simply because you want to gain his attention. :) :) isn't it.
I don't want to hurt you.
Problem Loading...
Note Loading...
Set Loading...
This is a very interesting one. There are some aspects to this that I don't understand.
Differential equations for the inductor and capacitor:
V S − R I − V C = L I ˙ I = C V ˙ C
Substituting the second equation into the first:
V S − R C V ˙ C − V C = L C V ¨ C
Taking the Laplace transform (note that the Laplace transform of δ ( t ) is unity). I will refer to the transformed V C as simply V . There are other terms in the transforms of the dot and double-dot quantities, but these are zero, per the stated initial conditions.
1 − R C s V − V = s 2 L C V V = s 2 L C + s R C + 1 1
Doing the inverse transform gives:
V C ( t ) = 2 e − t sin ( t )
The current is therefore:
I ( t ) = C V ˙ C = e − t ( cos ( t ) − sin ( t ) )
The energy supplied by the source can be calculated using the sampling property of the Dirac delta function:
E S = ∫ 0 ∞ V S ( t ) I ( t ) d t = ∫ 0 ∞ δ ( t ) I ( t ) d t = I ( 0 ) = 1
The energy dissipated in the resistor can be calculated by integrating the instantaneous resistor power:
E R = ∫ 0 ∞ = I 2 ( t ) R d t = 2 1
Here are some things that don't quite add up about this one:
1) The inductor current and capacitor voltage are zero at t = ∞ . Thus they both contain zero energy after infinite time elapses. I therefore expect the total energy dissipated by the resistor to equal the total energy supplied by the source. But this is apparently not the case
2) According to the initial conditions, the inductor current is supposed to be zero initially, but the derived current expression doesn't agree with this.