Problems: Solve the following differential equations, using the initial conditions when applicable 1. yı" + 8y + 16y₁ = 0, y₁ (0) = 1, y, (0) = 0 2. y2"-3y₂ + 2y2 = 0, y2(1) = 1, y₂(1) = 4 3. y3" + 8y + 17y3 = 0 4. y + 8y + 16y₁ = 0 5. y-729ys=0

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
1 %Solve the given Homogeneous Differential Equations with Constant Coefficients
2 %Initialize the Variables
3
4
5 %Solve the equation y"+8y' +16y=0, y(0)=1, y'(0)=0. Save your answer as y1;
6
7 %Solve the equation y"-3y' +2y=0, y_2(1)=1, y_2' (1)=4. Save your answer as y2;
8
9 %Solve the equation y"+8y' +17y=0. Save your answer as y3;
10
11 %Solve the equation y^{IV} + 8y" + 16y-0. Save your answer as y4;
12
13 %Solve the equation y^{VI}-729y-0. Save your answer as y1;
14
15
16
Transcribed Image Text:1 %Solve the given Homogeneous Differential Equations with Constant Coefficients 2 %Initialize the Variables 3 4 5 %Solve the equation y"+8y' +16y=0, y(0)=1, y'(0)=0. Save your answer as y1; 6 7 %Solve the equation y"-3y' +2y=0, y_2(1)=1, y_2' (1)=4. Save your answer as y2; 8 9 %Solve the equation y"+8y' +17y=0. Save your answer as y3; 10 11 %Solve the equation y^{IV} + 8y" + 16y-0. Save your answer as y4; 12 13 %Solve the equation y^{VI}-729y-0. Save your answer as y1; 14 15 16
MATLAB can solve differential equations using the dsolve command.
dsolve symbolic solution of ordinary differential equations.
Example:
syms y(x)
Dy(x)= diff(y)
D2y(x) = diff(y,2)
YGS1 = dsolve (D2y+2*Dy+y==0)
YGS2 = dsolve (D2y+2*Dy+y==0, y(0)=-1, y(0)==2)
Problems: Solve the following differential equations, using the initial conditions when applicable
1. yı" + 8y₁ + 16y₁ = 0, y₁ (0) = 1, y₁ (0) = 0
2. y2" - 3y₂ + 2y2 = 0, y2(1) = 1, y₂(1) = 4
3. y3" + 8y₂ + 17y3 = 0
4. y + 8y +16y₁ = 0
5. yy-729y5 = 0
Transcribed Image Text:MATLAB can solve differential equations using the dsolve command. dsolve symbolic solution of ordinary differential equations. Example: syms y(x) Dy(x)= diff(y) D2y(x) = diff(y,2) YGS1 = dsolve (D2y+2*Dy+y==0) YGS2 = dsolve (D2y+2*Dy+y==0, y(0)=-1, y(0)==2) Problems: Solve the following differential equations, using the initial conditions when applicable 1. yı" + 8y₁ + 16y₁ = 0, y₁ (0) = 1, y₁ (0) = 0 2. y2" - 3y₂ + 2y2 = 0, y2(1) = 1, y₂(1) = 4 3. y3" + 8y₂ + 17y3 = 0 4. y + 8y +16y₁ = 0 5. yy-729y5 = 0
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

could you please correct this one using matlab. thank u!

