2.2.6 Problem 6

Solved as second order missing x ode
Solved as second order can be made integrable
Maple
Mathematica
Sympy

Internal problem ID [9129]
Book : Second order enumerated odes
Section : section 2
Problem number : 6
Date solved : Sunday, March 30, 2025 at 02:17:13 PM
CAS classification : [[_2nd_order, _missing_x], [_2nd_order, _reducible, _mu_x_y1]]

Solved as second order missing x ode

Time used: 1.831 (sec)

Solve

yy+yn=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

p(y)2(ddyp(y))+yn=0

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

The ode

(1)p=ynp2

is separable as it can be written as

p=ynp2=f(y)g(p)

Where

f(y)=yng(p)=1p2

Integrating gives

1g(p)dp=f(y)dyp2dp=yndy
p33=yn+1n+1+c1

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

y33=yn+1n+1+c1

Let p=y the ode becomes

p33=yn+1n+1+c1

Solving for y from the above results in

(1)y=eln(13p3n13p3+c1n+c1)n+1

This has the form

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

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

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

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

f=0g=31n+1((n+1)(p33c1))1n+1

Hence (2) becomes

(2A)p=331n+1(p3np3+3c1n+3c1)1n+1p2p(x)(n+1)(p33c1)

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

p=0

Solving the above for p results in

p1=0

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

y=(c1(n+1))1n+1

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

(3)p(x)=31n+1(p(x)3np(x)3+3c1n+3c1)1n+1(n+1)(p(x)33c1)3p(x)

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

Unable to integrate (or intergal too complicated), and since no initial conditions are given, then the result can be written as

p(x)3nn+1τ((n+1)(τ3+3c1))1n+1(n+1)(τ33c1)dτ=x+c2

Singular solutions are found by solving

3nn+1(n+1)(p33c1)((n+1)(p3+3c1))1n+1p=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)=31/3c11/3p(x)=31/3c11/32i35/6c11/32p(x)=31/3c11/32+i35/6c11/32

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

y=31n+1((n+1)(RootOf(_Zτ3nn+1((n+1)(τ3+3c1))1n+1(n+1)(τ3+3c1)dτ+x+c2)33c1))1n+1y=0y=0y=0

Will add steps showing solving for IC soon.

The solution

y=(c1(n+1))1n+1

was found not to satisfy the ode or the IC. Hence it is removed.

Summary of solutions found

y=0y=31n+1((n+1)(RootOf(_Zτ3nn+1((n+1)(τ3+3c1))1n+1(n+1)(τ3+3c1)dτ+x+c2)33c1))1n+1

Solved as second order can be made integrable

Time used: 2.149 (sec)

Solve

yy+yn=0

Multiplying the ode by y gives

y2y+yyn1y=0

Integrating the above w.r.t x gives

(y2y+yyn1y)dx=0y33+y2e(n1)ln(y)n+1=c1

Which is now solved for y. Let p=y the ode becomes

p33+y2e(n1)ln(y)n+1=c1

Solving for y from the above results in

(1)y=eln(13p3n13p3+c1n+c1)n+1

This has the form

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

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

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

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

f=0g=31n+1((n+1)(p33c1))1n+1

Hence (2) becomes

(2A)p=331n+1(p3np3+3c1n+3c1)1n+1p2p(x)(n+1)(p33c1)

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

p=0

Solving the above for p results in

p1=0

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

y=(c1(n+1))1n+1

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

(3)p(x)=31n+1(p(x)3np(x)3+3c1n+3c1)1n+1(n+1)(p(x)33c1)3p(x)

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

Unable to integrate (or intergal too complicated), and since no initial conditions are given, then the result can be written as

p(x)3nn+1τ((n+1)(τ3+3c1))1n+1(n+1)(τ33c1)dτ=x+c2

Singular solutions are found by solving

3nn+1(n+1)(p33c1)((n+1)(p3+3c1))1n+1p=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)=31/3c11/3p(x)=31/3c11/32i35/6c11/32p(x)=31/3c11/32+i35/6c11/32

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

y=31n+1((n+1)(RootOf(_Zτ3nn+1((n+1)(τ3+3c1))1n+1(n+1)(τ3+3c1)dτ+x+c2)33c1))1n+1y=0y=0y=0

Will add steps showing solving for IC soon.

The solution

y=(c1(n+1))1n+1

was found not to satisfy the ode or the IC. Hence it is removed.

Summary of solutions found

y=0y=31n+1((n+1)(RootOf(_Zτ3nn+1((n+1)(τ3+3c1))1n+1(n+1)(τ3+3c1)dτ+x+c2)33c1))1n+1

Maple. Time used: 0.019 (sec). Leaf size: 169
ode:=diff(y(x),x)*diff(diff(y(x),x),x)+y(x)^n = 0; 
dsolve(ode,y(x), singsol=all);
 
(22n)y1((3_a1+nc1)(1+n)2)1/3d_a(1+i3)(x+c2)1+i3=02i(1+n)y1((3_a1+nc1)(1+n)2)1/3d_a+(x+c2)(3+i)3+i=0y1((3_a1+nc1)(1+n)2)1/3d_an+y1((3_a1+nc1)(1+n)2)1/3d_ac2x=0

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 differential order: 2; missing variables 
   -> Computing symmetries using: way = 3 
-> Calling odsolve with the ODE, diff(_b(_a),_a)*_b(_a)+_a^n/_b(_a) = 0, _b(_a) 
, HINT = [[-3/(n-2)*_a, -_b*(1+n)/(n-2)]] 
   *** Sublevel 2 *** 
   symmetry methods on request 
   1st order, trying reduction of order with given symmetries: 
[-3/(n-2)*_a, -_b*(1+n)/(n-2)] 
   1st order, trying the canonical coordinates of the invariance group 
      -> Calling odsolve with the ODE, diff(y(x),x) = 1/3*y(x)*(1+n)/x, y(x) 
         *** Sublevel 3 *** 
         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
 

Mathematica. Time used: 2.216 (sec). Leaf size: 910
ode=D[y[x],{x,2}]*D[y[x],x]+y[x]^n==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
Solution too large to show

Sympy
from sympy import * 
x = symbols("x") 
n = symbols("n") 
y = Function("y") 
ode = Eq(y(x)**n + Derivative(y(x), x)*Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE y(x)**n/Derivative(y(x), (x, 2)) + Derivative(y(x), x) cannot be solved by the factorable group method