Answered step by step
Verified Expert Solution
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
The general solution to the differential equation is
with
The goal of this exercise is to write a script file to plot the solutions to the differential equation in the interval with initial conditions
The script file should have the structure scriptfunction similarly to the Mfile myplotm Example Call the file exm The function that defines must be included in the same file note that the function defining will have two input arguments: and
Your Mfile should have the following structure fill in all the with the appropriate commands:Plot the graphs in the same window and use different color andor linestyles 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 Add the title 'Solutions to dydx xx cosxAdd a legend with the list of C values used for each graph.Type help plot for a list of the different linestyles, and help legend for help on how to add a legend. Include both the Mfile 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started