Internal
problem
ID
[14566]
Book
:
Differential
Equations
by
Shepley
L.
Ross.
Third
edition.
John
Willey.
New
Delhi.
2004.
Section
:
Chapter
2,
section
2.1
(Exact
differential
equations
and
integrating
factors).
Exercises
page
37
Problem
number
:
15
Date
solved
:
Thursday, October 02, 2025 at 09:42:10 AM
CAS
classification
:
[_exact, _rational, [_1st_order, `_with_symmetry_[F(x)*G(y),0]`]]
With initial conditions
ode:=(3-y(x))/x^2+(y(x)^2-2*x)/x/y(x)^2*diff(y(x),x) = 0; ic:=[y(-1) = 2]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=(3-y[x])/x^2+( (y[x]^2-2*x)/(x*y[x]^2) )*D[y[x],x]==0; ic={y[-1]==2}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq((-2*x + y(x)**2)*Derivative(y(x), x)/(x*y(x)**2) + (3 - y(x))/x**2,0) ics = {y(-1): 2} dsolve(ode,func=y(x),ics=ics)