40.5.3 problem 19

Internal problem ID [6668]
Book : Schaums Outline. Theory and problems of Differential Equations, 1st edition. Frank Ayres. McGraw Hill 1952
Section : Chapter 9. Equations of first order and higher degree. Supplemetary problems. Page 65
Problem number : 19
Date solved : Wednesday, March 05, 2025 at 01:36:33 AM
CAS classification : [[_homogeneous, `class A`], _rational, _dAlembert]

\begin{align*} x {y^{\prime }}^{2}-2 y y^{\prime }+4 x&=0 \end{align*}

Maple. Time used: 0.023 (sec). Leaf size: 30
ode:=x*diff(y(x),x)^2-2*y(x)*diff(y(x),x)+4*x = 0; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= -2 x \\ y &= 2 x \\ y &= \frac {4 c_1^{2}+x^{2}}{2 c_1} \\ \end{align*}
Mathematica. Time used: 0.295 (sec). Leaf size: 43
ode=x*(D[y[x],x])^2-2*y[x]*D[y[x],x]+4*x==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to -2 x \cosh (-\log (x)+c_1) \\ y(x)\to -2 x \cosh (\log (x)+c_1) \\ y(x)\to -2 x \\ y(x)\to 2 x \\ \end{align*}
Sympy. Time used: 2.698 (sec). Leaf size: 15
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x)**2 + 4*x - 2*y(x)*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = 2 x^{2} e^{- C_{1}} + \frac {e^{C_{1}}}{2} \]