6

Yeah, you probably are reading this question and thinking I'm one of those engineers who hasn't learned about the s-plane. I can assure you I'm not! I know that the transfer function of an RC circuit (Vout/Vin) has a REAL pole, with no imaginary component at s= -1/RC + j0. I am curious what happens when we excite an RC circuit at its TRUE pole, which is a decaying exponential with the expression e^(-t/RC).

Of course, the output of an RC Low-pass filter will never blow up to infinity. But what about the ratio of the output to the input, which after all, is the transfer function I originally defined?

Well, let's take this to LTSpice. Below is what I've simulated: enter image description here

I would expect Vout/Vin to be infinity everywhere, however what I see is a ramp. I suspect I'm missing something about how to properly interpret the magnitude response of my transfer function with its true pole as an input. A time-domain view such as what I have should explain something, but I can't understand why it's a ramp.

If anyone has any intuition behind this question, please let me know.

Neil_UK
  • 158,152
  • 3
  • 173
  • 387
banjoeschmoe
  • 159
  • 8

5 Answers5

11

Good question, here's my attempt. You still have to convert your input signal from the time domain to s domain, then do the math, then convert the result back to the time domain. That pole just tells you where the resonance is, the behavior of the resonance is usually "growing infinitely forever" - but the exact behavior needs to be found from doing the math.

Using transforms from: https://en.wikipedia.org/wiki/Laplace_transform

$$ \frac{1}{1+sRC}V_i(s)=V_o(s)\\ V_i(t) = V_{i0}e^{-t/(RC)}=V_{i0}e^{-t/\tau}\\ V_i(s) = \frac{V_{i0}}{1/\tau+s}\\ V_o(s) = \frac{1/\tau}{1/\tau+s}\frac{V_{i0}}{1/\tau+s}\\ V_o(s) = \frac{ V_{i0}/\tau}{(1/\tau+s)^2}\\ V_o(t) = (V_{i0}/\tau)\times t e^{-t/\tau} $$

Which gives us: $$ V_o(t)/V_i(t) = \frac{(V_{i0}/\tau)\times t e^{-t/\tau}}{V_{i0}e^{-t/\tau}}\\ V_o(t)/V_i(t) = t\times 1/\tau $$

Predicting that, in the time domain, the ratio of output to input voltage increases linearly with t. In the s-domain, the ratio is infinity.

EDIT: This actually perfectly matches your result, even the correct slope - except there is an offset of 1 unit on the y axis. My guess is that the simulation found the DC point using \$V_{i}=1 \text{ V}\$ at \$t<0\$, so changes the math. The above assumes \$V_{i}=0 \text{ V}\$ at \$t<0\$. So it's pretty much the same, just a little difference because of the initial condition.

If the initial condition was V=1, you can use the superposition principle and add the solution we found (for V=0 until t=0, then decaying) to the solution if V=1 when t was negative and V=0 when t is positive

$$ V_o(t) = (V_{i0}/\tau)\times t e^{-t/\tau}+V_{i0}e^{-t/\tau}\\ V_o(t)/V_i(t) = \frac{(V_{i0}/\tau)\times t e^{-t/\tau}+V_{i0}e^{-t/\tau}}{V_{i0}e^{-t/\tau}}\\ V_o(t)/V_i(t) = t\times 1/\tau+1 $$

Now it exactly matches what you have! So the simulation does use V=1 for when t is negative, and this should clearly show what's happening. Just because something is infinity in the s domain doesn't mean it is in time.

KD9PDP
  • 1,981
  • 7
  • 17
  • nice! .......... +1 – Pete W Mar 06 '21 at 05:01
  • Your result is correct but I have a question. From your first equation you can write `Vo(s)/Vi(s) = 1/(1+s*RC)`. Why can't you take the inverse Laplace transform of this to get `Vo(t)/Vi(t) = e^(-t/(RC))` directly? – emnha Jun 05 '21 at 20:02
4

KD9PDP's answer alreay explains very nice (+1) why the result is as you see it, but there might be an easier way to do it. You already have the impulse response (1) and the input (2):

$$\begin{align} h(t)&=\dfrac{1}{RC}\mathrm{e}^{-\frac{t}{RC}}\tag{1} \\ s(t)&=\mathrm{e}^{-\frac{t}{RC}}\tag{2} \end{align}$$

