Internal
problem
ID
[7566]
Book
:
Fundamentals
of
Differential
Equations.
By
Nagle,
Saff
and
Snider.
9th
edition.
Boston.
Pearson
2018.
Section
:
Chapter
2,
First
order
differential
equations.
Review
problems.
page
79
Problem
number
:
32
Date
solved
:
Tuesday, September 30, 2025 at 04:53:09 PM
CAS
classification
:
[[_homogeneous, `class A`], _rational, _Bernoulli]
With initial conditions
ode:=diff(y(x),x) = x/y(x)+y(x)/x; ic:=[y(1) = -4]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]== x/y[x]+y[x]/x; ic={y[1]==-4}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x/y(x) + Derivative(y(x), x) - y(x)/x,0) ics = {y(1): -4} dsolve(ode,func=y(x),ics=ics)