Internal
problem
ID
[21523]
Book
:
The
Differential
Equations
Problem
Solver.
VOL.
I.
M.
Fogiel
director.
REA,
NY.
1978.
ISBN
78-63609
Section
:
Chapter
5.
Integrating
factors.
Page
72.
Problem
number
:
5-10
Date
solved
:
Thursday, October 02, 2025 at 07:46:46 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=diff(y(x),x)+(b*x+a)*y(x) = f(x); ic:=[y(0) = y__0]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]+(a+b*x)==f[x]; ic={y[0]==y0}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") a = symbols("a") b = symbols("b") y0 = symbols("y0") y = Function("y") f = Function("f") ode = Eq(a + b*x - f(x) + Derivative(y(x), x),0) ics = {y(0): y0} dsolve(ode,func=y(x),ics=ics)