53.4.3 problem 3

Internal problem ID [8491]
Book : Elementary differential equations. By Earl D. Rainville, Phillip E. Bedient. Macmilliam Publishing Co. NY. 6th edition. 1981.
Section : CHAPTER 16. Nonlinear equations. Section 101. Independent variable missing. EXERCISES Page 324
Problem number : 3
Date solved : Wednesday, March 05, 2025 at 06:01:09 AM
CAS classification : [[_2nd_order, _missing_y]]

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

With initial conditions

\begin{align*} y \left (2\right )&=5\\ y^{\prime }\left (2\right )&=2 \end{align*}

Maple. Time used: 0.012 (sec). Leaf size: 11
ode:=x^2*diff(diff(y(x),x),x)+diff(y(x),x)^2-2*x*diff(y(x),x) = 0; 
ic:=y(2) = 5, D(y)(2) = 2; 
dsolve([ode,ic],y(x), singsol=all);
 
\[ y = \frac {x^{2}}{2}+3 \]
Mathematica. Time used: 0.004 (sec). Leaf size: 14
ode=x^2*D[y[x],{x,2}]+(D[y[x],x])^2-2*x*D[y[x],x]==0; 
ic={y[2]==5,Derivative[1][y][2]==2}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {1}{2} \left (x^2+6\right ) \]
Sympy. Time used: 1.016 (sec). Leaf size: 8
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2*Derivative(y(x), (x, 2)) - 2*x*Derivative(y(x), x) + Derivative(y(x), x)**2,0) 
ics = {y(2): 5, Subs(Derivative(y(x), x), x, 2): 2} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {x^{2}}{2} + 3 \]