23.1.97 problem 95

Internal problem ID [4704]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Part II. Chapter 1. THE DIFFERENTIAL EQUATION IS OF FIRST ORDER AND OF FIRST DEGREE, page 223
Problem number : 95
Date solved : Friday, October 03, 2025 at 01:21:19 AM
CAS classification : [[_homogeneous, `class G`], _Chini]

\begin{align*} y^{\prime }&=a \,x^{\frac {n}{1-n}}+b y^{n} \end{align*}
Maple. Time used: 0.139 (sec). Leaf size: 65
ode:=diff(y(x),x) = a*x^(n/(1-n))+b*y(x)^n; 
dsolve(ode,y(x), singsol=all);
 
\[ x^{\frac {n}{-1+n}} \int _{\textit {\_b}}^{y}\frac {1}{b \,\textit {\_a}^{n} \left (-1+n \right ) x^{\frac {-1+2 n}{-1+n}}+x^{\frac {n}{-1+n}} \textit {\_a} +a x \left (-1+n \right )}d \textit {\_a} -c_1 = 0 \]
Mathematica. Time used: 1.19 (sec). Leaf size: 117
ode=D[y[x],x]==a*x^(n/(1-n))+b*y[x]^n; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ \text {Solve}\left [\int _1^{\left (\frac {b x^{-\frac {n}{1-n}}}{a}\right )^{\frac {1}{n}} y(x)}\frac {1}{K[1]^n-\left (\frac {(-1)^n a^{1-n} (n-1)^{-n}}{b}\right )^{\frac {1}{n}} K[1]+1}dK[1]=\int _1^xa K[2]^{\frac {n}{1-n}} \left (\frac {b K[2]^{-\frac {n}{1-n}}}{a}\right )^{\frac {1}{n}}dK[2]+c_1,y(x)\right ] \]
Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
n = symbols("n") 
y = Function("y") 
ode = Eq(-a*x**(n/(1 - n)) - b*y(x)**n + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE -a/x**(n/(n - 1)) - b*y(x)**n + Derivative(y(x), x) cannot be so