Analog Circuit Master Cheat
Analog Circuit Master Cheat
X di x
di y
ai i (t) =
bi i (t).
dt
dt
i=0
(1)
The goal is to find the impulse response of this system using x(t) = (t) and y(t) = h(t).
(N 1)
The system is assumed to be initially at rest (i.e., h(t) = 0, . . . , ddt(N 1)h (t) = 0 for all t < 0.
At times, we will use the somewhat abusive notation 0 and 0+ which loosely correspond
to considering 0 and 0 + , respectively, and letting go to zero. We will concentrate on
the case when M = 0.
For the case when N = 0, the impulse response is easy. We have a0 h(t) = b0 (t) which
means
h(t) =
b0
(t).
a0
(2)
For N > 0, the most important point is to be able to solve the homogeneous equation
for t > 0
N
X
i=0
ai
di y
(t) = 0.
dti
(3)
This is solved by first considering solutions of the form et . Plugging this exponential form
in and simplifying gives rise to the characteristic polynomial
p() = a0 + a1 + + aN N .
(4)
The goal is then to find the zeros of this polynomial by solving for all values of that give
p() = 0. For N = 1, we get the root 0 = a0 /a1 . This means yhomg (t) = Ae0 t u(t) for
some constant A. For N = 2, we can use the quadratic equation to get the two roots 01 , 02 .
If 01 6= 02 , we get yhomg (t) = Ae01 t + Be02 t u(t) for constants A, B. In the event that
01 = 02 = 0 , we must use yhomg (t) = Ae0 t + Bte0 t u(t) for constants A, B.
Now that we understand how to solve the homogeneous equation, we can deal with the
delta function input. There are two possible approaches studied:
Approach 1
In this case, we deal with x(t) = (t) directly by using the impulse response to generate
initial conditions. This will involve i) integrating both sides of the differential equation as
many times as needed, ii) integrating both sides from 0 to 0+, and iii) using an argument
(which is admittedly hand-wavy) regarding discontinuities to show integrals of some nice
R 0+
functions have 0 ()dt = 0.
N = 1: First, consider N = 1. We have a0 h(t) + a1 dh
(t) = b0 (t). We will integrate each
dt
side from 0 to 0 + . For the left hand side,
Z
0+
0+
a0 h(t)dt +
0
dh(t)
a1
dt = a0
dt
0+
= 0 + a1 (h(0+) 0)
= a1 h(0+).
(5)
This used the facts that the system is at rest (h(0) = 0) and that the impulse response
R 0+
will not have any impulsive behavior at the origin ( 0 h(t)dt = 0). The right hand side
evaluates to
Z
0+
b0 (t)dt = b0 .
(6)
Combining these two, we get h(0+) = b0 /a1 . Using our homogeneous solution, we have
h(t) = Ae0 t u(t) and A must satisfy h(0) = b0 /a1 . Therefore,
h(t) =
b0 0 t
e u(t)
a1
(7)
2
0+
0+
d2 h(t)
a2
a0 h(t)dt +
dt
dt2
0
0
Z 0+
dh
dh
h(t)dt + a1 (h(0+) h(0)) + a2
= a0
(0+) (0)
dt
dt
0
dh
(0+) 0
= 0 + a1 (h(0+) 0) + a2
dt
dh
= a1 h(0+) + a2 (0+)
dt
0+
dh(t)
dt +
a1
dt
(8)
using the same arguments as in the N = 1 case. The right hand side again integrates to b0 .
This means
a1 h(0+) + a2
dh
(0+) = b0 .
dt
(9)
0+
0+
a0 g(t)dt +
0
0+
a1 h(t)dt +
0
a2
0
dh
(t)dt = 0 + 0 + a2 (h(0+) h(0))
dt
= a2 h(0+)
R 0+
0
(10)
(11)
b0 u(t)dt = 0. Therefore,
h(0+) = 0.
(12)
dh
b0
(0+) = .
dt
a2
(13)
Using (12) and (13), we can then solve for the impulse response using the homogeneous
solution. This involves solving for A and B to give h(0) = 0 and
dh
(0)
dt
(
A0 e01 t e02 t u(t), if 01 6= 02 ,
h(t) =
B0 te0 t u(t),
if 01 = 02 = 0 .
with A0 =
b0
a2 (01 02 )
and B0 =
b0
.
a2
b0
.
a2
Therefore,
(14)
Approach 2
In this approach, we instead work with the unit step response s(t). Recall that h(t) = ds/dt.
In this case, we must deal with finding a particular solution to the differential equation
when t > 0 using that b0 s(t) = b0 for t > 0. A very simple particular solution is yp (t) = b0 /a0
when t > 0 because for t > 0 because dyp (t)/dt = 0 and d2 yp (t)/dt = 0 when t > 0. Therefore,
the particular solution for all values of t (using a zero state argument) is yp (t) = b0 /a0 u(t).
Thus, the full solution to the unit step response is s(t) = yp (t) + yhomg (t) where the constants
in the homogeneous expression must be solved for to satisfy the initial conditions.
N = 1: In this case,
s(t) =
b0
u(t) + Ae0 t u(t).
a0
Since the system is at rest, we must have that s(0) = 0. Using this, we get that A = b0 /a0 .
Therefore,
s(t) =
b0
1 e0 t u(t).
a0
h(t) =
(15)
e
u(t), if 01 6= 02 ,
0
a0
02
s(t) =
b0
1 e0 t + 0 te0 t u(t),
if 01 = 02 = 0 .
a0
4
01
1 .
with A0 = b0 / a0 02
Now,
ds
(t)
dt
(
A0 01 e01 t e02 t u(t), if 01 =
6 02 ,
= b0 2 0 t
if 01 = 02 = 0 .
te u(t),
a0 0
h(t) =
(16)
This agrees with the Approach 1 answer if we use a21 = 4a0 a2 in the 01 = 02 = 0 case and
multiply out 01 02 in the 01 6= 02 case.
ai y[n i] =
i=0
M
X
bi x[n i].
(17)
i=0
We wish to understand the output when x[n] = [n]. This corresponds to the impulse
response h[n]. Further, the system is assumed to be initially at rest with h[n] = 0 for n < 0.
As before, it is important to first understand how to solve the homogeneous difference
equation
N
X
ai y[n i] = 0.
(18)
i=0
ai z ni = z n
i=0
N
X
ai z i .
(19)
i=0
We wish to solve for values of z that give a zero value. This can be done by specifying the
characteristic polynomial
p(z) =
N
X
i=0
ai z i
(20)
b0
[n].
a0
(21)
N = 1: Using the homogeneous solution, we have h[n] = Az0n u[n]. We must determine A
using initial conditions. To determine these, note that a0 h[0] + a1 h[1] = a0 h[0] = b0 [0] =
b0 . Therefore, h[0] = b0 /a0 . From this,
h[n] =
b0 n
z u[n].
a0 0
(22)
(23)
(24)
and
b0
a0
(25)
a1 b 0
.
a20
(26)
and
h[1] =
6
We can then solve for A and B using these initial values and the correct homogeneous
expression.