38.4.37 problem 19

Internal problem ID [8336]
Book : A First Course in Differential Equations with Modeling Applications by Dennis G. Zill. 12 ed. Metric version. 2024. Cengage learning.
Section : Chapter 2. First order differential equations. Section 2.1 Solution curves without a solution. Exercises 2.1 at page 44
Problem number : 19
Date solved : Tuesday, September 30, 2025 at 05:29:09 PM
CAS classification : [_quadrature]

\begin{align*} y^{\prime }&=y-y^{3} \end{align*}
Maple. Time used: 0.004 (sec). Leaf size: 29
ode:=diff(y(x),x) = y(x)-y(x)^3; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= \frac {1}{\sqrt {{\mathrm e}^{-2 x} c_1 +1}} \\ y &= -\frac {1}{\sqrt {{\mathrm e}^{-2 x} c_1 +1}} \\ \end{align*}
Mathematica. Time used: 0.105 (sec). Leaf size: 53
ode=D[y[x],x]==y[x]-y[x]^3; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \text {InverseFunction}\left [\int _1^{\text {$\#$1}}\frac {1}{(K[1]-1) K[1] (K[1]+1)}dK[1]\&\right ][-x+c_1]\\ y(x)&\to -1\\ y(x)&\to 0\\ y(x)&\to 1 \end{align*}
Sympy. Time used: 0.527 (sec). Leaf size: 39
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(y(x)**3 - y(x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = - \sqrt {- \frac {e^{2 x}}{C_{1} - e^{2 x}}}, \ y{\left (x \right )} = \sqrt {- \frac {e^{2 x}}{C_{1} - e^{2 x}}}\right ] \]