Professional Documents
Culture Documents
Ders 17
Ders 17
Ders 17
EHB 211E
mustak.yalcin@itu.edu.tr
Lecture 14
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 1 / 34
Contents I
Solution of State Equations
First-Order Linear System
Zero-input and Zero-state Responses
Homogeneous and Particular Solutions
Solution of Second Order State Equations
Solution of the Homogeneous Second-Order Equation
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 2 / 34
Solution of State Equations
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 3 / 34
Solution of State Equations
Zero-input response;
xzi (t) = e a(t−t0 ) x(t0 )
Zero-state response;
Z t
xzs (t) = e a(t−τ ) be(τ )dτ
t0
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 4 / 34
Example
2
R
+ 1
− C
e
+ 1
− C
e
ẋ = ax.
xh (t) = Ke at
x˙p = axp + be
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 7 / 34
Particular Solutions
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 8 / 34
The complete response
The complete response is the sum of natural response and forced response.
x(t) = xh (t) + xp (t)
Using initial condition x(t0 )
x0 = Ke at0 + xp (t0 )
x0 −xp (t0 )
Parameter for the natural response can be obtained K = e at0
.
The complete response
x(t) = (x0 − xp (t0 ))e a(t−t0 ) + xp (t)
| {z } | {z }
Natural response Particular solution
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 9 / 34
A first-order differential equation is given by
x = −2x˙ + e(t)
where e(t) = e −t u(t) and x(0) = 2. Find x(t) for t > 0. The
homogeneous solution is
xh (t) = Ke −2t
and the particular solution is
xp (t) = Ee −t
Substituting the particular solution into the DE
−Ee −t = −2Ee −t + e −t
then E = 1, we obtain the complete the solution
x(t) = Ke −2t + e −t
Applying the initial condition to the above equation, we obtain K = 1.
Then
x(t) = (e −2t + e −t )u(t)
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 10 / 34
The zero-input response is
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 11 / 34
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 12 / 34
A first-order differential equation is given by ẋ = −4x where x(0) = 4.
Find x(t) for t > 0. The homogeneous solution is x(t) = Ke −4t Applying
the initial condition to the above equation, we obtain K = 4. Then
x(t) = 4e −4t u(t)
It’s connected to a second first order system which is
ż = −z + x(t)
where z(0) = 1. Find z(t) for t > 0.
The homogeneous and the particular solutions are
zh (t) = Ke −t zp (t) = Ee −4t
Substituting the particular solution into the DE
−4Ee −4t = −Ee −4t + 4e −4t
then E = −4/3, we obtain the complete the solution
z(t) = Ke −t − 4/3e −4t Applying the initial condition to the above
equation, we obtain K = 7/3. Then
z(t) = (7/3e −t − 4/3e −4t )u(t)
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 13 / 34
>> t=0:0.1:5;
>> plot(t,7*exp(-t)/3-4*exp(-4*t)/3);
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 14 / 34
R R
C C
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 15 / 34
Solution of Second Order State Equations
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 16 / 34
In order to have differential equation in the output variable
d 2 x1 dx1 du
2
− (a11 + a22 ) + (a11 a22 − a12 a21 )x1 = b1 + (a12 b2 − a22 b1 )e
dt dt dt
d 2 x2 dx2 du
2
− (a11 + a22 ) + (a11 a22 − a12 a21 )x2 = b2 + (a21 b1 − a11 b2 )e.
dt dt dt
Undamped natural frequency
√
w= a11 a22 − a12 a21
Damping ratio
1
Q=− (a11 + a22 )
2w
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 17 / 34
With these new coefficients
d 2 x1 dx1 du
2
+ 2Qw + w 2 x 1 = b1 + (a12 b2 − a22 b1 )e
dt dt dt
d 2 x2 dx2 du
2
+ 2Qw + w 2 x 2 = b2 + (a21 b1 − a11 b2 )e.
dt dt dt
Defining
q0 = c1 (−b1 a22 + a12 b2 ) + c2 (−b2 a11 + a21 b1 ) + d(a11 a22 − a12 a21 )
q1 = c1 b1 + c2 b2 − d(a11 + a22 )
q2 = d
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 18 / 34
The second order differential equation
d 2y dy d 2e de
− (a 11 + a 22 ) + (a 11 a 22 − a12 a 21 )y = q2 + q1 + q0 e.
dt 2 dt dt 2 dt
and it is in the term of standard parameter
d 2y dy 2 d 2 e de
+ 2Qw + w y = q2 q1 + q0 e.
dt 2 dt dt 2 dt
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 19 / 34
Solution of the Homogeneous Second-Order Equation
d 2y dy
2
+ 2Qw + w 2y = 0
dt dt
yh (t) = K1 e λ1 t + K2 e λ2 t
where K1 and K2 are constants defined by the initial conditions, and the
eigenvalues λ1 and λ2 are the roots of the characteristic equation. Or λ1
and λ2 are found from
λ2i + 2Qw λi + w 2 = 0
he eigenvalues p
λ1 , λ2 = −Qw ∓ w Q 2 − 1.
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 20 / 34
K1 and K2 are obtain
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 21 / 34
Q > 1 : λ < 0 and real. In this case, the response is said to be
overdamped.
1.25
y(t)
0.75
0.5
0
t
0
2.5
7.5
10
12.5
15
17.5
20
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 22 / 34
Q = 1: The response is said to be critically damped.
λ1 , λ2 = −w .
Homogenous solution is
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 23 / 34
0 ≤ Q < 1 : The response is said to be underdamped.
p
λ1 , λ2 = −Qw ∓ jw 1 − Q 2.
The output
e −Qwt
yh (t) = y0 √ cos (wd t − φ)
1 − Q2
√
where wd = w 1 − Q 2 and φ = tan −1 √ Q 2 .
1−Q
y(t)
1
0.5
0
Q=0.5
Q=0.3
-0.5
Q=0.1
t
0
10
11
12
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 24 / 34
Q<0
Real{λ} > 0
10
y(t)
5
Q=-0.1
0 Q=1
-5
t
0
10
11
12
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 25 / 34
Natural Response of a Parallel RLC Circuit
v
R C L
-
d 2v 1 dv 1
2
+ + v =0
dt RC dt LC
√
w = √1LC , Q = 2RC LC
,
Electric Circuits, James W. Nilsson and Susan A. Riedel, pp. 286-301
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 26 / 34
Step response
We will find the output for e(t) = u(t) which is given by
The particular solution yö (t) = K . Substituting the particular solution into
the eqn. we will have K = w12 . Step response is obtain such as
n
1
y (t) = K1 e λ1 t + K1 e λ2 t +
wn2
dy (t)
= K1 λ1 + K2 λ2
dt t=0
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 27 / 34
Step Response of a Parallel RLC Circuit
v
R C L
-
d 2v 1 dv 1 1
2
+ + v= ik
dt RC dt LC LC
Electric Circuits, James W. Nilsson and Susan A. Riedel, pp. 301-307
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 28 / 34
Step response
0.4
y(t)
Q=0.2
0.32
Q=0.5
0.24
Q=0.707
Q=1
0.16
Q=2
0.08
Q=5
t
0
10
11
12
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 29 / 34
Example
0 2 0
ẋ = x+ e
−1 −3 1
1
where is the initial condition and the output is y (t) = x1 (t) Let find
0
the output for e(t) = 0, e(t)=u(t) and e(t) = 10 cos(t).
We have
x˙1 = 2x2
x˙2 = −x1 − 3x2 + e
The output is obtain such as
x¨1 = 2x¨2
x˙1 = 2(−x1 − 3x2 + e)
= −2x1 − 6x2 + 2e
= −3x˙1 − 2x1 + 2e
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 30 / 34
For the homogeneous solution, we must find eigenvalues
0 2
det λI − = λ2 + 3λ + 2 = 0
−1 −3
y (t) = K1 e −t + K2 e −2t
y (0) = K1 + K2 = 1
˙
y (0) = −K1 − 2K2 = 0
y (t) = 2e −t − e −2t .
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 31 / 34
For e(t) = u(t), the particular solution is chosen from table which is
yö (t) = E
y (t) = K1 e −t + K2 e −2t + 1
y (0) = K1 + K2 + 1 = 1
˙
y (0) = −K1 − 2K2 + 1 = 0
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 32 / 34
For e(t) = 10 cos(t), the particular solution is chosen from table which is
−E1 cos t − E2 sin t = 3E1 sin t − 3E2 cos t − 2E1 cos t − 2E2 sin t + 20 cos t
we have E1 = 2 ve E2 = 6 then
y (0) = K1 + K2 + 2 = 1
˙
y (0) = −K1 − 2K2 + 6 = 0
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 33 / 34
E = −2V , R = 2Ω, e(t) = 0.2 sin(wt), C = 1F , vR = iR2
DC Analysis:
dVc
C = iC = 0
dt
e = iR + vR = −4 = 2iR + iR2
iR = −2Amps
AC Analysis: RQ = −4Ω
dVc (e − vC ) vC
CC = −
dt R RQ
dvC vC
=− + 0.1 sin(wt)
dt 4
Prof. Dr. Müştak E. Yalçın (İTÜ) Basic of Electrical Circuits October, 2020 34 / 34