Internal
problem
ID
[17185]
Book
:
A
book
of
problems
in
ordinary
differential
equations.
M.L.
KRASNOV,
A.L.
KISELYOV,
G.I.
MARKARENKO.
MIR,
MOSCOW.
1983
Section
:
Chapter
3
(Systems
of
differential
equations).
Section
23.
Methods
of
integrating
nonhomogeneous
linear
systems
with
constant
coefficients.
Exercises
page
234
Problem
number
:
811
Date
solved
:
Thursday, March 13, 2025 at 09:18:25 AM
CAS
classification
:
system_of_ODEs
With initial conditions
ode:=[diff(x(t),t) = x(t)+y(t)-cos(t), diff(y(t),t) = -y(t)-2*x(t)+cos(t)+sin(t)]; ic:=x(0) = 1y(0) = -2; dsolve([ode,ic]);
ode={D[x[t],t]==x[t]+y[t]-Cos[t],D[y[t],t]==-y[t]-2*x[t]+Cos[t]+Sin[t]}; ic={x[0]==1,y[0]==-2}; DSolve[{ode,ic},{x[t],y[t]},t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") y = Function("y") ode=[Eq(-x(t) - y(t) + cos(t) + Derivative(x(t), t),0),Eq(2*x(t) + y(t) - sin(t) - cos(t) + Derivative(y(t), t),0)] ics = {} dsolve(ode,func=[x(t),y(t)],ics=ics)