2.1.37 Problem 38

Solved using first_order_ode_riccati
Maple
Mathematica
Sympy

Internal problem ID [8749]
Book : Own collection of miscellaneous problems
Section : section 1.0
Problem number : 38
Date solved : Sunday, March 30, 2025 at 01:30:02 PM
CAS classification : [_rational, _Riccati]

Solved using first_order_ode_riccati

Time used: 0.219 (sec)

Solve

xyy+y2=x2/3

In canonical form the ODE is

y=F(x,y)=y2x2/3yx

This is a Riccati ODE. Comparing the ODE to solve

y=y2x+1x1/3+yx

With Riccati ODE standard form

y=f0(x)+f1(x)y+f2(x)y2

Shows that f0(x)=1x1/3, f1(x)=1x and f2(x)=1x. Let

y=uf2u(1)=uux

Using the above substitution in the given ODE results (after some simplification)in a second order ODE to solve for u(x) which is

(2)f2u(x)(f2+f1f2)u(x)+f22f0u(x)=0

But

f2=1x2f1f2=1x2f22f0=1x7/3

Substituting the above terms back in equation (2) gives

u(x)x+u(x)x7/3=0

Writing the ode as

(1)x2ux2/3u=0

Bessel ode has the form

(2)x2u+ux+(n2+x2)u=0

The generalized form of Bessel ode is given by Bowman (1958) as the following

(3)x2u+(12α)xu+(β2γ2x2γn2γ2+α2)u=0

With the standard solution

(4)u=xα(c1BesselJ(n,βxγ)+c2BesselY(n,βxγ))

Comparing (3) to (1) and solving for α,β,n,γ gives

α=12β=3in=32γ=13

Substituting all the above into (4) gives the solution as

u=c1x1/623(3cosh(3x1/3)x1/3sinh(3x1/3))9πix1/3+ic2x1/623(3sinh(3x1/3)x1/3+cosh(3x1/3))9πix1/3

Will add steps showing solving for IC soon.

Taking derivative gives

u(x)=c123(3cosh(3x1/3)x1/3sinh(3x1/3))54x5/6πix1/3c123sinh(3x1/3)3x1/6πix1/3+ic123(3cosh(3x1/3)x1/3sinh(3x1/3))54xπ(ix1/3)3/2+ic223(3sinh(3x1/3)x1/3+cosh(3x1/3))54x5/6πix1/3ic223cosh(3x1/3)3x1/6πix1/3+c223(3sinh(3x1/3)x1/3+cosh(3x1/3))54xπ(ix1/3)3/2

Doing change of constants, the solution becomes

y=(c323(3cosh(3x1/3)x1/3sinh(3x1/3))54x5/6πix1/3c323sinh(3x1/3)3x1/6πix1/3+ic323(3cosh(3x1/3)x1/3sinh(3x1/3))54xπ(ix1/3)3/2+i23(3sinh(3x1/3)x1/3+cosh(3x1/3))54x5/6πix1/3i23cosh(3x1/3)3x1/6πix1/3+23(3sinh(3x1/3)x1/3+cosh(3x1/3))54xπ(ix1/3)3/2)xc3x1/623(3cosh(3x1/3)x1/3sinh(3x1/3))9πix1/3+ix1/623(3sinh(3x1/3)x1/3+cosh(3x1/3))9πix1/3

Which simplifies to

y=3x2/3(isinh(3x1/3)c3cosh(3x1/3))(ic33x1/3)sinh(3x1/3)+(3ix1/3c3+1)cosh(3x1/3)
Figure 2.76: Slope field xyy+y2=x2/3

Summary of solutions found

y=3x2/3(isinh(3x1/3)c3cosh(3x1/3))(ic33x1/3)sinh(3x1/3)+(3ix1/3c3+1)cosh(3x1/3)
Maple. Time used: 0.004 (sec). Leaf size: 72
ode:=diff(y(x),x)*x-y(x)+y(x)^2 = x^(2/3); 
dsolve(ode,y(x), singsol=all);
 
y=(c1|3x1/31|e6x1/3+abs(1,3x1/31)e6x1/3c13x1/3)x1/3c1|3x1/31|e6x1/3+3x1/3+1

Maple trace

Methods for first order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
trying 1st order linear 
trying Bernoulli 
trying separable 
trying inverse linear 
trying homogeneous types: 
trying Chini 
differential order: 1; looking for linear symmetries 
trying exact 
Looking for potential symmetries 
trying Riccati 
trying Riccati sub-methods: 
   trying Riccati_symmetries 
   trying Riccati to 2nd Order 
   -> Calling odsolve with the ODE, diff(diff(y(x),x),x) = 1/x^(4/3)*y(x), y(x) 
      *** Sublevel 2 *** 
      Methods for second order ODEs: 
      --- Trying classification methods --- 
      trying a symmetry of the form [xi=0, eta=F(x)] 
      checking if the LODE is missing y 
      -> Trying an equivalence, under non-integer power transformations, 
         to LODEs admitting Liouvillian solutions. 
         -> Trying a Liouvillian solution using Kovacics algorithm 
            A Liouvillian solution exists 
            Group is reducible or imprimitive 
         <- Kovacics algorithm successful 
      <- Equivalence, under non-integer power transformations successful 
   <- Riccati to 2nd Order successful
 

Maple step by step

Let’s solvex(ddxy(x))y(x)+y(x)2=x2/3Highest derivative means the order of the ODE is1ddxy(x)Solve for the highest derivativeddxy(x)=y(x)y(x)2+x2/3x
Mathematica. Time used: 0.2 (sec). Leaf size: 131
ode=x*D[y[x],x]-y[x]+y[x]^2==x^(2/3); 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)3x2/3(c1cosh(3x3)isinh(3x3))(3ix3c1)cosh(3x3)+(3c1x3+i)sinh(3x3)y(x)3x2/3cosh(3x3)3x3sinh(3x3)cosh(3x3)
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x**(2/3) + x*Derivative(y(x), x) + y(x)**2 - y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE Derivative(y(x), x) + y(x)**2/x - y(x)/x - 1/x**(1/3) cannot be solved by the factorable group method