MatLab: Could someone help me with part d of this problem. I think I have solved
ID: 3801214 • Letter: M
Question
MatLab:
Could someone help me with part d of this problem. I think I have solved it correctly but do not know how to plot it and solve the definite integral.
Thanks
MATLAB IN ACTION 20 pts.) For the following Initial Value Problem y'" y" y' y (0) 0 y'' (0) y(0) 1 2 1 a) Find the solution of the homogeneus equation. b) Using variation of parameters, find aparticular solution ofthe non-homogeneus equation and leave it expressed as a single definite integral. c) obtain the solution of the IVP (determining the constants of integration) d) Plot the solution in the interval [0, 10), to do that, write a code in matlab to plot the function defined by the definite integral. Write down here the code or codes used in matlab, in such a way that can be copied and run it, to see if that (those is (are) working.Explanation / Answer
Note : Below is the skeleton. Specify the actual equation to be plotted in the comments I will update it. Or you can update it yourself. integeral(f(x), lowerLimit, upperLimit) method will be handy.
function plotter(startPoint, endPoint)
t = linspace(startPoint, endPoint);
% Just write your equation here, or mention it in comments, I will update it
y = t.^2;
plot(t,y);
end
% Calling the function
plotter(0, 10);