Internal
problem
ID
[4789]
Book
:
Ordinary
differential
equations
and
their
solutions.
By
George
Moseley
Murphy.
1960
Section
:
Various
7
Problem
number
:
189
Date
solved
:
Sunday, March 30, 2025 at 03:54:48 AM
CAS
classification
:
[_rational, _Bernoulli]
ode:=x*diff(y(x),x)+y(x) = a*(x^2+1)*y(x)^3; dsolve(ode,y(x), singsol=all);
ode=x D[y[x],x]+y[x]==a(1+x^2)y[x]^3; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") a = symbols("a") y = Function("y") ode = Eq(-a*(x**2 + 1)*y(x)**3 + x*Derivative(y(x), x) + y(x),0) ics = {} dsolve(ode,func=y(x),ics=ics)