The convolution integral is now simple because \$h(t)\$ and \$s(t)\$ are simplified before applying the integral:

$$\begin{align} s(t)\star h(t)&=\int_{\tau}{\dfrac{1}{RC}\mathrm{e}^{-\frac{\tau}{RC}}\cdot\mathrm{e}^{-\frac{t-\tau}{RC}}\mathrm{d}\tau} \\ {}&=\int_{\tau}{\dfrac{1}{RC}\mathrm{e}^{-\frac{t}{RC}}\mathrm{d}\tau} \\ {}&=\dfrac{1}{RC}\mathrm{e}^{-\frac{t}{RC}}\cdot t\tag{3} \\ \end{align}$$

Since the variable is \$\tau\$, the integrand is a constant, and integrating it means adding \$t\$, which is the only difference between (3) and (1). As noted in the other answer, it's also a matter of initial conditions (\$\mathrm{i.c.}\$), since LTspice assumes those to be given by the value of the behavioural expression at t=0, which is 1.

a concerned citizen
  • 21,167
  • 1
  • 20
  • 40
  • 1
    Please check your convolution integral. The output cannot grow indefinitely. It's the ratio between output and input that is a ramp, but the output itself is proportional to \$te^{-t/\tau}\$ for \$t>0\$. – Matt L. Mar 06 '21 at 18:02
  • 1
    @MattL. That was a blunder! My mind was ahead at the result and, in my haste, a simple typo `([t]-\tau)` made it seem to shorten the path. Serves me right. I should have stopped and check. Thank you for pointing it out. – a concerned citizen Mar 07 '21 at 11:30
3

If the system's impulse response is \$h(t)=e^{-at}u(t)\$, \$a>0\$, where \$u(t)\$ is the unit step function, and if its input is \$x(t)=e^{-at}u(t)\$, then its response is given by

$$y(t)=te^{-at}u(t)\tag{1}$$

which is a basic result. The function \$(1)\$ is just the inverse Laplace transform of a double real-valued pole:

$$Y(s)=\frac{1}{(s+a)^2}\tag{2}$$

Clearly, the output \$y(t)\$ decays to zero. However, the ratio \$y(t)/x(t)\$ is a ramp for \$t>0\$.

Please note that the ratio \$y(t)/x(t)\$ is not the system's transfer function. The transfer function is the ratio of the Laplace transforms of the input and output:

$$H(s)=\frac{Y(s)}{X(s)}\tag{3}$$

For a first-order lowpass filter with time constant \$\tau\$, \$H(s)\$ is given by

$$H(s)=\frac{1}{1+s\tau}\tag{4}$$

Matt L.
  • 3,641
  • 13
  • 14
  • Is it a general result that the input of the system \$X(s)\$ is such that \$Y(s)/X(s)\$ is infinity, then \$y(t)/x(t)\$ goes to infinity as \$t\$ goes to infinity? – HallEffect Mar 06 '21 at 19:03
  • @HallEffect: No, because for linear time-invariant systems (such as an RC lowpass), \$Y(s)/X(s)\$ equals the transfer function \$H(s)\$, which is actually independent of \$X(s)\$. Also, \$Y(s)/X(s)\$ is usually only infinite for a finite number of certain values of \$s\$ (the poles of the transfer function). – Matt L. Mar 06 '21 at 19:23
  • Doesn't \$H(s)\$ depend on the frequency component of the input? Since \$H(s)\$ has a pole at \$s=-1/ \tau \$, then here the situation is that the input is specifically chosen so that its frequency content coincides with the system's pole? – HallEffect Mar 06 '21 at 19:41
  • @HallEffect: No, the transfer function \$H(s)\$ of an LTI system is independent of the input. And yes, the example was such that the input's pole coincides with the system's pole. – Matt L. Mar 06 '21 at 19:48
  • I'm not sure what I'm missing. It's clear to me that here the form of \$H(s)\$ will always be \$1/(1+s \tau)\$. But I thought the value of \$s\$ will depend on the frequency component of the input. Otherwise, why would it ever matter what the poles or zeros of the transfer function are? – HallEffect Mar 06 '21 at 20:00
  • @halleffect There isn't a singular value of s for the input in this example. That's what tripped me up at first too. The Laplace transform of \$e^{-t/\tau}\$ is not \$\delta(-1/\tau)\$ like it would be if you took a fourier transform of a complex exponential. Because of that, you can't just replace s with 1/tau, and have to keep the s around in the calculations. – KD9PDP Mar 07 '21 at 12:25
