Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 5 The general solution to the differential equation d y d x = 1 1 x - 1 6 x 2 + 1 3

Exercise 5
The general solution to the differential equation dydx=11x-16x2+13cos(x) is
y(x)=112x2-163x3+13sin(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 0x5, with initial conditions y(0)=110,180,270.
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):Plot the graphs in the same window and use different color and/or line-styles for each graph. To plot the graphs in the same window you can use the command hold on or use the plot command similarly to Exercise 4.Add the title 'Solutions to dy//dx=11 x-16x^(2)+13 cos(x)'.Add a legend with the list of C values used for each graph.(Type help plot for a list of the different line-styles, and help legend for help on how to add a legend.) Include both the M-file and the plot in your report.NOTE: the only output of the script file should be the graph of the three curves. Make sure you use enough points so that the curves are nice and smooth.
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Database Processing

Authors: David Kroenke

11th Edition

0132302675, 9780132302678

More Books

Students also viewed these Databases questions