Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The general solution to the differential equation dy dx = 7 x + 1 1 x 2 + 1 2 cos ( x ) is

The general solution to the differential equation dy
dx =7x +11x
2+12 cos(x) is
y(x)=7
2
x
2+
11
3
x
3+12 sin(x)+ C with y(0)= C.
The goal of this exercise is to write a script file to plot the solutions to the differential equation
in the interval 0<= x <=9, with initial conditions y(0)=590,990,1480.
The script file should have the structure script+function (similarly to the M-file myplot2.m
Example 2). Call the file ex5.m. The function that defines y(x) must be included in the same file
(note that the function defining y(x) will have two input arguments: x and C).
Your M-file should have the following structure (fill in all the ?? with the appropriate commands):
x =?? ; % define the vector x in the interval [0,9]
y1= f (??) ; % compute the solution with C =590
y2= f (??) ; % compute the solution with C =990
y3= f (??) ; % compute the solution with C =1480
plot (??)% plot the three solutions with different line - styles
title (??)% add a title
legend (??)% add a legend
function y = f (x , C )
y =??% fill -in with the expression for the general solution
end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

What are the steps that the EEOC uses once a charge is filed?

Answered: 1 week ago

Question

What would you do?

Answered: 1 week ago