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