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 [4022]
Book : Applied Differential equations, Newby Curle. Van Nostrand Reinhold. 1972
Section : Examples, page 35
Problem number : 3
Date solved : Saturday, November 09, 2024 at 07:09:45 PM
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: 0.194 (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*}

Inverting the above ode gives

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

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

\begin{align*} x \left (p \right )&=\int -2 p d p +c_1\\ x \left (p \right )&=-p^{2}+c_1\tag {5} \end{align*}

Now we need to eliminate \(p\) between the above solution and (1A). The first method is to solve for \(p\) from Eq. (1A) and substitute the result into Eq. (5). The Second method is to solve for \(p\) from Eq. (5) and substitute the result into (1A).

Eliminating \(p\) from the following two equations

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

results in

\begin{align*} p &= \operatorname {RootOf}\left (\textit {\_Z}^{2}-c_1 +x \right ) \\ \end{align*}

Substituting the above into Eq (1A) and simplifying gives

\begin{align*} y &= -\frac {2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-c_1 +x \right ) c_1}{3}+\frac {2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-c_1 +x \right ) x}{3}+c_1 \\ \end{align*}

Summary of solutions found

\begin{align*} y &= \frac {1}{3}+x \\ y &= -\frac {2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-c_1 +x \right ) c_1}{3}+\frac {2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-c_1 +x \right ) x}{3}+c_1 \\ \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