2.17 problem Problem 17

2.17.1 Solving as second order ode missing y ode
2.17.2 Solving as second order ode missing x ode
2.17.3 Maple step by step solution

Internal problem ID [12179]
Internal file name [OUTPUT/10832_Thursday_September_21_2023_05_47_35_AM_66257595/index.tex]

Book: Differential equations and the calculus of variations by L. ElSGOLTS. MIR PUBLISHERS, MOSCOW, Third printing 1977.
Section: Chapter 2, DIFFERENTIAL EQUATIONS OF THE SECOND ORDER AND HIGHER. Problems page 172
Problem number: Problem 17.
ODE order: 2.
ODE degree: 1.

The type(s) of ODE detected by this program : "second_order_ode_missing_x", "second_order_ode_missing_y"

Maple gives the following as the ode type

[[_2nd_order, _missing_x], [_2nd_order, _reducible, _mu_xy]]

\[ \boxed {y^{\prime \prime }+{y^{\prime }}^{2}=1} \] With initial conditions \begin {align*} [y \left (0\right ) = 0, y^{\prime }\left (0\right ) = 1] \end {align*}

2.17.1 Solving as second order ode missing y ode

This is second order ode with missing dependent variable \(y\). Let \begin {align*} p(x) &= y^{\prime } \end {align*}

Then \begin {align*} p'(x) &= y^{\prime \prime } \end {align*}

Hence the ode becomes \begin {align*} p^{\prime }\left (x \right )+p \left (x \right )^{2}-1 = 0 \end {align*}

Which is now solve for \(p(x)\) as first order ode. Since ode has form \(p^{\prime }\left (x \right )= f(p \left (x \right ))\) and initial conditions \(p = 1\) is verified to satisfy the ode, then the solution is \begin {align*} p \left (x \right )&=p_0 \\ &=1 \end {align*}

Since \(p=y^{\prime }\) then the new first order ode to solve is \begin {align*} y^{\prime } = 1 \end {align*}

Integrating both sides gives \begin {align*} y &= \int { 1\,\mathop {\mathrm {d}x}}\\ &= x +c_{2} \end {align*}

Initial conditions are used to solve for \(c_{2}\). Substituting \(x=0\) and \(y=0\) in the above solution gives an equation to solve for the constant of integration. \begin {align*} 0 = c_{2} \end {align*}

The solutions are \begin {align*} c_{2} = 0 \end {align*}

Trying the constant \begin {align*} c_{2} = 0 \end {align*}

Substituting this in the general solution gives \begin {align*} y&=x \end {align*}

The constant \(c_{2} = 0\) gives valid solution.

Initial conditions are used to solve for the constants of integration.

Summary

The solution(s) found are the following \begin{align*} \tag{1} y &= x \\ \end{align*}

Figure 97: Solution plot

Verification of solutions

\[ y = x \] Verified OK.

2.17.2 Solving as second order ode missing x ode

This is missing independent variable second order ode. Solved by reduction of order by using substitution which makes the dependent variable \(y\) an independent variable. Using \begin {align*} y' &= p(y) \end {align*}

Then \begin {align*} y'' &= \frac {dp}{dx}\\ &= \frac {dy}{dx} \frac {dp}{dy}\\ &= p \frac {dp}{dy} \end {align*}

Hence the ode becomes \begin {align*} p \left (y \right ) \left (\frac {d}{d y}p \left (y \right )\right )+p \left (y \right )^{2} = 1 \end {align*}

Which is now solved as first order ode for \(p(y)\). Since ode has form \(\frac {d}{d y}p \left (y \right )= f(p \left (y \right ))\) and initial conditions \(p = 1\) is verified to satisfy the ode, then the solution is \begin {align*} p \left (y \right )&=p_0 \\ &=1 \end {align*}

For solution (1) found earlier, since \(p=y^{\prime }\) then we now have a new first order ode to solve which is \begin {align*} y^{\prime } = 1 \end {align*}

Integrating both sides gives \begin {align*} y &= \int { 1\,\mathop {\mathrm {d}x}}\\ &= x +c_{2} \end {align*}

Initial conditions are used to solve for \(c_{2}\). Substituting \(x=0\) and \(y=0\) in the above solution gives an equation to solve for the constant of integration. \begin {align*} 0 = c_{2} \end {align*}

The solutions are \begin {align*} c_{2} = 0 \end {align*}

Trying the constant \begin {align*} c_{2} = 0 \end {align*}

Substituting this in the general solution gives \begin {align*} y&=x \end {align*}

The constant \(c_{2} = 0\) gives valid solution.

Initial conditions are used to solve for the constants of integration.

Summary

The solution(s) found are the following \begin{align*} \tag{1} y &= x \\ \end{align*}

