2.7 problem 8

2.7.1 Solving as homogeneousTypeC ode
2.7.2 Solving as first order ode lie symmetry lookup ode
2.7.3 Maple step by step solution

Internal problem ID [7448]
Internal file name [OUTPUT/6415_Sunday_June_05_2022_04_47_48_PM_81109528/index.tex]

Book: Second order enumerated odes
Section: section 2
Problem number: 8.
ODE order: 1.
ODE degree: 1.

The type(s) of ODE detected by this program : "homogeneousTypeC", "first_order_ode_lie_symmetry_lookup"

Maple gives the following as the ode type

[[_homogeneous, `class C`], _dAlembert]

\[ \boxed {y^{\prime }-\left (x +y\right )^{4}=0} \]

2.7.1 Solving as homogeneousTypeC ode

Let \begin {align*} z = x +y\tag {1} \end {align*}

Then \begin {align*} z^{\prime }\left (x \right )&=1+y^{\prime } \end {align*}

Therefore \begin {align*} y^{\prime }&=z^{\prime }\left (x \right )-1 \end {align*}

Hence the given ode can now be written as \begin {align*} z^{\prime }\left (x \right )-1&=z^{4} \end {align*}

This is separable first order ode. Integrating \begin{align*} \int d x&=\int \frac {1}{z^{4}+1}d z \\ x +c_{1}&=\frac {\sqrt {2}\, \left (\ln \left (\frac {z^{2}+z \sqrt {2}+1}{z^{2}-z \sqrt {2}+1}\right )+2 \arctan \left (z \sqrt {2}+1\right )+2 \arctan \left (z \sqrt {2}-1\right )\right )}{8} \\ \end{align*} Replacing \(z\) back by its value from (1) then the above gives the solution as \[ \frac {\sqrt {2}\, \left (\ln \left (\frac {\left (x +y\right )^{2}+\left (x +y\right ) \sqrt {2}+1}{\left (x +y\right )^{2}-\left (x +y\right ) \sqrt {2}+1}\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}+1\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}-1\right )\right )}{8} = x +c_{1} \]

Summary

The solution(s) found are the following \begin{align*} \tag{1} \frac {\sqrt {2}\, \left (\ln \left (\frac {\left (x +y\right )^{2}+\left (x +y\right ) \sqrt {2}+1}{\left (x +y\right )^{2}-\left (x +y\right ) \sqrt {2}+1}\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}+1\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}-1\right )\right )}{8} &= x +c_{1} \\ \end{align*}

Figure 119: Slope field plot

Verification of solutions

\[ \frac {\sqrt {2}\, \left (\ln \left (\frac {\left (x +y\right )^{2}+\left (x +y\right ) \sqrt {2}+1}{\left (x +y\right )^{2}-\left (x +y\right ) \sqrt {2}+1}\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}+1\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}-1\right )\right )}{8} = x +c_{1} \] Verified OK.

2.7.2 Solving as first order ode lie symmetry lookup ode

Writing the ode as \begin {align*} y^{\prime }&=\left (x +y \right )^{4}\\ y^{\prime }&= \omega \left ( x,y\right ) \end {align*}

The condition of Lie symmetry is the linearized PDE given by \begin {align*} \eta _{x}+\omega \left ( \eta _{y}-\xi _{x}\right ) -\omega ^{2}\xi _{y}-\omega _{x}\xi -\omega _{y}\eta =0\tag {A} \end {align*}

The type of this ode is known. It is of type homogeneous Type C. Therefore we do not need to solve the PDE (A), and can just use the lookup table shown below to find \(\xi ,\eta \)

Table 32: Lie symmetry infinitesimal lookup table for known first order ODE’s

ODE class

Form

\(\xi \)

\(\eta \)

linear ode

