Internal
problem
ID
[9380]
Book
:
Differential
Equations:
Theory,
Technique,
and
Practice
by
George
Simmons,
Steven
Krantz.
McGraw-Hill
NY.
2007.
1st
Edition.
Section
:
Chapter
4.
Power
Series
Solutions
and
Special
Functions.
Section
4.2.
Series
Solutions
of
First-Order
Differential
Equations
Page
162
Problem
number
:
5
solved
directly
Date
solved
:
Tuesday, September 30, 2025 at 06:18:01 PM
CAS
classification
:
[[_linear, `class A`]]
With initial conditions
ode:=diff(y(x),x) = x-y(x); ic:=[y(0) = 0]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]==x-y[x]; ic={y[0]==0}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x + y(x) + Derivative(y(x), x),0) ics = {y(0): 0} dsolve(ode,func=y(x),ics=ics)