Inverse laplace of high pass RC filter

1. Feb 8, 2009

saxm

1. The problem statement, all variables and given/known data

I'm trying to work out the time domain response of a first order high pass RC filter, eg. http://en.wikipedia.org/wiki/File:High_pass_filter.svg

I've got two solutions, one using laplace and one using differential equations, but they are different. One equation must be wrong, can anyone point out which one? And why?

2. Relevant equations

The laplace transform, or a first order ODE.

3. The attempt at a solution

Using laplace:
$$(v_{in}-v_{out})sC + \frac{0-v_{out}}{R}$$
$$v_{in}sCR = v_{out}(1+SCR)$$
$$v_{out} = v_{i} \frac{s}{s+\frac{1}{CR}}$$

Then I need to take the inverse laplace transform. I can't see any inverse transforms in laplace tables (eg. http://en.wikipedia.org/wiki/Laplace_transform" [Broken])for functions of the form $$\frac{s}{s+\alpha}$$, but I see that multiplication by s in the frequency domain is differentiation in the time domain, so I tried taking the inverse laplace of $$\frac{1}{s+\frac{1}{CR}}$$ to obtain $$f(t)$$ and then differentiating the result to give $$f'(t)$$, ie:

$$F(s) = \frac{1}{s+\alpha}$$
$$f(t) = e^{-\alpha t}$$

and I want $$f'(t)$$, the first derivative of $$f(t)$$, so:

$$f'(t) = -\alpha e^{-\alpha t}$$

and substituting in my values:

$$v_{out}(t) = - v_{in} \frac{e^{\frac{-t}{RC}}}{RC}$$

Next, I try the same thing with differential equations:

$$v_{in} = v_{c} + v_{r}$$
$$v_{in} = \frac{1}{C}\int{i} dt + iR$$

then using $$i = \frac{dq}{dt}$$
$$v_{in} = \frac{q}{C} + \frac{dq}{dt}$$

And solving this using an integrating factor $$\mu = e^{\frac{t}{RC}}$$:
$$\mu q = C v_{in}(e^{\frac{t}{RC}} - 1)$$

And finally computing $$v_{out}(t) = i.R = \frac{dq}{dt}.R$$ gives me:

$$v_{out}(t) = v_{in} e^{\frac{-t}{RC}}$$

I'm not sure why this result differs from the laplace version. If I skip the final differentiation in the laplace formulation of the problem (ie. just entirely ignore the existence of the 's' on the top line), then the two equations give the same result, but I don't understand why. Any ideas?

Thanks!

Sam

Last edited by a moderator: May 4, 2017
2. Feb 8, 2009

saxm

I've thought about it some more. Physically it makes sense at t=0 for Vout to be equal to Vin, so the 1/RC term in the laplace version of the equation doesn't make sense. I've also done a SPICE simulation in which the differential equation matches perfectly with the simulated waveform, so the differential equation is right and the laplace equation is wrong.

But I don't understand why the laplace equation is wrong...

3. Feb 9, 2009

saxm

Finally sorted this out. For the benefit of any googlers etc..., the problem is that I just kinda left $$v_{in}$$ alone (didn't fully appreciate what I was doing), but infact it could be written as $$v_{in}(s)$$ and then I needed to substitute in the Laplace transform for this, which for a unit step input is just $$\frac{1}{s}$$. And then the 's' on the top line of the laplace equation cancels with the new 's' on the bottom...