2

Here is my (very short) answer:

All the calculations in the frequency domain (transfer function, input-and output impedances, pole location,..) do consider STEADY STATE conditions for the circuit under test. Therefore - due to the time dependence of your input - you cannot expect that the circuit will react upon such an input as predicted by the pole analysis.

The observed response of the circuit will be dominated by the time domain behaviour (transient response)...

Comment (Edit): In his nice answer KD9PDP has shown that we must switch-over to the time domain - nevertheless, making use of the transfer function - to find the correct result.

LvW
  • 24,857
  • 2
  • 23
  • 52
  • Concerning the input-output relation of an LTI system, transfer function, frequency response, and impulse response are equivalent (and complete) descriptions of the system. Consequently, frequency domain descriptions cover everything, including transients. It's a persistent misunderstanding that frequency domain analysis (Fourier, Laplace) just covers "steady state". – Matt L. Mar 06 '21 at 18:05
  • @MattL. It seems clear to me that Laplace analysis covers the full response, but once you substitute \$s=j \omega\$ then isn't the analysis restricted to sinusoidal steady state? – HallEffect Mar 06 '21 at 19:44
  • @HallEffect: No, for stable systems substituting $s=j\omega$ just means that you use the Fourier transform, which is equally complete a description as the Laplace transform or the time domain functions. – Matt L. Mar 06 '21 at 19:51
  • @Matt L, How would you define a transfer function for a system before the transients have disappeared? I think the definition of a transfer function requires two signals at the output and input, respectively, which differ only in amplitude and phase. – LvW Mar 07 '21 at 08:18
  • @LvW: The transfer function of an LTI system is the Laplace transform of its impulse response. Equivalently, it is the ratio of the Laplace transforms of its response $y(t)$ to an input $x(t)$, i.e., \$H(s)=Y(s)/X(s)\$. – Matt L. Mar 07 '21 at 08:24
  • The signals \$x(t)\$ and \$y(t)\$ can have any shape. For a first order lowpass filter (as in the OP), we have \$H(s)=1/(1+s\tau)\$, and we can use it to compute the system's response to any arbitrary input \$x(t)\$. – Matt L. Mar 07 '21 at 08:26
  • @Matt L, I think we speak about different subjects. I did not speak about the validity of the Laplace transform. The questioner has mentioned the transfer function and the pole location of a passive RC circuit - and his question was how the circuits response would be for an input exp(-t/RC) - because he expected that the circuit "will not blow up to infinity" (due to the pole at wp=-1/RC.). In my answer I have mentioned that his expectation is correct because the transfer function H(jw) is defined for sinusoidal signals only. I am sure you will agree to this. Thats all. – LvW Mar 08 '21 at 08:29
  • The frequency response \$H(j\omega)\$ is definitely not only defined for sinusoidal signals. It can be used to compute the response of an LTI system to any input, also the one used in the OP. For an input \$x(t)\$ with Fourier transform \$X(j\omega)\$, the output is given by $$y(t)=\frac{1}{2\pi}\int_{-\infty}^{\infty}H(j\omega)X(j\omega)e^{j\omega t}d\omega$$ There is no restriction whatsoever on \$x(t)\$ other than that its Fourier transform must exist. – Matt L. Mar 08 '21 at 12:41
  • So - how do you define/describe H(jw) ? What is it? How do you explain it with words? What is the meaning of the quantity "w"? I do not speak about the time domain. – LvW Mar 08 '21 at 13:01
  • I still think there is a misunderstanding between us. Let me put it another way: To answer the question, we cannot stay in the frequency domain and simply insert the pole frequency into the transfer function H(jw) with s=jw=-j(1/RC) to get an information about the output signal. This is actually the core of my answer. This in contrast to the classical frequency analysis (for finding the frequency response) where we do nothing else than to set s=jw as a variable or for a specific frequency. Do you now know what I mean? – LvW Mar 08 '21 at 14:17
0

It is ramping to infinity as you expected. The s-domain calculation is a steady-state calculation, and you have an initial transient (your input exponential was effectively a constant '1' for all t < 0). You have to wait for that to decay (i.e. become negligible) -- e.g. a long (infinite) time.

You can see that after 10 time constants, your 'gain' is already 10.

jp314
  • 18,395
  • 17
  • 46