83.32.8 problem 8

Internal problem ID [19336]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Chapter VII. Exact differential equations and certain particular forms of equations. Exercise VII (F) at page 113
Problem number : 8
Date solved : Monday, March 31, 2025 at 07:08:49 PM
CAS classification : [[_2nd_order, _missing_x], [_2nd_order, _reducible, _mu_xy]]

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

Maple. Time used: 0.020 (sec). Leaf size: 15
ode:=diff(diff(y(x),x),x)+diff(y(x),x)^2+1 = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \ln \left (-c_1 \sin \left (x \right )+c_2 \cos \left (x \right )\right ) \]
Mathematica. Time used: 1.759 (sec). Leaf size: 16
ode=D[y[x],{x,2}]+D[y[x],x]^2+1==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \log (\cos (x-c_1))+c_2 \]
Sympy. Time used: 1.147 (sec). Leaf size: 31
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), x)**2 + Derivative(y(x), (x, 2)) + 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = C_{1} - \frac {\log {\left (\tan ^{2}{\left (C_{2} - x \right )} + 1 \right )}}{2}, \ y{\left (x \right )} = C_{1} - \frac {\log {\left (\tan ^{2}{\left (C_{2} - x \right )} + 1 \right )}}{2}\right ] \]