85.2.6 problem 5

Internal problem ID [22433]
Book : Applied Differential Equations. By Murray R. Spiegel. 3rd edition. 1980. Pearson. ISBN 978-0130400970
Section : Chapter 1. Differential equations in general. B Exercises at page 14
Problem number : 5
Date solved : Thursday, October 02, 2025 at 08:39:17 PM
CAS classification : [[_2nd_order, _missing_x], [_2nd_order, _reducible, _mu_x_y1]]

\begin{align*} y^{\prime \prime }+y^{2}&=0 \end{align*}
Maple. Time used: 0.005 (sec). Leaf size: 12
ode:=diff(diff(y(x),x),x)+y(x)^2 = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = -6 \operatorname {WeierstrassP}\left (x +c_1 , 0, c_2\right ) \]
Mathematica. Time used: 0.419 (sec). Leaf size: 34
ode=D[y[x],{x,2}]+y[x]^2==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to -(-1)^{2/3} \sqrt [3]{6} \wp \left (\sqrt [3]{-\frac {1}{6}} (x+c_1);0,c_2\right ) \end{align*}
Sympy. Time used: 6.654 (sec). Leaf size: 92
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(y(x)**2 + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ \frac {y{\left (x \right )} \Gamma \left (\frac {1}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{3}, \frac {1}{2} \\ \frac {4}{3} \end {matrix}\middle | {\frac {2 e^{2 i \pi } y^{3}{\left (x \right )}}{3 C_{1}}} \right )}}{3 \sqrt {C_{1}} \Gamma \left (\frac {4}{3}\right )} = C_{2} + x, \ \frac {y{\left (x \right )} \Gamma \left (\frac {1}{3}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{3}, \frac {1}{2} \\ \frac {4}{3} \end {matrix}\middle | {\frac {2 e^{2 i \pi } y^{3}{\left (x \right )}}{3 C_{1}}} \right )}}{3 \sqrt {C_{1}} \Gamma \left (\frac {4}{3}\right )} = C_{2} - x\right ] \]