Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Learning to Solve a Second Order Differential Equation. We can use the MATLAB command dsolve in order to solve a second order equation. ( a

Learning to Solve a Second Order Differential Equation. We can use the MATLAB command dsolve in order to solve a second order equation.
(a) Consider the equation
y''+y'-6y=20et,y(0)=0,y'(0)=1.
Solve the equation showing all steps.
(b) Using MATLAB Proceed as follows,
>> ode1=?'D2y+Dy-6**y=20**exp(t)';
>> dsdave(ode1);
then try,
)=0',?'Dy(0)=(1'
Compare your answers.
(c) The difficulty we incur with symbolic solvers is that they do not often work for nonlinear equations. Try using dsolve for the following problem and discuss what you notice,
y''+t2y'+y=0
(d) We therefore find numerical solutions numerically, using the command ode45. In order to do this, we have to create a vector equation, in which we solve for the first-derivative and the function itself. We essentially rewrite the equation in the form of ddt[y;y']=[y',f(t,y,y')]. We have MATLAB solve for y, which we will notate in MATLAB as y(1), and y' which we notate in MATLAB as y(2). For y',f(t,y,y'), we define a "anonymous" function. Considering the equation
y''+t2y'+y=0,y(0)=1,y'(0)=-1
Please use mat lab to answer
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions