Internal
problem
ID
[594]
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
:
8
Date
solved
:
Saturday, March 29, 2025 at 04:57:31 PM
CAS
classification
:
system_of_ODEs
ode:=[diff(x(t),t) = 2*x(t)+y(t), diff(y(t),t) = x(t)+2*y(t)-exp(2*t)]; dsolve(ode);
ode={D[x[t],t]==2*x[t]+y[t],D[y[t],t]==x[t]+2*y[t]-Exp[2*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*x(t) - y(t) + Derivative(x(t), t),0),Eq(-x(t) - 2*y(t) + exp(2*t) + Derivative(y(t), t),0)] ics = {} dsolve(ode,func=[x(t),y(t)],ics=ics)