Internal
problem
ID
[6275]
Book
:
Fundamentals
of
Differential
Equations.
By
Nagle,
Saff
and
Snider.
9th
edition.
Boston.
Pearson
2018.
Section
:
Chapter
2,
First
order
differential
equations.
Section
2.2,
Separable
Equations.
Exercises.
page
46
Problem
number
:
20
Date
solved
:
Sunday, March 30, 2025 at 10:48:15 AM
CAS
classification
:
[_separable]
With initial conditions
ode:=x^2*diff(y(x),x) = (4*x^2-x-2)/(1+x)/(1+y(x)); ic:=y(1) = 1; dsolve([ode,ic],y(x), singsol=all);
ode=x^2*D[y[x],x]==(4*x^2-x-2)/((x+1)*(y[x]+1)); ic={y[1]==1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(x**2*Derivative(y(x), x) - (4*x**2 - x - 2)/((x + 1)*(y(x) + 1)),0) ics = {y(1): 1} dsolve(ode,func=y(x),ics=ics)