Internal
problem
ID
[25090]
Book
:
Ordinary
Differential
Equations.
By
William
Adkins
and
Mark
G
Davidson.
Springer.
NY.
2010.
ISBN
978-1-4614-3617-1
Section
:
Chapter
1.
First
order
differential
equations.
Exercises
at
page
41
Problem
number
:
26
Date
solved
:
Thursday, October 02, 2025 at 11:49:52 PM
CAS
classification
:
[_separable]
With initial conditions
ode:=diff(y(x),x) = (x*y(x)+2*y(x))/x; ic:=[y(1) = exp(1)]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],{x,1}] ==(x*y[x]+2*y[x])/x; ic={y[1]==Exp[1]}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(Derivative(y(x), x) - (x*y(x) + 2*y(x))/x,0) ics = {y(1): E} dsolve(ode,func=y(x),ics=ics)