CS 130 Problem Set 2 22 March 2013
• Show your complete solution. • This should be done individually. • If you have consulted references for an item, cite them as footnotes to that specific item. • The problems are taken from the book “Differential Equations with Linear Algebra” by Boelkins, Goldberg and Potter. • For manual computations, show your complete solution. • For Scilab implementations, include a screenshot of the output. • Submit on or before 22 March 2013, 4:30pm. Late submissions will not be accepted. • If you need clarifications on an item in the problem set, you may email me at nshernandez@dcs.upd.edu.ph or approach me at Rm 319 during consultation hours. ————————————————————————————————————— I. (a) Solve the differential equation given the initial condition: dy −2ty = 2 , dt t +1
y(0) = 4
(b) Express the particular solution you obtained in (a) in the form y = f (t). Write a Scilab script that will plot this f (t) for values of t ranging from t = 0 to t = 2 with a step size of 0.01. (c) Write a Scilab script that uses its ode solver on the given ODE in (a) to obtain a vector of values of the particular solution of the ODE evaluated on the range of values t = 0 to t = 2 with a step size of 0.01 and plot this output. (d) Compare the plot in (b) and (c).