2.1.19 Problem 19

Solved as second order missing y ode
Maple
Mathematica
Sympy

Internal problem ID [9090]
Book : Second order enumerated odes
Section : section 1
Problem number : 19
Date solved : Sunday, March 30, 2025 at 02:06:45 PM
CAS classification : [[_2nd_order, _missing_y]]

Solved as second order missing y ode

Time used: 0.969 (sec)

Solve

y2+y=x

This is second order ode with missing dependent variable y. Let

u(x)=y

Then

u(x)=y

Hence the ode becomes

u(x)2+u(x)x=0

Which is now solved for u(x) as first order ode.

Let p=u the ode becomes

p2+ux=0

Solving for u from the above results in

(1)u=p2+x

This has the form

(*)u=xf(p)+g(p)

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

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

p=f+(xf+g)dpdx(2)pf=(xf+g)dpdx

Comparing the form u=xf+g to (1A) shows that

f=1g=p2

Hence (2) becomes

(2A)p1=2pp(x)

The singular solution is found by setting dpdx=0 in the above which gives

p1=0

Solving the above for p results in

p1=1

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

u=x1

The general solution is found when dpdx0. From eq. (2A). This results in

(3)p(x)=p(x)12p(x)

This ODE is now solved for p(x). No inversion is needed.

Integrating gives

2pp1dp=dx2p2ln(p1)=x+c1

Singular solutions are found by solving

p12p=0

for p(x). This is because we had to divide by this in the above step. This gives the following singular solution(s), which also have to satisfy the given ODE.

p(x)=1

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

u=(eLambertW(e1x2c12)1x2c12+1)2+xu=x1

In summary, these are the solution found for u(x)

u=x1u=(eLambertW(e1x2c12)1x2c12+1)2+xu=x1

For solution u=x1, since u=y(x) then we now have a new first order ode to solve which is

y(x)=x1

Since the ode has the form y=f(x), then we only need to integrate f(x).

dy=x1dxy=12x2x+c2

For solution u(x)=(eLambertW(e1x2c12)1x2c12+1)2+x, since u=y then we now have a new first order ode to solve which is

y=(eLambertW(e1x2c12)1x2c12+1)2+x

Since the ode has the form y=f(x), then we only need to integrate f(x).

y=(e2LambertW(e1x2c12)2xc12eLambertW(e1x2c12)1x2c12+x1)dx+c3

For solution u(x)=x1, since u=y then we now have a new first order ode to solve which is

y=x1

Since the ode has the form y=f(x), then we only need to integrate f(x).

dy=x1dxy=12x2x+c4

In summary, these are the solution found for (y)

y=12x2x+c2y=(e2LambertW(e1x2c12)2xc12eLambertW(e1x2c12)1x2c12+x1)dx+c3y=12x2x+c4

Will add steps showing solving for IC soon.

Summary of solutions found

y=(e2LambertW(e1x2c12)2xc12eLambertW(e1x2c12)1x2c12+x1)dx+c3y=12x2x+c2y=12x2x+c4

Maple. Time used: 0.334 (sec). Leaf size: 122
ode:=diff(diff(y(x),x),x)^2+diff(y(x),x) = x; 
dsolve(ode,y(x), singsol=all);
 
y=(e2RootOf(_Zx2e_Z+2+c1ln(e_Z(e_Z2)2))+2eRootOf(_Zx2e_Z+2+c1ln(e_Z(e_Z2)2))+x)dxx+c2y=2LambertW(c1e1x2)33+3LambertW(c1e1x2)2+4LambertW(c1e1x2)+x22x+c2

Maple trace

Methods for second order ODEs: 
Successful isolation of d^2y/dx^2: 2 solutions were found. Trying to solve each\ 
 resulting ODE. 
   *** Sublevel 2 *** 
   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 differential order: 2; missing variables 
      -> Computing symmetries using: way = 3 
   -> Calling odsolve with the ODE, diff(_b(_a),_a) = (_a-_b(_a))^(1/2), _b(_a) 
, HINT = [[1, 1]] 
      *** Sublevel 3 *** 
      symmetry methods on request 
      1st order, trying reduction of order with given symmetries: 
[1, 1] 
      1st order, trying the canonical coordinates of the invariance group 
         -> Calling odsolve with the ODE, diff(y(x),x) = 1, y(x) 
            *** Sublevel 4 *** 
            Methods for first order ODEs: 
            --- Trying classification methods --- 
            trying a quadrature 
            trying 1st order linear 
            <- 1st order linear successful 
      <- 1st order, canonical coordinates successful 
   <- differential order: 2; canonical coordinates successful 
   <- differential order 2; missing variables successful 
------------------- 
* Tackling next ODE. 
   *** Sublevel 2 *** 
   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 differential order: 2; missing variables 
      -> Computing symmetries using: way = 3 
   -> Calling odsolve with the ODE, diff(_b(_a),_a) = -(_a-_b(_a))^(1/2), _b(_a 
), HINT = [[1, 1]] 
      *** Sublevel 3 *** 
      symmetry methods on request 
      1st order, trying reduction of order with given symmetries: 
[1, 1] 
      1st order, trying the canonical coordinates of the invariance group 
      <- 1st order, canonical coordinates successful 
   <- differential order: 2; canonical coordinates successful 
   <- differential order 2; missing variables successful
 

Mathematica. Time used: 17.332 (sec). Leaf size: 172
ode=(D[y[x],{x,2}])^2+D[y[x],x]==x; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)23W(ex21c12)3+3W(ex21c12)2+4W(ex21c12)+x22x+c2y(x)23W(e12(x2+c1))3+3W(e12(x2+c1))2+4W(e12(x2+c1))+x22x+c2y(x)x22x+c2
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x + Derivative(y(x), x) + Derivative(y(x), (x, 2))**2,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : multiple generators [log(sqrt(-_X0 + x) + 1), sqrt(-_X0 + x)] 
No algorithms are implemented to solve equation C1 + x - 2*sqrt(-_X0 + x) + 2*log(sqrt(-_X0 + x) + 1)