Internal
problem
ID
[3057]
Book
:
Differential
Equations
by
Alfred
L.
Nelson,
Karl
W.
Folley,
Max
Coral.
3rd
ed.
DC
heath.
Boston.
1964
Section
:
Exercise
12,
page
46
Problem
number
:
57
Date
solved
:
Sunday, March 30, 2025 at 01:17:33 AM
CAS
classification
:
[_separable]
With initial conditions
ode:=2*(x^2+1)*diff(y(x),x) = (2*y(x)^2-1)*x*y(x); ic:=y(0) = 1; dsolve([ode,ic],y(x), singsol=all);
ode=2*(1+x^2)*D[y[x],x]==(2*y[x]^2-1)*x*y[x]; ic={y[0]==1}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x*(2*y(x)**2 - 1)*y(x) + (2*x**2 + 2)*Derivative(y(x), x),0) ics = {y(0): 1} dsolve(ode,func=y(x),ics=ics)