Internal
problem
ID
[17194]
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.2
The
method
of
undetermined
coefficients.
Exercises
page
239
Problem
number
:
820
Date
solved
:
Thursday, March 13, 2025 at 09:18:35 AM
CAS
classification
:
system_of_ODEs
With initial conditions
ode:=[diff(x(t),t) = y(t)-x(t)+exp(t), diff(y(t),t) = x(t)-y(t)+exp(t)]; ic:=x(0) = 0y(0) = 1; dsolve([ode,ic]);
ode={D[x[t],t]==y[t]-x[t]+Exp[t],D[y[t],t]==x[t]-y[t]+Exp[t]}; ic={x[0]==0,y[0]==1}; 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) - exp(t) + Derivative(x(t), t),0),Eq(-x(t) + y(t) - exp(t) + Derivative(y(t), t),0)] ics = {} dsolve(ode,func=[x(t),y(t)],ics=ics)