Part 2 - Lccde by Direct Method
Part 2 - Lccde by Direct Method
Part 2 - Lccde by Direct Method
SYSTEMS
SOLUTION TO LCCDE
LINEAR DIFFERENTIAL
EQUATIONS WITH
CONSTANT-
COEFFICIENTS (LCCDE)
BY DIRECT METHOD
• Homogeneous Solution
• Particular Solution
• Total Solution
LINEAR CONSTANT-COEFFICIENT DIFFERENTIAL
EQUATION
n
d y i
ai dti f (t)
i0
where:
ai constants
2
SOLUTIONS TO LCCDE
• Classical Solution/Direct Method
y(t) yc (t) y p (t)
Roots of Method of
Characteristic Undetermined
Polynomial Coefficients
• Laplace Transform
LCCDE Laplace Y(s) Inverse y(t)
Laplace
Transform
Transform
CLASSICAL SOLUTION
Solution to
n
diy
ai dti f (t)
i0
is of the form
6
Example:
CASE I: Real & Distinct Roots
Determine the Homogeneous Solution of the Differential Equation
d3 y d 2 y dy
4 6 y 3e 4t
dt 3 dt 2 dt
m 1, 2 ,3
The Homogeneous Solution is of the form
m 4 2m3 m 2 0
9
Example:
CASE II: Real & Repeated Root
By using Synthetic Division or other root-
• finding method
• m 0,0,1,1
The Homogeneous Solution is of the form
y (t) c e (0)t c te(0)t c e t c tet
c 1 2 3 4
or
y (t) c c t c et c tet
c 1 2 3 4 9
CASE III: Complex Conjugate Roots
or
y (t) eat (c cos bt c sin bt)
c 3 4
where: c3 c1 c 2
c4 j(c1 c2 )
10
Example:
CASE III: Complex Conjugate Roots
Determine the Homogeneous Solution of the Differential Equation
d2y dy
4 13y e t
dt 2
dt
Solution: Equating the right side to zero and writing the
auxiliary equation
m2 4m 13 0
11
Example:
• CASE III: Complex Conjugate Roots
By using Quadratic Formula
• m 2 j3
The Homogeneous Solution is of the form
yc (t) c1 e (2 j3)t c2e (2 j 3)t
or
y (t) e2t (c cos 3t c sin 3t)
c 3 4
12
MATLAB IMPLEMENTATION
Using MatLab we can find the roots of a polynomial given its
coefficients using
roots(C)
15
PARTICULAR SOLUTIONS OF SOME FUNCTIONS
f (t) y p (t)
A K
At K1t K 2
At 2
K1t 2 K 2t K 3
Acos t K1 cost K 2 sin t
Asin t K1 cost K 2 sin t
Aebt Kebt
16
Example:
Find the Particular Solution of the Differential Equation
d 2 y dy
2 y 2t 40 cos 2t
dt 2 dt
Solution: From the Table, the Particular solution corresponding to
f (t) 2t 40 cos 2t
Equating coefficients we can have the following relationships to solve for K1,K2,K3 and K4
K3 6 K 4 2
20
Example:
1
y p (t) t 6 cos 2t 2sin 2t
2
21
MATLAB IMPLEMENTATION
Using MatLab we can find the Solutions to a System of Linear
Equations Ax=C given the Coefficients and Constants
x=inv(A)*C
where
C=constant vector
A=coefficient matrix
*=matrix multiplication
21
MATLAB IMPLEMENTATION
23
MATLAB IMPLEMENTATION
Solution:
24
EXCEL IMPLEMENTATION
Create an array containing the Coefficients
and Constants
26
EXCEL IMPLEMENTATION
Take the Product of the Inverse of Coefficient Matrix and the
Constants
27
EXCEL IMPLEMENTATION
How to take the product of 2 matrices?
1. Put the cursor where the first row, first column element should be placed. For
example C11.
2. Select MMULT from the Insert Function menu.
3. Select the inverse of the coefficient matrix or type the upper-leftmost: lower right-
most elements of the inverse of the coefficient matrix for Array 1. For example
C7:E9. For Array 2 select the constants. For example F2:F4.
4. The product of a 3x3 matrix and a 3x1 matrix is a 3x1 matrix but after executing
Procedure (3) only C11 is filled up. To show all the elements of the product, select a
3x1 range starting from C11. For example C11:C13. Press
F2 then press CTRL+SHIFT+ENTER.
28
TOTAL SOLUTION
After solving for the
Homogeneous and Particular Solutions
30
INITIAL CONDITIONS
dy(t) d 2 y(t) d m y(t)
• Values of y(t), , 2
... at t=0.
dt dt dt m
m2 m 2 0
32
Example:
y (t) c et c e2t
c 1 2
Example:
After determining the Homogeneous Solution, we will find the
Particular Solution, which is
1
y p (t) t 6 cos 2t 2 sin 2t
2
(from previous example)
2t 1
y(t) c1e c2e
t
t 6 cos 2t 2sin 2t
2
34
Example:
To determine c1 and c2, we will evaluate y(t) at t=0
1
y(0) c1e0 c2 e0 0 6 cos(0) sin(0) 0
2
11
c1 c2 (eq.1)
2
dt
dy(0)
c1e 0 2c2e0 1 2sin(0) 2 cos(0) 0
dt
c1 2c2 5 (eq.2) 34
Example:
Using eq.1 and eq.2 we can solve for c1 and c2
7
c1 2 c2
2
The Total Solution will be
7 1
y(t) 2et e 2t t 6 cos 2t 2sin 2t
2 2
REFERENCES:
37