2.1.46 Problem 46

Solved as second order missing x ode
Maple
Mathematica
Sympy

Internal problem ID [9117]
Book : Second order enumerated odes
Section : section 1
Problem number : 46
Date solved : Sunday, March 30, 2025 at 02:07:39 PM
CAS classification : [[_2nd_order, _missing_x]]

Solved as second order missing x ode

Time used: 2.856 (sec)

Solve

yy2+y3=0

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

y=p

Then

y=dpdx=dpdydydx=pdpdy

Hence the ode becomes

yp(y)2(ddyp(y))2+p(y)3=0

Which is now solved as first order ode for p(y).

Solving for p gives

(1)p=pyy(2)p=pyy

Solving ODE (1)

In canonical form, the ODE is

p=F(y,p)(1)=pyy

An ode of the form p=M(y,p)N(y,p) is called homogeneous if the functions M(y,p) and N(y,p) are both homogeneous functions and of the same order. Recall that a function f(y,p) is homogeneous of order n if

f(tny,tnp)=tnf(y,p)

In this case, it can be seen that both M=py and N=y are both homogeneous and of the same order n=1. Therefore this is a homogeneous ode. Since this ode is homogeneous, it is converted to separable ODE using the substitution u=py, or p=uy. Hence

dpdy=dudyy+u

Applying the transformation p=uy to the above ODE in (1) gives

dudyy+u=ududy=u(y)u(y)y

Or

u(y)u(y)u(y)y=0

Or

u(y)yu(y)+u(y)=0

Which is now solved as separable in u(y).

The ode

(1)u(y)=u(y)u(y)y

is separable as it can be written as

u(y)=u(y)u(y)y=f(y)g(u)

Where

f(y)=1yg(u)=uu

Integrating gives

1g(u)du=f(y)dy1uudu=1ydy
ln(1(u(y)+1)2)=ln(y)+c1

Taking the exponential of both sides the solution becomes

1(u(y)+1)2=c1y

We now need to find the singular solutions, these are found by finding for what values g(u) is zero, since we had to divide by this above. Solving g(u)=0 or

uu=0

for u(y) gives

u(y)=0

Now we go over each such singular solution and check if it verifies the ode itself and any initial conditions given. If it does not then the singular solution will not be used.

Therefore the solutions found are

1(u(y)+1)2=c1yu(y)=0

Converting 1(u(y)+1)2=c1y back to p gives

1(py+1)2=c1y

Converting u(y)=0 back to p gives

p=0

Solving ODE (2)

In canonical form, the ODE is

p=F(y,p)(1)=pyy

An ode of the form p=M(y,p)N(y,p) is called homogeneous if the functions M(y,p) and N(y,p) are both homogeneous functions and of the same order. Recall that a function f(y,p) is homogeneous of order n if

f(tny,tnp)=tnf(y,p)

In this case, it can be seen that both M=py and N=y are both homogeneous and of the same order n=1. Therefore this is a homogeneous ode. Since this ode is homogeneous, it is converted to separable ODE using the substitution u=py, or p=uy. Hence

dpdy=dudyy+u

Applying the transformation p=uy to the above ODE in (1) gives

dudyy+u=ududy=u(y)u(y)y

Or

u(y)u(y)u(y)y=0

Or

u(y)y+u(y)+u(y)=0

Which is now solved as separable in u(y).

The ode

(2)u(y)=u(y)+u(y)y

is separable as it can be written as

u(y)=u(y)+u(y)y=f(y)g(u)

Where

f(y)=1yg(u)=uu

Integrating gives

1g(u)du=f(y)dy1uudu=1ydy
2ln(u(y)1)=ln(y)+c2

Taking the exponential of both sides the solution becomes

1(u(y)1)2=c2y

We now need to find the singular solutions, these are found by finding for what values g(u) is zero, since we had to divide by this above. Solving g(u)=0 or

uu=0

for u(y) gives

u(y)=1u(y)=0

Now we go over each such singular solution and check if it verifies the ode itself and any initial conditions given. If it does not then the singular solution will not be used.

Therefore the solutions found are

1(u(y)1)2=c2yu(y)=1u(y)=0

Converting 1(u(y)1)2=c2y back to p gives

1(py1)2=c2y

Converting u(y)=1 back to p gives

p=y

Converting u(y)=0 back to p gives

p=0

For solution (1) found earlier, since p=y then we now have a new first order ode to solve which is

1(yy+1)2=c1y

Solving for the derivative gives these ODE’s to solve

(1)y=2c1y(c1y1)c1y+c1y1c1(2)y=2c1y(c1y+1)c1y+c1y1c1

