Internal
problem
ID
[23091]
Book
:
An
introduction
to
Differential
Equations.
By
Howard
Frederick
Cleaves.
1969.
Oliver
and
Boyd
publisher.
ISBN
0050015044
Section
:
Chapter
3.
Some
standard
types
of
differential
equations.
Exercise
3c
at
page
50
Problem
number
:
17
Date
solved
:
Thursday, October 02, 2025 at 09:20:01 PM
CAS
classification
:
[_linear]
With initial conditions
ode:=diff(y(x),x) = (x+y(x)+2)/(1+x); ic:=[y(0) = -1]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]==(x+y[x]+2)/(x+1); ic={y[0]==-1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(Derivative(y(x), x) - (x + y(x) + 2)/(x + 1),0) ics = {y(0): -1} dsolve(ode,func=y(x),ics=ics)