29.32.20 problem 954
Internal
problem
ID
[5532]
Book
:
Ordinary
differential
equations
and
their
solutions.
By
George
Moseley
Murphy.
1960
Section
:
Various
32
Problem
number
:
954
Date
solved
:
Sunday, March 30, 2025 at 08:29:49 AM
CAS
classification
:
[[_homogeneous, `class A`], _rational, _dAlembert]
\begin{align*} \left (x +y\right ) {y^{\prime }}^{2}+2 x y^{\prime }-y&=0 \end{align*}
✓ Maple. Time used: 0.441 (sec). Leaf size: 119
ode:=(x+y(x))*diff(y(x),x)^2+2*x*diff(y(x),x)-y(x) = 0;
dsolve(ode,y(x), singsol=all);
\begin{align*}
y &= -\frac {\left (1+i \sqrt {3}\right ) x}{2} \\
y &= \frac {\left (i \sqrt {3}-1\right ) x}{2} \\
\ln \left (x \right )-\operatorname {arctanh}\left (\frac {2 x +y}{2 x \sqrt {\frac {x^{2}+y x +y^{2}}{x^{2}}}}\right )+\ln \left (\frac {y}{x}\right )-c_1 &= 0 \\
\ln \left (x \right )+\operatorname {arctanh}\left (\frac {2 x +y}{2 x \sqrt {\frac {x^{2}+y x +y^{2}}{x^{2}}}}\right )+\ln \left (\frac {y}{x}\right )-c_1 &= 0 \\
\end{align*}
✓ Mathematica. Time used: 3.936 (sec). Leaf size: 166
ode=(x+y[x]) (D[y[x],x])^2+2 x D[y[x],x]-y[x]==0;
ic={};
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
\begin{align*}
y(x)\to -\frac {2}{3} \sqrt {e^{c_1} \left (-3 x+e^{c_1}\right )}-\frac {e^{c_1}}{3} \\
y(x)\to \frac {2}{3} \sqrt {e^{c_1} \left (-3 x+e^{c_1}\right )}-\frac {e^{c_1}}{3} \\
y(x)\to e^{c_1}-2 \sqrt {e^{c_1} \left (x+e^{c_1}\right )} \\
y(x)\to 2 \sqrt {e^{c_1} \left (x+e^{c_1}\right )}+e^{c_1} \\
y(x)\to 0 \\
y(x)\to -\frac {1}{2} i \left (\sqrt {3}-i\right ) x \\
y(x)\to \frac {1}{2} i \left (\sqrt {3}+i\right ) x \\
\end{align*}
✓ Sympy. Time used: 24.159 (sec). Leaf size: 131
from sympy import *
x = symbols("x")
y = Function("y")
ode = Eq(2*x*Derivative(y(x), x) + (x + y(x))*Derivative(y(x), x)**2 - y(x),0)
ics = {}
dsolve(ode,func=y(x),ics=ics)
\[
\left [ y{\left (x \right )} = C_{1} e^{- \int \limits ^{\frac {x}{y{\left (x \right )}}} \frac {u_{1}}{u_{1}^{2} + u_{1} \sqrt {u_{1}^{2} + u_{1} + 1} + u_{1} + 1}\, du_{1} - \int \limits ^{\frac {x}{y{\left (x \right )}}} \frac {\sqrt {u_{1}^{2} + u_{1} + 1}}{u_{1}^{2} + u_{1} \sqrt {u_{1}^{2} + u_{1} + 1} + u_{1} + 1}\, du_{1}}, \ y{\left (x \right )} = C_{1} e^{- \int \limits ^{\frac {x}{y{\left (x \right )}}} \frac {u_{1}}{u_{1}^{2} - u_{1} \sqrt {u_{1}^{2} + u_{1} + 1} + u_{1} + 1}\, du_{1} + \int \limits ^{\frac {x}{y{\left (x \right )}}} \frac {\sqrt {u_{1}^{2} + u_{1} + 1}}{u_{1}^{2} - u_{1} \sqrt {u_{1}^{2} + u_{1} + 1} + u_{1} + 1}\, du_{1}}\right ]
\]