Internal
problem
ID
[17989]
Book
:
A
book
of
problems
in
ordinary
differential
equations.
M.L.
KRASNOV,
A.L.
KISELYOV,
G.I.
MARKARENKO.
MIR,
MOSCOW.
1983
Section
:
Section
3.
The
method
of
successive
approximation.
Exercises
page
31
Problem
number
:
45
Date
solved
:
Thursday, October 02, 2025 at 02:32:25 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=x*diff(y(x),x) = 2*x-y(x); ic:=[y(1) = 2]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=x*D[y[x],x]==2*x-y[x]; ic={y[1]==2}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(x*Derivative(y(x), x) - 2*x + y(x),0) ics = {y(1): 2} dsolve(ode,func=y(x),ics=ics)