29.4.8 problem 96

Internal problem ID [4699]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 4
Problem number : 96
Date solved : Sunday, March 30, 2025 at 03:39:54 AM
CAS classification : [_Chini]

\begin{align*} y^{\prime }&=f \left (x \right )+g \left (x \right ) y+h \left (x \right ) y^{n} \end{align*}

Maple
ode:=diff(y(x),x) = f(x)+g(x)*y(x)+h(x)*y(x)^n; 
dsolve(ode,y(x), singsol=all);
 
\[ \text {No solution found} \]
Mathematica
ode=D[y[x],x]==f[x]+g[x]y[x]+h[x]y[x]^n; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 

Not solved

Sympy
from sympy import * 
x = symbols("x") 
n = symbols("n") 
y = Function("y") 
h = Function("h") 
g = Function("g") 
ode = Eq(-f(x) - g(x)*y(x) - h(x)*y(x)**n + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE -f(x) - g(x)*y(x) - h(x)*y(x)**n + Derivative(y(x), x) cannot be solved by the lie group method