Internal
problem
ID
[17963]
Book
:
V.V.
Stepanov,
A
course
of
differential
equations
(in
Russian),
GIFML.
Moscow
(1958)
Section
:
All
content
Problem
number
:
179
(page
297)
Date
solved
:
Thursday, March 13, 2025 at 11:16:37 AM
CAS
classification
:
system_of_ODEs
With initial conditions
ode:=[diff(y(x),x) = -z(x), diff(z(x),x) = y(x)]; ic:=y(0) = 1z(0) = 0; dsolve([ode,ic]);
ode={D[y[x],x]==-z[x],D[z[x],x]==y[x]}; ic={y[0]==1,z[0]==0}; DSolve[{ode,ic},{y[x],z[x]},x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") z = Function("z") ode=[Eq(z(x) + Derivative(y(x), x),0),Eq(-y(x) + Derivative(z(x), x),0)] ics = {} dsolve(ode,func=[y(x),z(x)],ics=ics)