Internal
problem
ID
[9136]
Book
:
Differential
Equations:
Theory,
Technique,
and
Practice
by
George
Simmons,
Steven
Krantz.
McGraw-Hill
NY.
2007.
1st
Edition.
Section
:
Chapter
1.
What
is
a
differential
equation.
Section
1.5.
Exact
Equations.
Page
20
Problem
number
:
1
Date
solved
:
Tuesday, September 30, 2025 at 06:05:54 PM
CAS
classification
:
[[_homogeneous, `class G`], _exact, _rational, [_Abel, `2nd type`, `class B`]]
ode:=(x+2/y(x))*diff(y(x),x)+y(x) = 0; dsolve(ode,y(x), singsol=all);
ode=(x+2/y[x])*D[y[x],x]+y[x]==0; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq((x + 2/y(x))*Derivative(y(x), x) + y(x),0) ics = {} dsolve(ode,func=y(x),ics=ics)