Internal
problem
ID
[16648]
Book
:
A
book
of
problems
in
ordinary
differential
equations.
M.L.
KRASNOV,
A.L.
KISELYOV,
G.I.
MARKARENKO.
MIR,
MOSCOW.
1983
Section
:
Section
4.
Equations
with
variables
separable
and
equations
reducible
to
them.
Exercises
page
38
Problem
number
:
62
Date
solved
:
Monday, March 31, 2025 at 03:03:31 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=x*diff(y(x),x)+y(x) = a*(1+x*y(x)); ic:=y(1/a) = -a; dsolve([ode,ic],y(x), singsol=all);
ode=y[x]+x*D[y[x],x]==a*(1+x*y[x]); ic={y[1/a]==-a}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") a = symbols("a") y = Function("y") ode = Eq(-a*(x*y(x) + 1) + x*Derivative(y(x), x) + y(x),0) ics = {y(1/a): -a} dsolve(ode,func=y(x),ics=ics)