x)=diff(y) (x)=diff(y,2) -(x)=diff(y,3) nd the particular (y1p), complementary (y1c), and general x)=
x)=diff(y) (x)=diff(y,2) -(x)=diff(y,3) nd the particular (y1p), complementary (y1c), and general x)=
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
please follow the format of the script given. thank you!
![1 %Solving a Non-Homogeneous Higher Order Differential Equations
2 %Initializations
3 syms y(x)
4 Dy(x)=diff(y)
5 D2y(x)=diff(y, 2)
6 D3y(x)=diff(y, 3)
7
8 %Find the particular (y1p), complementary (y1c), and general solution (y1GS) of y'''+y'=tan x
9 g1(x)=
10 L1=
11 y1c =
12 y1GS =
13 y1p=
14
15 %Find the particular (y2p), complementary (y2c), and general solution (y2GS) of y'''+4y'=sec 2x
16 g2 (x)=
17 L2=
18 y2c =
19 y2GS =
20 y2p=
21
22 %Find the particular (y3p), complementary (y3c), and general solution (y3GS) of y'''-2y''-y'+2y=e^4x
23 g3(x)=
24 L3=
25 y3c =
26 y3GS =
27 y3p=
28
29 %Find the particular (y4p), complementary (y4c), and general solution (y4GS) of y' ' '-3y''+2y'=e^2x/(1+e^x)
30 g4(x)=
31 L4=
|32 y4c =
33 y4GS =
34 y4p=](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F04271324-2214-461c-9f11-acc223b5c69f%2Fd57d11f4-77a6-4852-b92a-2b07ba41cf26%2Finvvh8_processed.png&w=3840&q=75)
Transcribed Image Text:1 %Solving a Non-Homogeneous Higher Order Differential Equations
2 %Initializations
3 syms y(x)
4 Dy(x)=diff(y)
5 D2y(x)=diff(y, 2)
6 D3y(x)=diff(y, 3)
7
8 %Find the particular (y1p), complementary (y1c), and general solution (y1GS) of y'''+y'=tan x
9 g1(x)=
10 L1=
11 y1c =
12 y1GS =
13 y1p=
14
15 %Find the particular (y2p), complementary (y2c), and general solution (y2GS) of y'''+4y'=sec 2x
16 g2 (x)=
17 L2=
18 y2c =
19 y2GS =
20 y2p=
21
22 %Find the particular (y3p), complementary (y3c), and general solution (y3GS) of y'''-2y''-y'+2y=e^4x
23 g3(x)=
24 L3=
25 y3c =
26 y3GS =
27 y3p=
28
29 %Find the particular (y4p), complementary (y4c), and general solution (y4GS) of y' ' '-3y''+2y'=e^2x/(1+e^x)
30 g4(x)=
31 L4=
|32 y4c =
33 y4GS =
34 y4p=
![This section will help the students find a solution to a Non-Homogeneous Higher Order Differential Equation Using MATLAB
Example:
syms y(x) g(x)
Dy(x)=diff(y)
D2y(x)=diff(y,2)
L=D2y+3*Dy+2*y;
g(x)= x^2;
yc = dsolve(L==0)
yGS = dsolve(L==g(x))
yp=yGS-yc
Exercises:
In each of the following, determine the general solution, particular solution and complementary solution.
1. y + y = tanx
2. y + 4y = sec2x
3. y" - 2y" -y + 2y = ex
p2x
4. y" - 3y" + 2y =
I
1 + et](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F04271324-2214-461c-9f11-acc223b5c69f%2Fd57d11f4-77a6-4852-b92a-2b07ba41cf26%2Ft21olkd_processed.png&w=3840&q=75)
Transcribed Image Text:This section will help the students find a solution to a Non-Homogeneous Higher Order Differential Equation Using MATLAB
Example:
syms y(x) g(x)
Dy(x)=diff(y)
D2y(x)=diff(y,2)
L=D2y+3*Dy+2*y;
g(x)= x^2;
yc = dsolve(L==0)
yGS = dsolve(L==g(x))
yp=yGS-yc
Exercises:
In each of the following, determine the general solution, particular solution and complementary solution.
1. y + y = tanx
2. y + 4y = sec2x
3. y" - 2y" -y + 2y = ex
p2x
4. y" - 3y" + 2y =
I
1 + et
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education