Internal
problem
ID
[9124]
Book
:
Differential
Equations:
Theory,
Technique,
and
Practice
by
George
Simmons,
Steven
Krantz.
McGraw-Hill
NY.
2007.
1st
Edition.
Section
:
Chapter
1.
What
is
a
differential
equation.
Section
1.4
First
Order
Linear
Equations.
Page
15
Problem
number
:
2(d)
Date
solved
:
Tuesday, September 30, 2025 at 06:04:44 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=diff(y(x),x)-y(x)/x = x^2; ic:=[y(1) = 3]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]-y[x]/x==x^2; ic={y[1]==3}; 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) - y(x)/x,0) ics = {y(1): 3} dsolve(ode,func=y(x),ics=ics)