29.13.6 problem 360
Internal
problem
ID
[4960]
Book
:
Ordinary
differential
equations
and
their
solutions.
By
George
Moseley
Murphy.
1960
Section
:
Various
13
Problem
number
:
360
Date
solved
:
Sunday, March 30, 2025 at 04:21:18 AM
CAS
classification
:
[_linear]
\begin{align*} x \left (-x^{2}+1\right ) y^{\prime }&=x^{3} \left (-x^{2}+1\right )+\left (-2 x^{2}+1\right ) y \end{align*}
✓ Maple. Time used: 0.002 (sec). Leaf size: 24
ode:=x*(-x^2+1)*diff(y(x),x) = x^3*(-x^2+1)+(-2*x^2+1)*y(x);
dsolve(ode,y(x), singsol=all);
\[
y = \sqrt {x +1}\, \sqrt {x -1}\, c_1 x +x^{3}-x
\]
✓ Mathematica. Time used: 0.05 (sec). Leaf size: 26
ode=x(1-x^2)D[y[x],x]==x^3(1-x^2)+(1-2 x^2)y[x];
ic={};
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
\[
y(x)\to x \left (x^2+c_1 \sqrt {1-x^2}-1\right )
\]
✓ Sympy. Time used: 30.437 (sec). Leaf size: 328
from sympy import *
x = symbols("x")
y = Function("y")
ode = Eq(-x**3*(1 - x**2) + x*(1 - x**2)*Derivative(y(x), x) - (1 - 2*x**2)*y(x),0)
ics = {}
dsolve(ode,func=y(x),ics=ics)
\[
y{\left (x \right )} = \begin {cases} \tilde {\infty } x^{3} + \tilde {\infty } x \sqrt {x^{2} - 1} \int \frac {y{\left (x \right )}}{\left (\left (x - 1\right ) \left (x + 1\right )\right )^{\frac {3}{2}}}\, dx + \tilde {\infty } x \sqrt {x^{2} - 1} \int \frac {y{\left (x \right )}}{x^{2} \left (\left (x - 1\right ) \left (x + 1\right )\right )^{\frac {3}{2}}}\, dx + \tilde {\infty } x \sqrt {x^{2} - 1} + \tilde {\infty } x & \text {for}\: x > -1 \wedge \left |{x^{2}}\right | > 1 \wedge x < 1 \\\frac {C_{1} \sqrt {1 - x^{2}} \sqrt {x^{2} - 1}}{2 x \sqrt {1 - x^{2}} + 2 i x \sqrt {x^{2} - 1}} + \frac {x^{2} \sqrt {1 - x^{2}}}{2 x \sqrt {1 - x^{2}} + 2 i x \sqrt {x^{2} - 1}} + \frac {2 \sqrt {1 - x^{2}} \sqrt {x^{2} - 1} \int \frac {y{\left (x \right )}}{\left (\left (x - 1\right ) \left (x + 1\right )\right )^{\frac {3}{2}}}\, dx}{2 x \sqrt {1 - x^{2}} + 2 i x \sqrt {x^{2} - 1}} - \frac {\sqrt {1 - x^{2}} \sqrt {x^{2} - 1} \int \frac {y{\left (x \right )}}{x^{2} \left (\left (x - 1\right ) \left (x + 1\right )\right )^{\frac {3}{2}}}\, dx}{2 x \sqrt {1 - x^{2}} + 2 i x \sqrt {x^{2} - 1}} - \frac {\sqrt {1 - x^{2}}}{2 x \sqrt {1 - x^{2}} + 2 i x \sqrt {x^{2} - 1}} & \text {for}\: x > -1 \wedge x < 1 \end {cases}
\]