Now each of the above is solved separately.

Solving Eq. (1)

Integrating gives

c1yc1c1yc1y2c1y+c1ydy=dx2+(2c1y+2)ln(c1y1)c1y1=x+c3

Singular solutions are found by solving

c1yc1y2c1y+c1yc1yc1=0

for y. 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.

y=1c1

Solving Eq. (2)

Integrating gives

c1yc1c1yc1y+2c1y+c1ydy=dx2+(2c1y2)ln(c1y+1)c1y+1=x+c4

For solution (2) found earlier, since p=y then we now have a new first order ode to solve which is

y=0

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

dy=0dx+c5y=c5

For solution (3) found earlier, since p=y then we now have a new first order ode to solve which is

1(yy1)2=c2y

Solving for the derivative gives these ODE’s to solve

(1)y=2c2y(c2y+1)c2yc2y+1c2(2)y=2c2y(c2y1)c2yc2y+1c2

Now each of the above is solved separately.

Solving Eq. (1)

Integrating gives

c2yc2c2yc2y+2c2y+c2ydy=dx2+(2c2y2)ln(c2y+1)c2y+1=x+c6

Solving Eq. (2)

Integrating gives

c2yc2c2yc2y2c2y+c2ydy=dx2+(2c2y+2)ln(c2y1)c2y1=x+c7

Singular solutions are found by solving

c2yc2y2c2y+c2yc2yc2=0

for y. 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.

y=1c2

For solution (4) found earlier, since p=y then we now have a new first order ode to solve which is

y=y

Integrating gives

1ydy=dxln(y)=x+c8

Singular solutions are found by solving

y=0

for y. 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.

y=0

For solution (5) found earlier, since p=y then we now have a new first order ode to solve which is

y=0

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

dy=0dx+c9y=c9

Will add steps showing solving for IC soon.

Solving for y from the above solution(s) gives (after possible removing of solutions that do not verify)

y=0y=c5y=c9y=1c1y=LambertW(ec62+x2)2+2LambertW(ec62+x2)+1LambertW(ec62+x2)2c2y=LambertW(ec32+x2)2+2LambertW(ec32+x2)+1LambertW(ec32+x2)2c1y=exc8

Summary of solutions found

y=0y=c5y=c9y=1c1y=LambertW(ec62+x2)2+2LambertW(ec62+x2)+1LambertW(ec62+x2)2c2y=LambertW(ec32+x2)2+2LambertW(ec32+x2)+1LambertW(ec32+x2)2c1y=exc8

Maple. Time used: 1.138 (sec). Leaf size: 178
ode:=y(x)*diff(diff(y(x),x),x)^2+diff(y(x),x)^3 = 0; 
dsolve(ode,y(x), singsol=all);
 
y=c1y=0y=ee2RootOf(e_Zln((e_Z1)2)+c1e_Z2e_Z_Z+xe_Zln((e_Z1)2)c1+2_Zx+2)dx+2eRootOf(e_Zln((e_Z1)2)+c1e_Z2e_Z_Z+xe_Zln((e_Z1)2)c1+2_Zx+2)dxx+c2y=c2(LambertW(c1e1+x2)+1)2LambertW(c1e1+x2)2y=c2(LambertW(c1e1+x2)+1)2LambertW(c1e1+x2)2

Maple trace

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

Mathematica. Time used: 1.974 (sec). Leaf size: 361
ode=y[x]*D[y[x],{x,2}]^2+D[y[x],x]^3==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)InverseFunction[4(12log(2#1ic1)ic12(2#1ic1))&][x+c2]y(x)InverseFunction[4(ic12(2#1+ic1)+12log(2#1+ic1))&][x+c2]y(x)InverseFunction[4(12log(2#1i(c1))i(c1)2(2#1i(c1)))&][x+c2]y(x)InverseFunction[4(i(c1)2(2#1+i(1)c1)+12log(2#1+i(1)c1))&][x+c2]y(x)InverseFunction[4(12log(2#1ic1)ic12(2#1ic1))&][x+c2]y(x)InverseFunction[4(ic12(2#1+ic1)+12log(2#1+ic1))&][x+c2]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(y(x)*Derivative(y(x), (x, 2))**2 + Derivative(y(x), x)**3,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE (-y(x)*Derivative(y(x), (x, 2))**2)**(1/3)/2 - sqrt(3)*I*(-y(x)*Derivative(y(x), (x, 2))**2)**(1/3)/2 + Derivative(y(x), x) cannot be solved by the factorable group method