MATLAB HELP
(a) Use the command dsolve to find general solutions to the differential equations below. i. y 00 + 3y = 0 ii. y 00 + 4y 0 + 29y = 0 iii. y 00 − y/36 = 0 iv. y 00 + 2y 0 + y = 0 v. y 00 + 6y 0 + 5y = 0 (b) Graph each of the solutions in (a) in the same window with 0 ≤ t ≤ 10, using the initial conditions y(0) = 1 and y 0 (0) = 0. (c) Which of these equations does not represent a mechanical vibration? Why not? In your comments, explain how to recognize that the equation cannot describe a mechanical vibration i. from the graph of the solution, and also ii. from the coefficients of the original equation. (Recall how we have interpreted the coefficients m, b, and k where m y00 + b y0 + k y = 0.) (d) Classify the other four solutions as undamped, underdamped, critically damped, or overdamped.
%%Matlab code for dsolve for solving ode
clear all
close all
syms y(t) m b k
eqn = m*diff(y,t,2)+b*diff(y,t,1)+k*y == 0;
Dy = diff(y,t);
cond = [y(0)==1, Dy(0)==0];
ySol(t,m,b,k) = dsolve(eqn,cond);
tt=linspace(0,10);
m=1;b=0;k=3;
yy1=ySol(tt,1,0,3);
hold on
plot(tt,yy1,'linewidth',2)
fprintf('For question i. m=1;b=0;k=3\n')
fprintf('hence b^2-4*m*k=%f\n',b^2-4*m*k)
fprintf('as b^2-4*m*k<0 so it is oscillatory\n')
fprintf('And as b=0 it is undamped\n')
fprintf('From the plot it also shows undamped
oscillation.\n\n')
yy2=ySol(tt,1,4,29);
hold on
plot(tt,yy2,'linewidth',2)
m=1;b=4;k=29;
fprintf('For question ii. m=1;b=4;k=29\n')
fprintf('hence b^2-4*m*k=%f\n',b^2-4*m*k)
fprintf('as b^2-4*m*k<0 so it is oscillatory\n')
fprintf('And as b is nonzero it is underdamped\n')
fprintf('From the plot it also shows underdamped
oscillation.\n\n')
yy3=ySol(tt,1,0,-1/36);
hold on
plot(tt,yy3,'linewidth',2)
m=1;b=0;k=-1/36;
fprintf('For question iii. m=1;b=0;k=-1/36\n')
fprintf('hence b^2-4*m*k=%f\n',b^2-4*m*k)
fprintf('as b^2-4*m*k>0 so it is nonoscillatory\n')
fprintf('And as b=zero it is nonoscillatory\n')
fprintf('From the plot it also shows non oscillation.\n\n')
yy4=ySol(tt,1,1,2);
hold on
plot(tt,yy4,'linewidth',2)
m=1;b=1;k=2;
fprintf('For question iv. m=1;b=1;k=2\n')
fprintf('hence b^2-4*m*k=%f\n',b^2-4*m*k)
fprintf('as b^2-4*m*k<0 so it is oscillatory\n')
fprintf('And as b is nonzero it is underdamped\n')
fprintf('From the plot it also shows underdamped
oscillation.\n\n')
yy5=ySol(tt,1,6,5);
hold on
plot(tt,yy5,'linewidth',2)
m=1;b=6;k=5;
fprintf('For question iv. m=1;b=6;k=5\n')
fprintf('hence b^2-4*m*k=%f\n',b^2-4*m*k)
fprintf('as b^2-4*m*k>0 so it is nonoscillatory\n')
fprintf('And as b is nonzero it is overdamped\n')
fprintf('From the plot it also shows overdamped
oscillation.\n\n')
xlabel('time t')
ylabel('y(t)')
title('y(t) vs. time plot')
legend('ques (i)','ques (ii)','ques (iii)','ques (iv)','ques
(v)')
%%%%%%%%%%%%%% End of Code %%%%%%%%%%%%%
MATLAB HELP (a) Use the command dsolve to find general solutions to the differential equations below. i. y 00 + 3y = 0 i...
(24 points) Find the general solution to each of the following differential equations dy a) = e)(x - 2). Over what interval is this solution valid? dx b) y" - 2y + y = (Hint use the method of variation of parameters) 1 + x2 c) y" - 8y' + 17y = 0. Is this solution (i) undamped, (ii) critically damped, (iii) under-damped, or (iv) over-damped?
4. (24 points) Find the general solution to each of the following differential equations dy a) = e-(x - 2). Over what interval is this solution valid? dx b) y" - 2y + y = (Hint use the method of variation of parameters) 1 + x2 c) y" - 8y' + 177 = 0. Is this solution (i)undamped, (ii) critically damped, (iii) under-damped, or (iv) over-damped?
write MATLAB scripts to solve differential equations. Computing 1: ELE1053 Project 3E:Solving Differential Equations Project Principle Objective: Write MATLAB scripts to solve differential equations. Implementation: MatLab is an ideal environment for solving differential equations. Differential equations are a vital tool used by engineers to model, study and make predictions about the behavior of complex systems. It not only allows you to solve complex equations and systems of equations it also allows you to easily present the solutions in graphical form....
Differential equation class. Please show steps to the solutions. Section 3.3 Exercises To Solutions For all exercises in this section you will be working with the equation dt for various values of m, β and k. but always with f(t)-0. 1. (a) Solve the initial value problem consisting of Equation (1) withm-5, B- and k 80, and initial conditions y(02, y(0)-6. Give your answer in the form y Cesin(wt and all numbers in decimal form, rounded to the nearest tenth....
I need help with these! 3. (1 point) a) Compute the general solution of the differential equation y"5 12y" 0 b) Determine the test function Y (t) with the fewest terms to be used to obtain a particular solution of the following equation via the method if undetermined coefficients. Do not attempt to determine the coefficients.5y 12y"2 10e-tesin(V3t) Spring 2011) 4. (1 point) Compute the general solution of the following differential equations dz dy dt ii)(1y iv) (z cos(y) +...
MATLAB HELP 3. (a) In one window, graph four different solutions to y 00 + 10y 0 + y = sin t by using different initial conditions. (Be sure that all four graphs are clearly visible in the window.) (b) Describe the apparent behavior of the solutions as t → ∞. 4. (a) Graph solutions to y 00 + a y = sin 3t, y(0) = 1, y 0 (0) = 1 for each of the values a = 9.5,...
Using Differential Equations. 6. For y, = y3 _ y, y(0) = 30, -00 <30 < 00, draw the graph of (y) = y3-y versus y, determine the equilibrium solutions (critical points) and classify each one as unstable or asymptotically stable. Draw the phase line, and sketch several representative integral curves (graphs of solutions) in the (t, y) plane. Hint: None of this requires explicit formulas for solutions y = φ(t) of the initial value problem.]
Differential Equations Need help on understanding how to find General Solutions... y' not y^1 thank you!! General Solution of Bernoulli equation
(17 points) (a) Find the general solution of the differential equation y" (t) + 36y(t) = 0. general solution = (Use the letters A and B for any constants you have in your solution.) (b) For each of the following initial conditions, find a particular solution. (1) y(0) = 0,7(0) = 1: y= (ii) y(0) = 1, y'(0) = 0: y= (ii) y(0) = 1, y(1) = 0:y= (iv) y(0) = 0, y(1) = 1:y= 1 (On a sheet of...
(17 points) (a) Find the general solution of the differential equation y" (t) + 4y(t) = 0. general solution = (Use the letters A and B for any constants you have in your solution.) (b) For each of the following initial conditions, find a particular solution. (i) y(0) = 0, y'(0) = 1: y = (ii) y(0) = 1, y'(0) = 0:y= (iii) y(0) = 1, y(1) = 0:y= (iv) y(0) = 0, y(1) = 1: y = (On a...