Internal
problem
ID
[593]
Book
:
Elementary
Differential
Equations.
By
C.
Henry
Edwards,
David
E.
Penney
and
David
Calvis.
6th
edition.
2008
Section
:
Chapter
5.
Linear
systems
of
differential
equations.
Section
5.2
(Applications).
Problems
at
page
345
Problem
number
:
7
Date
solved
:
Tuesday, March 04, 2025 at 11:27:23 AM
CAS
classification
:
system_of_ODEs
ode:=[diff(x(t),t) = 4*x(t)+y(t)+2*t, diff(y(t),t) = -2*x(t)+y(t)]; dsolve(ode);
ode={D[x[t],t]==4*x[t]+y[t]+2*t,D[y[t],t]==-2*x[t]+y[t]}; ic={}; DSolve[{ode,ic},{x[t],y[t]},t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") y = Function("y") ode=[Eq(-2*t - 4*x(t) - y(t) + Derivative(x(t), t),0),Eq(2*x(t) - y(t) + Derivative(y(t), t),0)] ics = {} dsolve(ode,func=[x(t),y(t)],ics=ics)