Internal
problem
ID
[4097]
Book
:
Theory
and
solutions
of
Ordinary
Differential
equations,
Donald
Greenspan,
1960
Section
:
Chapter
2.
First
order
equations.
Exercises
at
page
14
Problem
number
:
1(g)
Date
solved
:
Sunday, March 30, 2025 at 02:17:39 AM
CAS
classification
:
[_linear]
ode:=diff(y(x),x) = (y(x)-2*x)/x; dsolve(ode,y(x), singsol=all);
ode=D[y[x],x]==(y[x]-2*x)/x; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(Derivative(y(x), x) - (-2*x + y(x))/x,0) ics = {} dsolve(ode,func=y(x),ics=ics)