2.1.62 Problem 62

Solved as second order missing x ode
Maple
Mathematica
Sympy

Internal problem ID [8774]
Book : Own collection of miscellaneous problems
Section : section 1.0
Problem number : 62
Date solved : Sunday, March 30, 2025 at 01:32:55 PM
CAS classification : [[_2nd_order, _missing_x], [_2nd_order, _reducible, _mu_x_y1]]

Solved as second order missing x ode

Time used: 0.807 (sec)

Solve

yy=1

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)(ddyp(y))=1

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

The ode

(1)p=1py

is separable as it can be written as

p=1py=f(y)g(p)

Where

f(y)=1yg(p)=1p

Integrating gives

1g(p)dp=f(y)dypdp=1ydy
p22=ln(y)+c1

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

y22=ln(y)+c1

Solving for the derivative gives these ODE’s to solve

(1)y=2ln(y)+2c1(2)y=2ln(y)+2c1

Now each of the above is solved separately.

Solving Eq. (1)

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

y12ln(τ)+2c1dτ=x+c2

Singular solutions are found by solving

2ln(y)+2c1=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=ec1

Solving Eq. (2)

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

y12ln(τ)+2c1dτ=x+c3

Singular solutions are found by solving

2ln(y)+2c1=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=ec1

Will add steps showing solving for IC soon.

The solution

y=ec1

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

Summary of solutions found

y12ln(τ)+2c1dτ=x+c2

Maple. Time used: 0.029 (sec). Leaf size: 51
ode:=y(x)*diff(diff(y(x),x),x) = 1; 
dsolve(ode,y(x), singsol=all);
 
y12ln(_a)c1d_axc2=0y12ln(_a)c1d_axc2=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)-1/_a = 0, _b(_a), HINT 
= [[_a, 0]] 
   *** Sublevel 2 *** 
   symmetry methods on request 
   1st order, trying reduction of order with given symmetries: 
[_a, 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
 

Mathematica. Time used: 60.07 (sec). Leaf size: 93
ode=y[x]*D[y[x],{x,2}]==1; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)exp(erf1(i2πec1(x+c2)2)2c12)y(x)exp(erf1(i2πec1(x+c2)2)2c12)
Sympy. Time used: 39.041 (sec). Leaf size: 34
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(y(x)*Derivative(y(x), (x, 2)) - 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
[y(x)1C1+2log(u)du=C2+x, y(x)1C1+2log(u)du=C2x]