Internal
problem
ID
[13675]
Book
:
AN
INTRODUCTION
TO
ORDINARY
DIFFERENTIAL
EQUATIONS
by
JAMES
C.
ROBINSON.
Cambridge
University
Press
2004
Section
:
Chapter
10,
Two
tricks
for
nonlinear
equations.
Exercises
page
97
Problem
number
:
10.3
(ii)
Date
solved
:
Monday, March 31, 2025 at 08:08:03 AM
CAS
classification
:
[_separable]
ode:=(1/y(x)-a)*diff(y(x),x)+2/x-b = 0; dsolve(ode,y(x), singsol=all);
ode=(1/y[x]-a)*D[y[x],x]+2/x-b==0; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") a = symbols("a") b = symbols("b") y = Function("y") ode = Eq(-b + (-a + 1/y(x))*Derivative(y(x), x) + 2/x,0) ics = {} dsolve(ode,func=y(x),ics=ics)