Internal
problem
ID
[1457]
Book
:
Elementary
differential
equations
and
boundary
value
problems,
10th
ed.,
Boyce
and
DiPrima
Section
:
Chapter
9.2,
Autonomous
Systems
and
Stability.
page
517
Problem
number
:
1
Date
solved
:
Saturday, March 29, 2025 at 10:55:42 PM
CAS
classification
:
system_of_ODEs
With initial conditions
ode:=[diff(x(t),t) = -x(t), diff(y(t),t) = -2*y(t)]; ic:=x(0) = 4y(0) = 2; dsolve([ode,ic]);
ode={D[x[t],t]==-1*x[t]+0*y[t],D[y[t],t]==-2*y[t]}; ic={x[0]==4,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) + Derivative(x(t), t),0),Eq(2*y(t) + Derivative(y(t), t),0)] ics = {} dsolve(ode,func=[x(t),y(t)],ics=ics)