Internal
problem
ID
[22998]
Book
:
Applied
Differential
Equations.
By
Murray
R.
Spiegel.
3rd
edition.
1980.
Pearson.
ISBN
978-0130400970
Section
:
Chapter
10.
Systems
of
differential
equations
and
their
applications.
A
Exercises
at
page
444
Problem
number
:
1
(a)
Date
solved
:
Thursday, October 02, 2025 at 09:17:24 PM
CAS
classification
:
system_of_ODEs
With initial conditions
ode:=[diff(y(t),t) = x(t), diff(x(t),t) = -y(t)]; ic:=[x(0) = 1, y(0) = 0]; dsolve([ode,op(ic)]);
ode={D[y[t],t]==x[t],D[x[t],t]==-y[t]}; ic={x[0]==1,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(-x(t) + Derivative(y(t), t),0),Eq(y(t) + Derivative(x(t), t),0)] ics = {y(0): 0} dsolve(ode,func=[x(t),y(t)],ics=ics)