Mario Feedback Lab 12
Mario Feedback Lab 12
College of Engineering
Electronics and Communications Department
Experiment No. 1
1030-1330 Wed
SCHEDULE
ATTENDANC CONTRIBUTI
E NAME ON
REMARKS
Mario Raphael B. Fernando
Instructor
Module 1
LINEAR CONSTANT-COEFFICIENT DIFFERENTIAL EQUATIONS
Objective:
Theoretical Discussion:
n i
∑ ai ddtxi =f (t )
A class of differential equations of the form i =0 is called linear
differential equation with constant coefficients. Linear Constant-Coefficient Differential
Equation (LCCDE) described a class of system called Linear Time Invariant (LTI)
system. The solution to LCCDE can be divided into two parts, characteristic or
homogeneous x c ( t ) solution and particular solution x p ( t ) . The sum of these solutions is
called the total solution x (t ) .
x (t )=x c ( t ) + x p ( t )
The homogeneous solution, is the solution of the differential equation when f ( t )
n
mk t
x c ( t )=∑ c k e
is equal zero. It is of the form k=1 , where m k is the root of auxiliary
n n
di x
∑ ai
i ∑ ai m i=0
polynomial corresponding to i=0 dt equivalent to i =0 .
The particular solution is the solution obtained by direct observation of the form
−t
of f ( t ) . For example when f ( t )=5 e , the corresponding particular solution is of the
n
di x
∑ ai i
form Ke , where K is obtained by evaluating i=0 dt by taking x=x p .
−t
G( s ) Y ( s)
The transfer function is defined as the ratio of the transform of the output
U(s )
to the transform of the input taking all initial conditions to be equal to zero.
Y (s )
G( s ) = |InitialCondition=0
U ( s)
POLY(V), when V is a vector, is a vector whose elements are the coefficients of the
polynomial whose roots are the elements of V. For vectors, ROOTS and POLY are
inverse functions of each other, up to ordering, scaling and round off error.
Vectors B and A specify the coefficients of the numerator and denominator polynomials
in descending powers of s. the residues are returned in the column vector R, the pole
locations in column vector P, and the direct terms in row vector K. the number of poles is
n = length(A)-1 = length(R) = Length (P). The direct term coefficient vector is empty if
length(B) < length(A), otherwise length(K) = length(B)-length(A)+1.
X = sym (‘x’) creates the symbolic variable with name ‘x’ and stores the result in
x. x = sym (‘x’, ’real’) also assumes that x is real, so that conj(x) is equal to x. alpha =
sym(‘alpha’) and r = sym(‘Rho’, ‘real’) are other examples. Similarly, k = sym(‘k’,
‘positive’) makes k a positive (real) variable. x = sym(‘x’,’unreal’) makes x a purely
formal variable with no additional properties (i.e., insures that x is NEITHER real NOR
positive).
Examples:
syms a s t w x
laplace (t^5) returns 120 / s^6
laplace(exp(a*t)) returns 1 / (s-a)
laplace(sin(w*x),t) returns w / (t^2+w^2)
laplace(cos(x*w),w,t) returns t / (t^2+x^2)
laplace(x^sym(3/2),t) returns 3 / 4*pi^(1/2)/t^(5/2)
laplace(diff(sym(‘F(t)’))) returns laplace (F(t),t,s)*s-F(0)
Procedure:
d2 y(t)
2
+ 16 y (t )=u (t )
a. dt
Auxiliary equation: 1/s(s^2+16)
MATLAB Command: syms s t w x y
ilaplace(1/(s*(s^2+16)),t)
Homogeneous Solution:
d2 y( t) dy (t )
2
+8 +16 y ( t ) =u( t )
b. dt dt
Auxiliary equation: 1/s(s^2+8s+16)
MATLAB Command: syms s t w x y
ilaplace(1/(s*(s^2+8*s+16)),t)
Roots of m:
Homogeneous Solution:
d2 y( t) dy ( t )
2
+ 20 +50 y ( t )=u (t )
c. dt dt
Auxiliary equation: 1/s(s^2+20s+50)
MATLAB Command: syms s t w x y
ilaplace1/s(s^2+20s+50)
Roots of m:
Homogeneous Solution:
d2 y(t) dy (t )
2
+8 +16 y ( t ) =u( t )
2. Find the particular solutions of dt dt if
2
a. u( t ) =1+t
−2 t
b. u( t ) =2 e
d2 y(t) dy (t )
2
+8 +16 y ( t ) =1+t 2
3. Find the total solution of dt dtif all initial conditions are zero.
Auxiliary equation:(((1/s)+(2/s^3))/(s^2 + 8*s + 16),t)
Total Solution:
d2 y( t) dy (t )
2
+8 +16 y ( t ) =1+t 2
4. Using Laplace transform, determine the total solution of dt dt .
All initial conditions are assumed zero.
U(s): 1/s+2/s^3
Y(s): ((1/s)+(2/s^3))/(s^2+8*s+16)
Y(t): t^2/16 - (11*exp(-4*t))/128 - (9*t*exp(-4*t))/32 - t/16 + 11/128
Analysis
Laplace and Inverse laplace transforms time-domain functions into their Laplace domain
counterparts, where complex mathematical operations become simpler. By converting
differential equations into algebraic equations, Laplace transforms provide a powerful
tool for solving linear systems and differential equations efficiently. This transformation
enables engineers and researchers to analyze system behavior, stability, and response
characteristics with ease. Using Laplace transforms in MATLAB, the researcher can
convert the system's differential equations into the Laplace domain, facilitating analysis
through algebraic manipulation. The resulting transfer function provides insights into
system stability, transient response, and frequency response characteristics, crucial for
designing robust control systems.
Conclusion
In conclusion, MATLAB's laplace and ilaplace functions offer a powerful suite of tools
for engineers and researchers working in fields such as control systems, signal
processing, and differential equations. The laplace function allows for the transformation
of time-domain functions into the Laplace domain, facilitating analysis and design in the
frequency domain. Conversely, the ilaplace function enables the inverse transformation,
providing insights into system behavior and facilitating the determination of time-domain
responses from frequency-domain representations