2.1.69 Problem 69

Solved as second order missing x ode
Maple
Mathematica
Sympy

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

Solved as second order missing x ode

Time used: 6.331 (sec)

Solve

ay2y+by2=c

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

ay2p(y)(ddyp(y))+by2=c

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

The ode

(1)p=by2cpay2

is separable as it can be written as

p=by2cpay2=f(y)g(p)

Where

f(y)=by2cay2g(p)=1p

Integrating gives

1g(p)dp=f(y)dypdp=by2cay2dy
p22=by2cay+c1

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

y22=by2cay+c1

Solving for the derivative gives these ODE’s to solve

(1)y=2ay(by2c1ay+c)ay(2)y=2ay(by2c1ay+c)ay

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

yaτ2aτ(c1aτ+bτ2+c)dτ=x+c2

Singular solutions are found by solving

2ay(c1ay+by2+c)ay=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=c1a+c12a24bc2by=c1a+c12a24bc2b

Solving Eq. (2)

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

yaτ2aτ(c1aτ+bτ2+c)dτ=x+c3

Singular solutions are found by solving

2ay(c1ay+by2+c)ay=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=c1a+c12a24bc2by=c1a+c12a24bc2b

Will add steps showing solving for IC soon.

The solution

y=c1a+c12a24bc2b

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

y=c1a+c12a24bc2b

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

Summary of solutions found

yaτ2aτ(c1aτ+bτ2+c)dτ=x+c2

Maple. Time used: 0.027 (sec). Leaf size: 76
ode:=a*y(x)^2*diff(diff(y(x),x),x)+b*y(x)^2 = c; 
dsolve(ode,y(x), singsol=all);
 
ay_a_aa(c1_aa2b_a22c)d_axc2=0ay_a_aa(c1_aa2b_a22c)d_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 
   -> Computing symmetries using: way = exp_sym 
-> Calling odsolve with the ODE, diff(_b(_a),_a)*_b(_a)+(_a^2*b-c)/_a^2/a = 0, 
_b(_a) 
   *** Sublevel 2 *** 
   Methods for first order ODEs: 
   --- Trying classification methods --- 
   trying a quadrature 
   trying 1st order linear 
   trying Bernoulli 
   <- Bernoulli successful 
<- differential order: 2; canonical coordinates successful 
<- differential order 2; missing variables successful
 

Mathematica. Time used: 0.85 (sec). Leaf size: 346
ode=a*y[x]^2*D[y[x],{x,2}]+b*y[x]^2==c; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
Solve[(16bc+a2c12ac1)(16bc+a2c12+ac1)2(1+4by(x)16bc+a2c12ac1)(14by(x)16bc+a2c12+ac1)(E(iarcsinh(2ba2c1216bcac1y(x))|ac1a2c1216bcac1+a2c1216bc)EllipticF(iarcsinh(2ba2c1216bcac1y(x)),ac1a2c1216bcac1+a2c1216bc))216b3y(x)(2(by(x)2+c)ay(x)+c1)=(x+c2)2,y(x)]
Sympy. Time used: 95.329 (sec). Leaf size: 48
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
c = symbols("c") 
y = Function("y") 
ode = Eq(a*y(x)**2*Derivative(y(x), (x, 2)) + b*y(x)**2 - c,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
[y(x)1C12(ub+cu)adu=C2+x, y(x)1C12(ub+cu)adu=C2x]