Internal
problem
ID
[18610]
Book
:
Differential
equations.
An
introduction
to
modern
methods
and
applications.
James
Brannan,
William
E.
Boyce.
Third
edition.
Wiley
2015
Section
:
Chapter
2.
First
order
differential
equations.
Section
2.1
(Separable
equations).
Problems
at
page
44
Problem
number
:
24
Date
solved
:
Thursday, October 02, 2025 at 03:16:09 PM
CAS
classification
:
[_separable]
With initial conditions
ode:=x^2*diff(y(x),x) = y(x)-x*y(x); ic:=[y(1) = 2]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=x^2*D[y[x],x]==y[x]-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**2*Derivative(y(x), x) + x*y(x) - y(x),0) ics = {y(1): 2} dsolve(ode,func=y(x),ics=ics)