15.18.19 problem 19

Internal problem ID [3262]
Book : Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section : Exercise 35, page 157
Problem number : 19
Date solved : Sunday, March 30, 2025 at 01:25:34 AM
CAS classification : [[_2nd_order, _missing_x], [_2nd_order, _exact, _nonlinear], _Lagerstrom, [_2nd_order, _reducible, _mu_x_y1], [_2nd_order, _reducible, _mu_xy]]

\begin{align*} y^{\prime \prime }+y y^{\prime }&=0 \end{align*}

Maple. Time used: 0.054 (sec). Leaf size: 23
ode:=diff(diff(y(x),x),x)+y(x)*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {\tanh \left (\frac {\left (x +c_2 \right ) \sqrt {2}}{2 c_1}\right ) \sqrt {2}}{c_1} \]
Mathematica. Time used: 10.109 (sec). Leaf size: 34
ode=D[y[x],{x,2}]+y[x]*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \sqrt {2} \sqrt {c_1} \tanh \left (\frac {\sqrt {c_1} (x+c_2)}{\sqrt {2}}\right ) \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(y(x)*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE Derivative(y(x), x) + Derivative(y(x), (x, 2))/y(x) cannot be solved by the factorable group method