Internal
problem
ID
[1223]
Book
:
Elementary
differential
equations
and
boundary
value
problems,
10th
ed.,
Boyce
and
DiPrima
Section
:
Miscellaneous
problems,
end
of
chapter
2.
Page
133
Problem
number
:
6
Date
solved
:
Saturday, March 29, 2025 at 10:48:08 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=x*y(x)+x*diff(y(x),x) = 1-y(x); ic:=y(1) = 0; dsolve([ode,ic],y(x), singsol=all);
ode=x*y[x]+x*D[y[x],x] == 1-y[x]; ic=y[1]==0; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(x*y(x) + x*Derivative(y(x), x) + y(x) - 1,0) ics = {y(1): 0} dsolve(ode,func=y(x),ics=ics)