I have the following system of differential equations
and
I use the following Dsolve function to find ?(t) and x(t) with the terminal condition ?(T)=x(T)=0, which then I can obtain ?1(t) and ?2(t)
eq = \[Lambda]'[t] == \[Beta]*\[Lambda][t] - (c1 - \[Lambda][t])^2/(4*k1);
DSolve[{eq, \[Lambda][T] == 0}, \[Lambda][t], t]
and
eq = x'[t] == \[Beta]*x[t] - \[Delta]1 (\[Lambda][t] - x[t]) - (c2 - x[t])^2/(4*k2);
DSolve[{eq, x[T] == 0}, x[t], t]
Now having \rho1 (t) and x(t), I need to solve the following linear first order differential equations to obtain y3(t) , y2(t) and y1(t)
where d(t)=a+b?sin (2?t /50) and Beta = 0.1; c1 = 10; c2 = 30; k1 = 100; k2 = 150; T = 100; [Delta]1 = 0.2; [Delta]2 = 0.2; Subscript[y, 0] = 10000; a = 4000; \b = 1000;
I can solve for y3(t) using the following Dsolve
eq = y3'[t] == d - \[Delta]2*y3[t];
DSolve[{eq, y3[0] == Subscript[y, 0]}, y3[t], t]
But when I use the same method for y2(t) it doesn’t work
eq = y2'[t] == \[Delta]2*y3[t] - (\[Delta]1 + \[Rho]2) y2[t];
DSolve[{eq, y2[0] == Subscript[y, 0]}, y2[t], t]
I need to find the function y2(t) to repeat this to solve for y1(t). Any help would be highly appreciated. Also, I’m new to mathematica, I’m wondering if there is anyway to simplify the whole procedure (is there any more elegant way to write the codes).
I also attached the file.
Thanks in advanced.