Internal
problem
ID
[2701]
Book
:
Differential
equations
and
their
applications,
4th
ed.,
M.
Braun
Section
:
Chapter
2.
Second
order
differential
equations.
Section
2.14,
The
method
of
elimination
for
systems.
Excercises
page
258
Problem
number
:
4
Date
solved
:
Tuesday, March 04, 2025 at 02:39:58 PM
CAS
classification
:
system_of_ODEs
ode:=[diff(x(t),t) = x(t)+y(t)+exp(t), diff(y(t),t) = x(t)-y(t)-exp(t)]; dsolve(ode);
ode={D[x[t],t]==x[t]+y[t]+Exp[t],D[y[t],t]==x[t]-y[t]-Exp[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(-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)