\(y'=f(x) y(x) +g(x)\)

\(0\)

\(e^{\int fdx}\)

separable ode

\(y^{\prime }=f\left ( x\right ) g\left ( y\right ) \)

\(\frac {1}{f}\)

\(0\)

quadrature ode

\(y^{\prime }=f\left ( x\right ) \)

\(0\)

\(1\)

quadrature ode

\(y^{\prime }=g\left ( y\right ) \)

\(1\)

\(0\)

homogeneous ODEs of Class A

\(y^{\prime }=f\left ( \frac {y}{x}\right ) \)

\(x\)

\(y\)

homogeneous ODEs of Class C

\(y^{\prime }=\left ( a+bx+cy\right ) ^{\frac {n}{m}}\)

\(1\)

\(-\frac {b}{c}\)

homogeneous class D

\(y^{\prime }=\frac {y}{x}+g\left ( x\right ) F\left (\frac {y}{x}\right ) \)

\(x^{2}\)

\(xy\)

First order special form ID 1

\(y^{\prime }=g\left ( x\right ) e^{h\left (x\right ) +by}+f\left ( x\right ) \)

\(\frac {e^{-\int bf\left ( x\right )dx-h\left ( x\right ) }}{g\left ( x\right ) }\)

\(\frac {f\left ( x\right )e^{-\int bf\left ( x\right ) dx-h\left ( x\right ) }}{g\left ( x\right ) }\)

polynomial type ode

\(y^{\prime }=\frac {a_{1}x+b_{1}y+c_{1}}{a_{2}x+b_{2}y+c_{2}}\)

\(\frac {a_{1}b_{2}x-a_{2}b_{1}x-b_{1}c_{2}+b_{2}c_{1}}{a_{1}b_{2}-a_{2}b_{1}}\)

\(\frac {a_{1}b_{2}y-a_{2}b_{1}y-a_{1}c_{2}-a_{2}c_{1}}{a_{1}b_{2}-a_{2}b_{1}}\)

Bernoulli ode

\(y^{\prime }=f\left ( x\right ) y+g\left ( x\right ) y^{n}\)

\(0\)

\(e^{-\int \left ( n-1\right ) f\left ( x\right ) dx}y^{n}\)

Reduced Riccati

\(y^{\prime }=f_{1}\left ( x\right ) y+f_{2}\left ( x\right )y^{2}\)

\(0\)

\(e^{-\int f_{1}dx}\)

The above table shows that \begin {align*} \xi \left (x,y\right ) &=1\\ \tag {A1} \eta \left (x,y\right ) &=-1 \end {align*}

The next step is to determine the canonical coordinates \(R,S\). The canonical coordinates map \(\left ( x,y\right ) \to \left ( R,S \right )\) where \(\left ( R,S \right )\) are the canonical coordinates which make the original ode become a quadrature and hence solved by integration.

The characteristic pde which is used to find the canonical coordinates is \begin {align*} \frac {d x}{\xi } &= \frac {d y}{\eta } = dS \tag {1} \end {align*}

The above comes from the requirements that \(\left ( \xi \frac {\partial }{\partial x} + \eta \frac {\partial }{\partial y}\right ) S(x,y) = 1\). Starting with the first pair of ode’s in (1) gives an ode to solve for the independent variable \(R\) in the canonical coordinates, where \(S(R)\). Therefore \begin {align*} \frac {dy}{dx} &= \frac {\eta }{\xi }\\ &= \frac {-1}{1}\\ &= -1 \end {align*}

This is easily solved to give \begin {align*} y = -x +c_{1} \end {align*}

Where now the coordinate \(R\) is taken as the constant of integration. Hence \begin {align*} R &= x +y \end {align*}

And \(S\) is found from \begin {align*} dS &= \frac {dx}{\xi } \\ &= \frac {dx}{1} \end {align*}

Integrating gives \begin {align*} S &= \int { \frac {dx}{T}}\\ &= x \end {align*}

Where the constant of integration is set to zero as we just need one solution. Now that \(R,S\) are found, we need to setup the ode in these coordinates. This is done by evaluating \begin {align*} \frac {dS}{dR} &= \frac { S_{x} + \omega (x,y) S_{y} }{ R_{x} + \omega (x,y) R_{y} }\tag {2} \end {align*}

Where in the above \(R_{x},R_{y},S_{x},S_{y}\) are all partial derivatives and \(\omega (x,y)\) is the right hand side of the original ode given by \begin {align*} \omega (x,y) &= \left (x +y \right )^{4} \end {align*}

Evaluating all the partial derivatives gives \begin {align*} R_{x} &= 1\\ R_{y} &= 1\\ S_{x} &= 1\\ S_{y} &= 0 \end {align*}

Substituting all the above in (2) and simplifying gives the ode in canonical coordinates. \begin {align*} \frac {dS}{dR} &= \frac {1}{1+\left (x +y \right )^{4}}\tag {2A} \end {align*}

We now need to express the RHS as function of \(R\) only. This is done by solving for \(x,y\) in terms of \(R,S\) from the result obtained earlier and simplifying. This gives \begin {align*} \frac {dS}{dR} &= \frac {1}{R^{4}+1} \end {align*}

The above is a quadrature ode. This is the whole point of Lie symmetry method. It converts an ode, no matter how complicated it is, to one that can be solved by integration when the ode is in the canonical coordiates \(R,S\). Integrating the above gives \begin {align*} S \left (R \right ) = \frac {\sqrt {2}\, \left (\ln \left (\frac {R^{2}+R \sqrt {2}+1}{R^{2}-R \sqrt {2}+1}\right )+2 \arctan \left (R \sqrt {2}+1\right )+2 \arctan \left (R \sqrt {2}-1\right )\right )}{8}+c_{1}\tag {4} \end {align*}

To complete the solution, we just need to transform (4) back to \(x,y\) coordinates. This results in \begin {align*} x = \frac {\sqrt {2}\, \left (\ln \left (\frac {\left (x +y\right )^{2}+\left (x +y\right ) \sqrt {2}+1}{\left (x +y\right )^{2}-\left (x +y\right ) \sqrt {2}+1}\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}+1\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}-1\right )\right )}{8}+c_{1} \end {align*}

