2.1.3 problem 3

Solved as first order ode of type dAlembert
Maple step by step solution
Maple trace
Maple dsolve solution
Mathematica DSolve solution

Internal problem ID [4089]
Book : Applied Differential equations, Newby Curle. Van Nostrand Reinhold. 1972
Section : Examples, page 35
Problem number : 3
Date solved : Tuesday, December 17, 2024 at 06:22:02 AM
CAS classification : [[_homogeneous, `class C`], _dAlembert]

Solve

\begin{align*} y-x&={y^{\prime }}^{2} \left (1-\frac {2 y^{\prime }}{3}\right ) \end{align*}

Solved as first order ode of type dAlembert

Time used: 1.317 (sec)

Let \(p=y^{\prime }\) the ode becomes

\begin{align*} y -x = p^{2} \left (1-\frac {2 p}{3}\right ) \end{align*}

Solving for \(y\) from the above results in

\begin{align*} \tag{1} y &= p^{2}-\frac {2}{3} p^{3}+x \\ \end{align*}

This has the form

\begin{align*} y=xf(p)+g(p)\tag {*} \end{align*}

Where \(f,g\) are functions of \(p=y'(x)\). The above ode is dAlembert ode which is now solved.

Taking derivative of (*) w.r.t. \(x\) gives

\begin{align*} p &= f+(x f'+g') \frac {dp}{dx}\\ p-f &= (x f'+g') \frac {dp}{dx}\tag {2} \end{align*}

Comparing the form \(y=x f + g\) to (1A) shows that

\begin{align*} f &= 1\\ g &= p^{2}-\frac {2}{3} p^{3} \end{align*}

Hence (2) becomes

\begin{align*} p -1 = \left (-2 p^{2}+2 p \right ) p^{\prime }\left (x \right )\tag {2A} \end{align*}

The singular solution is found by setting \(\frac {dp}{dx}=0\) in the above which gives

\begin{align*} p -1 = 0 \end{align*}

Solving the above for \(p\) results in

\begin{align*} p_{1} &=1 \end{align*}

Substituting these in (1A) and keeping singular solution that verifies the ode gives

\begin{align*} y = \frac {1}{3}+x \end{align*}

The general solution is found when \( \frac { \mathop {\mathrm {d}p}}{\mathop {\mathrm {d}x}}\neq 0\). From eq. (2A). This results in

\begin{align*} p^{\prime }\left (x \right ) = \frac {p \left (x \right )-1}{-2 p \left (x \right )^{2}+2 p \left (x \right )}\tag {3} \end{align*}

This ODE is now solved for \(p \left (x \right )\). No inversion is needed. Integrating gives

\begin{align*} \int -2 p d p &= dx\\ -p^{2}&= x +c_1 \end{align*}

Solving for \(p \left (x \right )\) gives

\begin{align*} p \left (x \right ) &= \sqrt {-c_1 -x} \\ p \left (x \right ) &= -\sqrt {-c_1 -x} \\ \end{align*}

Substituing the above solution for \(p\) in (2A) gives

\begin{align*} y = -c_1 -\frac {2 \left (-c_1 -x \right )^{{3}/{2}}}{3}\\ y = -c_1 +\frac {2 \left (-c_1 -x \right )^{{3}/{2}}}{3}\\ \end{align*}

Summary of solutions found

\begin{align*} y &= \frac {1}{3}+x \\ y &= -c_1 -\frac {2 \left (-c_1 -x \right )^{{3}/{2}}}{3} \\ y &= -c_1 +\frac {2 \left (-c_1 -x \right )^{{3}/{2}}}{3} \\ \end{align*}

Maple step by step solution
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & y \left (x \right )-x =\left (\frac {d}{d x}y \left (x \right )\right )^{2} \left (1-\frac {2 \frac {d}{d x}y \left (x \right )}{3}\right ) \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 1 \\ {} & {} & \frac {d}{d x}y \left (x \right ) \\ \bullet & {} & \textrm {Solve for the highest derivative}\hspace {3pt} \\ {} & {} & \left [\frac {d}{d x}y \left (x \right )=\frac {\left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}{2}+\frac {1}{2 \left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}+\frac {1}{2}, \frac {d}{d x}y \left (x \right )=-\frac {\left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}{4}-\frac {1}{4 \left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}+\frac {1}{2}-\frac {\mathrm {I} \sqrt {3}\, \left (\frac {\left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}{2}-\frac {1}{2 \left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}\right )}{2}, \frac {d}{d x}y \left (x \right )=-\frac {\left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}{4}-\frac {1}{4 \left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}+\frac {1}{2}+\frac {\mathrm {I} \sqrt {3}\, \left (\frac {\left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}{2}-\frac {1}{2 \left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}\right )}{2}\right ] \\ \bullet & {} & \textrm {Solve the equation}\hspace {3pt} \frac {d}{d x}y \left (x \right )=\frac {\left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}{2}+\frac {1}{2 \left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}+\frac {1}{2} \\ \bullet & {} & \textrm {Solve the equation}\hspace {3pt} \frac {d}{d x}y \left (x \right )=-\frac {\left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}{4}-\frac {1}{4 \left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}+\frac {1}{2}-\frac {\mathrm {I} \sqrt {3}\, \left (\frac {\left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}{2}-\frac {1}{2 \left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}\right )}{2} \\ \bullet & {} & \textrm {Solve the equation}\hspace {3pt} \frac {d}{d x}y \left (x \right )=-\frac {\left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}{4}-\frac {1}{4 \left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}+\frac {1}{2}+\frac {\mathrm {I} \sqrt {3}\, \left (\frac {\left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}{2}-\frac {1}{2 \left (1-6 y \left (x \right )+6 x +2 \sqrt {-3 y \left (x \right )+3 x +9 y \left (x \right )^{2}-18 x y \left (x \right )+9 x^{2}}\right )^{{1}/{3}}}\right )}{2} \\ \bullet & {} & \textrm {Set of solutions}\hspace {3pt} \\ {} & {} & \left \{\mathit {workingODE} , \mathit {workingODE} , \mathit {workingODE}\right \} \end {array} \]

Maple trace
`Methods for first order ODEs: 
   *** Sublevel 2 *** 
   Methods for first order ODEs: 
   -> Solving 1st order ODE of high degree, 1st attempt 
   trying 1st order WeierstrassP solution for high degree ODE 
   trying 1st order WeierstrassPPrime solution for high degree ODE 
   trying 1st order JacobiSN solution for high degree ODE 
   trying 1st order ODE linearizable_by_differentiation 
   trying differential order: 1; missing variables 
   trying dAlembert 
   <- dAlembert successful`
 
Maple dsolve solution

Solving time : 0.033 (sec)
Leaf size : 49

dsolve(-x+y(x) = diff(y(x),x)^2*(1-2/3*diff(y(x),x)), 
       y(x),singsol=all)
 
\begin{align*} y \left (x \right ) &= x +\frac {1}{3} \\ y \left (x \right ) &= \frac {\left (2 x -2 c_{1} \right ) \sqrt {-x +c_{1}}}{3}+c_{1} \\ y \left (x \right ) &= \frac {\left (-2 x +2 c_{1} \right ) \sqrt {-x +c_{1}}}{3}+c_{1} \\ \end{align*}
Mathematica DSolve solution

Solving time : 0.0 (sec)
Leaf size : 0

DSolve[{y[x]-x==D[y[x],x]^2*(1-2/3* D[y[x],x]),{}}, 
       y[x],x,IncludeSingularSolutions->True]
 

Timed out