{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ProblemSetE

ProblemSetE - Problem Set E%Do problems 12,13abc,17acd,18...

This preview shows pages 1–2. Sign up to view the full content.

%% Problem Set E % %Do problems 12,13abc,17acd,18 from the Problem Set E in DEwM pp193-205 %Note: the equation in 12b) shoud read y''+2y'+2y=0 and in 13a) h(t) should %be 1 on pi<=t<10 and 0 otherwise. % ode12a = 'D2y + 2*Dy + 2*y = sin(t)'; sol12a = dsolve(ode12a, 'y(0) = 0' , 'Dy(0) = 0') ezplot(sol12a , [0 pi]); title 'Graph of solution for D2y + 2*Dy + 2*y = sin(t) on interval 0 to pi'; %b - to find the numerical values for y(pi) and y'(pi) I used the %substitution method to sub in pi for the solution to part and and into the %derivative for the solution for part a ypi = subs(sol12a , t , pi); Dy = diff(sol12a); Dypi = subs(Dy, t, pi); ode12b = 'D2y + 2*Dy + 2*y = 0'; %solution of the differential equation with the new initial condidtions sol12b = dsolve(ode12b , 'y(pi) = 0.3827', 'Dy(pi) = -0.1914') ezplot(sol12b , [pi 15]); title 'D2y + 2*Dy + 2*y = 0 with the initial conditions y(pi) = 0.3827 Dy(pi) = -0.1914' figure hold on ezplot(sol12a, [0 pi]); ezplot(sol12b, [0 15]); title 'solution to D2y + 2*Dy + 2*y = 0 on interval 0<t<15' %% C Solving the Equation Using the Laplace Transform Method syms s t Y % first define the variables eqn = sym('D(D(y))(t) + 2*D(y)(t)+2*y(t) = heaviside(t)*sin(t) + heaviside(t-pi)*(- sin(t))');% defining the differential equation

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern