2. Consider the first order ordinary differential equation dy P(t)y t, y (0) wit
ID: 3140611 • Letter: 2
Question
2. Consider the first order ordinary differential equation dy P(t)y t, y (0) with P(t) 1, 0 S t S 2, 3, t 2. (a) Find the general solution for 0 S t s 2 15 marks] (b) Find the constant in the general solution for 0 S t S 2 so that the initial condition is satisfied 12 marks] (c) Find a general solution for t 2 15 marks] (d) Find the constant in the general solution for t 2 so that the solution for t and the solution for 0 S t S 2 match at t 32 [5 marks] (e) Use Maple, Matlab, or MS-excel to plot the solution for 0 S t S 5 [3 marks] (f) Explain, with reference to your expression for y(t) and plot of y(t), whether or not the solution is continuous at t -2 [1 mark] (g) Explain, with reference to your expression for y(t) and plot of y(t), whether or not the solution is differentiable at t 2 [1 mark]Explanation / Answer
a)
for 0 <= t <= 2
here P(t) = 1
dy/dt + y = t
here Q = t
I.F. = e^integral P dt = e^t
so the solution is
y * e^t = integral[e^t * t]dt + C
or
y = (t - 1) + Ce^-t
b)
y = (t - 1) + Ce^-t
put x = 0 , y = 1
we get
1 = -1 + C
or
C = 2
y = (t - 1) + 2e^-t
c)
for t>2
P(t) = 3
I.F. = e^3t
solution is
y*e^3t = integral[e^3t * t]dt + C
or
y = (t-1)/3 + Ce^-3t
here t = 2
y = 1
1 = 1/3 + Ce^-6
or
C = (2/3)e^6
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.