Figure 98: Solution plot

Verification of solutions

\[ y = x \] Verified OK.

2.17.3 Maple step by step solution

\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [\frac {d}{d x}y^{\prime }+{y^{\prime }}^{2}=1, y \left (0\right )=0, y^{\prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{x \hiderel {=}0\right \}}}}=1\right ] \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 2 \\ {} & {} & \frac {d}{d x}y^{\prime } \\ \bullet & {} & \textrm {Make substitution}\hspace {3pt} u =y^{\prime }\hspace {3pt}\textrm {to reduce order of ODE}\hspace {3pt} \\ {} & {} & u^{\prime }\left (x \right )+u \left (x \right )^{2}=1 \\ \bullet & {} & \textrm {Solve for the highest derivative}\hspace {3pt} \\ {} & {} & u^{\prime }\left (x \right )=-u \left (x \right )^{2}+1 \\ \bullet & {} & \textrm {Separate variables}\hspace {3pt} \\ {} & {} & \frac {u^{\prime }\left (x \right )}{-u \left (x \right )^{2}+1}=1 \\ \bullet & {} & \textrm {Integrate both sides with respect to}\hspace {3pt} x \\ {} & {} & \int \frac {u^{\prime }\left (x \right )}{-u \left (x \right )^{2}+1}d x =\int 1d x +c_{1} \\ \bullet & {} & \textrm {Evaluate integral}\hspace {3pt} \\ {} & {} & \mathrm {arctanh}\left (u \left (x \right )\right )=x +c_{1} \\ \bullet & {} & \textrm {Solve for}\hspace {3pt} u \left (x \right ) \\ {} & {} & u \left (x \right )=\tanh \left (x +c_{1} \right ) \\ \bullet & {} & \textrm {Solve 1st ODE for}\hspace {3pt} u \left (x \right ) \\ {} & {} & u \left (x \right )=\tanh \left (x +c_{1} \right ) \\ \bullet & {} & \textrm {Make substitution}\hspace {3pt} u =y^{\prime } \\ {} & {} & y^{\prime }=\tanh \left (x +c_{1} \right ) \\ \bullet & {} & \textrm {Integrate both sides to solve for}\hspace {3pt} y \\ {} & {} & \int y^{\prime }d x =\int \tanh \left (x +c_{1} \right )d x +c_{2} \\ \bullet & {} & \textrm {Compute integrals}\hspace {3pt} \\ {} & {} & y=\ln \left (\cosh \left (x +c_{1} \right )\right )+c_{2} \\ \square & {} & \textrm {Check validity of solution}\hspace {3pt} y=\ln \left (\cosh \left (x +c_{1} \right )\right )+c_{2} \\ {} & \circ & \textrm {Use initial condition}\hspace {3pt} y \left (0\right )=0 \\ {} & {} & 0=\ln \left (\cosh \left (c_{1} \right )\right )+c_{2} \\ {} & \circ & \textrm {Compute derivative of the solution}\hspace {3pt} \\ {} & {} & y^{\prime }=\frac {\sinh \left (x +c_{1} \right )}{\cosh \left (x +c_{1} \right )} \\ {} & \circ & \textrm {Use the initial condition}\hspace {3pt} y^{\prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{x \hiderel {=}0\right \}}}}=1 \\ {} & {} & 1=\frac {\sinh \left (c_{1} \right )}{\cosh \left (c_{1} \right )} \\ {} & \circ & \textrm {Solve for}\hspace {3pt} c_{1} \hspace {3pt}\textrm {and}\hspace {3pt} c_{2} \\ {} & \circ & \textrm {The solution does not satisfy the initial conditions}\hspace {3pt} \end {array} \]

Maple trace

`Methods for second order ODEs: 
--- Trying classification methods --- 
trying 2nd order Liouville 
trying 2nd order WeierstrassP 
trying 2nd order JacobiSN 
differential order: 2; trying a linearization to 3rd order 
trying 2nd order ODE linearizable_by_differentiation 
trying 2nd order, 2 integrating factors of the form mu(x,y) 
trying a quadrature 
checking if the LODE has constant coefficients 
<- constant coefficients successful 
<- 2nd order, 2 integrating factors of the form mu(x,y) successful`
 

Solution by Maple

Time used: 0.047 (sec). Leaf size: 5

dsolve([diff(y(x),x$2)+diff(y(x),x)^2=1,y(0) = 0, D(y)(0) = 1],y(x), singsol=all)
 

\[ y \left (x \right ) = x \]

Solution by Mathematica

Time used: 0.004 (sec). Leaf size: 6

DSolve[{y''[x]+y'[x]^2==1,{y[0]==0,y'[0]==1}},y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to x \]