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!

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=

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

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

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
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education