Question: 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
 Learning to Solve a Second Order Differential Equation. We can use

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!