Question

In: Advanced Math

Solve in Matlab please. An ltic system is specified by the eq: (D^2+4D+4) y(t) = Dx(t)...

Solve in Matlab please. An ltic system is specified by the eq: (D^2+4D+4) y(t) = Dx(t)

a) Find the characteristic polynomial, char. equation, char. roots, and char. modes.

b) find y0(t), zero-input component of the response y(t) for t>=o; if initial conditions is y0(0-)=3 and y'0(0-) = 4

Solutions

Expert Solution

I am pasting here the matlab code that I wrote in my matlab software.

It is quiet easy to undersatnd and many a place there are comments that make it even easier to understand. you can check the results by running it.

code starts here

% represent the differential quation
syms y(t) x(t);
ode = diff(y,t,2) + 4*diff(y,t) + 4*y(t)...
    == diff(x,t);

% coefficients of the system
den = [1 4 4];
num = [1];
transfer_function = tf(num, den); % (       1
                                    %   -------------
                                    %   s^2 + 4 s + 4) )
char_polynomial = poly2sym(den,s); % (s^2 + 4*s + 4)
char_eqn = char_polynomial == 0;   %   s^2 + 4*s + 4 == 0
char_roots = solve(char_eqn);      %    [-2, -2]
char_roots = double(char_roots);

syms t;    % defining a symbols t to be treated as time
char_modes = zeros(1,length(char_roots))
for i = 1:length(char_roots)
     char_modes(i) = exp(char_roots(i))
end

char_modes = char_modes.^t; % chararcteristic modes e^rt

%% ZIR
% initial condition
syms y
y_0 = 3;        % y at 0
y_diff_0 = 4;   % y differentiated at 0

% at zero input x(t) = 0 always
% we will have a new transfer function
ZIR_TF = solve(den(1)*(s^2*y - s*y_0 - y_diff_0) + den(2)*(s*y - y_0) + den(3)*y);
ZIR_TF_time_response = ilaplace(ZIR_TF);    % zir response with initial conditions
                                            % 3*exp(-2*t) + 10*t*exp(-2*t)

code ends here

for any difficulty in understanding can be resolved by furthur discussion. hope the solution is up to the mark.

Thank you.


Related Solutions

an LTIC system is specified by the equation (D2 +4D + 4)y(t) = Dx(t) with initial...
an LTIC system is specified by the equation (D2 +4D + 4)y(t) = Dx(t) with initial condition y'(0) = -4... How do I find the other initial condition?
2)   Solve the system of equations below           dx/dt – 3x – 6y = t^2          ...
2)   Solve the system of equations below           dx/dt – 3x – 6y = t^2           dx/dt + dy/dt – 3y = e^t
d^2y/dx^2 − dy/dx − 3/4 y = 0, y(0) = 1, dy/dx(0) = 0, Convert the...
d^2y/dx^2 − dy/dx − 3/4 y = 0, y(0) = 1, dy/dx(0) = 0, Convert the initial value problem into a set of two coupled first-order initial value problems and find the exact solution to the differential equatiion
Use MATLAB to solve graphically the planar system of linear equations x +4 y = −4...
Use MATLAB to solve graphically the planar system of linear equations x +4 y = −4 4x +3 y =4 to an accuracy of two decimal points. Hint: The MATLAB command zoom on allows us to view the plot in a window whose axes are one-half those of original. Each time you click with the mouse on a point, the axes’ limits are halved and centered at the designated point. Coupling zoom on with grid on allows you to determine...
1) Solve each of the following differential equations. a)16y"-8y'+y=0 b) (d^4y)/(dx^4)-13((d^2y)/(dx^2))+36y=0 2) use Variation of Parameters...
1) Solve each of the following differential equations. a)16y"-8y'+y=0 b) (d^4y)/(dx^4)-13((d^2y)/(dx^2))+36y=0 2) use Variation of Parameters to solve y"+16y=(1/3)csc4t 3) use undetermined coefficients to solve y"-5y'+4y=3e^(3t)-5e^(2t) with y'(0)=-1 and y(0)=1 4) Explain why the product (A+B)(A-B) not equal A^2-B^2 fro two NXN matrices A and B. what is the product of (A+B)(A-B)?
Using matlab Find x and y that solve the following system: ln(x 2 + y) =...
Using matlab Find x and y that solve the following system: ln(x 2 + y) = 1 − y , xy = − √ x
Solve equations 1.) y'-y=t/y 2.) y'-(1/t)y=y2sin(t) 3.) y'+y=y2cos(t) 4.) y'-2y=cos(t)/(y1/2)
Solve equations 1.) y'-y=t/y 2.) y'-(1/t)y=y2sin(t) 3.) y'+y=y2cos(t) 4.) y'-2y=cos(t)/(y1/2)
use a matlab built-in function to numerically solve: dy/dx= -x^2+((x^3*e^-y)/4) for 1<=x<=5 with y(1)=1 plot the...
use a matlab built-in function to numerically solve: dy/dx= -x^2+((x^3*e^-y)/4) for 1<=x<=5 with y(1)=1 plot the solution
Solve (1+e^x)dy/dx+(e^x)y=3x^2+1 Solve (x^3+y^3)dx+3xy^2 dy = 0 Solve (y-cos y)dx + (xsiny+x)dy = 0 Solve (1+ln...
Solve (1+e^x)dy/dx+(e^x)y=3x^2+1 Solve (x^3+y^3)dx+3xy^2 dy = 0 Solve (y-cos y)dx + (xsiny+x)dy = 0 Solve (1+ln x +y/x)dx = (1-lnx)dy Solve (y^2+yx)dx - x^2dy =0 Solve (x^2+2y^2)dx = xydy Solve Bernoulli's Equation x dy/dx + 2y = (x^4)(e^x)(y^2) Solve Bernoulli's Equation (1+x^2) dy/dx = 2xy +(e^x)(y^2) Solve IVP (3e^(x^2))dy + (xy^2)dx=0 ; y(1) = 2 Solve IVP dy/dx -2xy = e^(x^2) ; y(0)=0 Solve IVP (x^2+y^2)dx+(2xy)dy=0; y(1)=1 6. Mixture Problem Initially 40 lb of salt is dissolved in a large...
***Please solve on MATLAB:*** Consider the signal x(t) = 2−tu(t), where u(t) is the unit step...
***Please solve on MATLAB:*** Consider the signal x(t) = 2−tu(t), where u(t) is the unit step function. a) Plot x(t) over (−1 ≤ t ≤ 1). b) Plot 0.5x(1 − 2t) over (−1 ≤ t ≤ 1).
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT