Internal
problem
ID
[1227]
Book
:
Elementary
differential
equations
and
boundary
value
problems,
10th
ed.,
Boyce
and
DiPrima
Section
:
Miscellaneous
problems,
end
of
chapter
2.
Page
133
Problem
number
:
10
Date
solved
:
Saturday, March 29, 2025 at 10:48:18 PM
CAS
classification
:
[_separable]
ode:=(-x^2+x+1)/x^2+y(x)*diff(y(x),x)/(-2+y(x)) = 0; dsolve(ode,y(x), singsol=all);
ode=(-x^2+x+1)/x^2+y[x]*D[y[x],x]/(-2+y[x]) == 0; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(y(x)*Derivative(y(x), x)/(y(x) - 2) + (-x**2 + x + 1)/x**2,0) ics = {} dsolve(ode,func=y(x),ics=ics)