Which simplifies to \begin {align*} x = \frac {\sqrt {2}\, \left (\ln \left (\frac {\left (x +y\right )^{2}+\left (x +y\right ) \sqrt {2}+1}{\left (x +y\right )^{2}-\left (x +y\right ) \sqrt {2}+1}\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}+1\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}-1\right )\right )}{8}+c_{1} \end {align*}

The following diagram shows solution curves of the original ode and how they transform in the canonical coordinates space using the mapping shown.

Original ode in \(x,y\) coordinates

Canonical coordinates transformation

ODE in canonical coordinates \((R,S)\)

\( \frac {dy}{dx} = \left (x +y \right )^{4}\)

\( \frac {d S}{d R} = \frac {1}{R^{4}+1}\)

\(\!\begin {aligned} R&= x +y\\ S&= x \end {aligned} \)

Summary

The solution(s) found are the following \begin{align*} \tag{1} x &= \frac {\sqrt {2}\, \left (\ln \left (\frac {\left (x +y\right )^{2}+\left (x +y\right ) \sqrt {2}+1}{\left (x +y\right )^{2}-\left (x +y\right ) \sqrt {2}+1}\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}+1\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}-1\right )\right )}{8}+c_{1} \\ \end{align*}

Figure 120: Slope field plot

Verification of solutions

\[ x = \frac {\sqrt {2}\, \left (\ln \left (\frac {\left (x +y\right )^{2}+\left (x +y\right ) \sqrt {2}+1}{\left (x +y\right )^{2}-\left (x +y\right ) \sqrt {2}+1}\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}+1\right )+2 \arctan \left (\left (x +y\right ) \sqrt {2}-1\right )\right )}{8}+c_{1} \] Verified OK.

2.7.3 Maple step by step solution

\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & y^{\prime }-\left (x +y\right )^{4}=0 \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 1 \\ {} & {} & y^{\prime } \\ \bullet & {} & \textrm {Solve for the highest derivative}\hspace {3pt} \\ {} & {} & y^{\prime }=\left (x +y\right )^{4} \end {array} \]

Maple trace

`Methods for first order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
trying 1st order linear 
trying Bernoulli 
trying separable 
trying inverse linear 
trying homogeneous types: 
trying homogeneous C 
1st order, trying the canonical coordinates of the invariance group 
<- 1st order, canonical coordinates successful 
<- homogeneous successful`
 

Solution by Maple

Time used: 0.391 (sec). Leaf size: 882

dsolve(diff(y(x), x) = (x + y(x))^4,y(x), singsol=all)
 

\[ \text {Expression too large to display} \]

Solution by Mathematica

Time used: 0.115 (sec). Leaf size: 88

DSolve[y'[x] == (x + y[x])^4,y[x],x,IncludeSingularSolutions -> True]
 

\[ \text {Solve}\left [\frac {1}{4} \text {RootSum}\left [\text {$\#$1}^4+4 \text {$\#$1}^3 y(x)+6 \text {$\#$1}^2 y(x)^2+4 \text {$\#$1} y(x)^3+y(x)^4+1\&,\frac {\log (x-\text {$\#$1})}{\text {$\#$1}^3+3 \text {$\#$1}^2 y(x)+3 \text {$\#$1} y(x)^2+y(x)^3}\&\right ]-x=c_1,y(x)\right ] \]