Y1
Variable y1 has an incorrect value.
Feedback hidden for errors below, as these errors may be due to the initial error. Hide Feedback
Y2
Variable y2 must be of size [11]. It is currently of size [0 0]. Check where the variable is assigned a value.
Y3
Y4
Y5
X Derivatives
The submission must contain a variable named Dy.
> Derivative
The submission must contain a variable named D2y.
✔ Initialization
✔ Function Use
✔ Function Use
0% (10%)
0% (10%)
10% (10%)
10% (10%)
10% (10%)
0% (10%)
0% (10%)
10% (10%)
10% (10%)
10% (10%)
Transcribed Image Text:Y1 Variable y1 has an incorrect value. Feedback hidden for errors below, as these errors may be due to the initial error. Hide Feedback Y2 Variable y2 must be of size [11]. It is currently of size [0 0]. Check where the variable is assigned a value. Y3 Y4 Y5 X Derivatives The submission must contain a variable named Dy. > Derivative The submission must contain a variable named D2y. ✔ Initialization ✔ Function Use ✔ Function Use 0% (10%) 0% (10%) 10% (10%) 10% (10%) 10% (10%) 0% (10%) 0% (10%) 10% (10%) 10% (10%) 10% (10%)
Script
1 %Solve the given Homogeneous Differential Equations with Constant Coefficients
2 %Initialize the Variables
3
4 % Variables initialization
5 syms y1(x)
6 syms y2(x)
7 syms y3(x)
8 syms y4(x)
9
syms y5(x)
10
11 %Solve the equation y"+8y'+16y=0, y(0)=1, y'(0)=0. Save your answer as y1;
12 % solve the equation y'' +8y'+16y=0, y(0)=1, y'(0)=0. save as y1;
13 y1 = dsolve (diff(y1,2) + 8*diff(y1) + 16*y1 == 0, y¹(0)=-1, diff(y1(0))==0
14
15 %Solve the equation y"-3y'+2y=0, y_2(1)=1, y_2'(1)=4. Save your answer as y2;
16 % solve the equation y'' - 3y'+ 2y=0, y2(1)=1, y2'(1)=4. save as y2;
17 y2 = dsolve(diff(y2,2) - 3*diff(y2) + 2*y2 == 0, y2(1)==1, diff(y2(1))==4)
18
19 %Solve the equation y"+8y' +17y=0. Save your answer as y3;
20 % solve the equation y'' +8y'+17y=0, save as y3;
21 y3 = dsolve (diff(y3,2) + 8*diff(y3) + 17*y3 == 0)
22
23 %Solve the equation y^{IV} + 8y" + 16y=0. Save your answer as y4;
24 % solve the equation y^{IV} +8y''+16y=0, save as y4;
25 y4 = dsolve(diff(y4,4) + 8*diff(y4,2) + 16*y4 == 0)
26
27 %Solve the equation y^{VI}-729y=0. Save your answer as y1;
28 % solve the equation y^{VI} - 729y=0, save as y5;
29 y5= dsolve(diff(y5,6) - 729*y5
0)
30
==
Save
C Reset
MATLAB Documentation
Transcribed Image Text:Script 1 %Solve the given Homogeneous Differential Equations with Constant Coefficients 2 %Initialize the Variables 3 4 % Variables initialization 5 syms y1(x) 6 syms y2(x) 7 syms y3(x) 8 syms y4(x) 9 syms y5(x) 10 11 %Solve the equation y"+8y'+16y=0, y(0)=1, y'(0)=0. Save your answer as y1; 12 % solve the equation y'' +8y'+16y=0, y(0)=1, y'(0)=0. save as y1; 13 y1 = dsolve (diff(y1,2) + 8*diff(y1) + 16*y1 == 0, y¹(0)=-1, diff(y1(0))==0 14 15 %Solve the equation y"-3y'+2y=0, y_2(1)=1, y_2'(1)=4. Save your answer as y2; 16 % solve the equation y'' - 3y'+ 2y=0, y2(1)=1, y2'(1)=4. save as y2; 17 y2 = dsolve(diff(y2,2) - 3*diff(y2) + 2*y2 == 0, y2(1)==1, diff(y2(1))==4) 18 19 %Solve the equation y"+8y' +17y=0. Save your answer as y3; 20 % solve the equation y'' +8y'+17y=0, save as y3; 21 y3 = dsolve (diff(y3,2) + 8*diff(y3) + 17*y3 == 0) 22 23 %Solve the equation y^{IV} + 8y" + 16y=0. Save your answer as y4; 24 % solve the equation y^{IV} +8y''+16y=0, save as y4; 25 y4 = dsolve(diff(y4,4) + 8*diff(y4,2) + 16*y4 == 0) 26 27 %Solve the equation y^{VI}-729y=0. Save your answer as y1; 28 % solve the equation y^{VI} - 729y=0, save as y5; 29 y5= dsolve(diff(y5,6) - 729*y5 0) 30 == Save C Reset MATLAB Documentation
Solution
Bartleby Expert
SEE SOLUTION
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY