Internal
problem
ID
[17395]
Book
:
Differential
equations.
An
introduction
to
modern
methods
and
applications.
James
Brannan,
William
E.
Boyce.
Third
edition.
Wiley
2015
Section
:
Chapter
3.
Systems
of
two
first
order
equations.
Section
3.2
(Two
first
order
linear
differential
equations).
Problems
at
page
142
Problem
number
:
11
Date
solved
:
Monday, March 31, 2025 at 04:12:45 PM
CAS
classification
:
system_of_ODEs
With initial conditions
ode:=[diff(x(t),t) = y(t), diff(y(t),t) = -x(t)+2*sin(t)]; ic:=x(0) = 0y(0) = 0; dsolve([ode,ic]);
ode={D[x[t],t]==y[t],D[y[t],t]==-x[t]+2*Sin[t]}; ic={x[0]==0,y[0]==0}; DSolve[{ode,ic},{x[t],y[t]},t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") y = Function("y") ode=[Eq(-y(t) + Derivative(x(t), t),0),Eq(x(t) - 2*sin(t) + Derivative(y(t), t),0)] ics = {} dsolve(ode,func=[x(t),y(t)],ics=ics)