2.1.11 Problem 11

Solved using first_order_ode_reduced_riccati
Solved using first_order_ode_riccati
Maple
Mathematica
Sympy

Internal problem ID [8994]
Book : First order enumerated odes
Section : section 1
Problem number : 11
Date solved : Friday, April 18, 2025 at 01:35:46 PM
CAS classification : [[_Riccati, _special]]

Solved using first_order_ode_reduced_riccati

Time used: 0.137 (sec)

Solve

y=ax+by2

This is reduced Riccati ode of the form

y=axn+by2

Comparing the given ode to the above shows that

a=ab=bn=1

Since n2 then the solution of the reduced Riccati ode is given by

(1)w=x{c1BesselJ(12k,1kabxk)+c2BesselY(12k,1kabxk)ab>0c1BesselI(12k,1kabxk)+c2BesselK(12k,1kabxk)ab<0y=1bwwk=1+n2

EQ(1) gives

k=32w=x(c1BesselJ(13,2abx3/23)+c2BesselY(13,2abx3/23))

Therefore the solution becomes

y=1bww

Substituting the value of b,w found above and simplyfing gives

y=abx(BesselY(23,2abx3/23)c2+BesselJ(23,2abx3/23)c1)b(c1BesselJ(13,2abx3/23)+c2BesselY(13,2abx3/23))

Letting c2=1 the above becomes

y=abx(BesselY(23,2abx3/23)+BesselJ(23,2abx3/23)c1)b(c1BesselJ(13,2abx3/23)+BesselY(13,2abx3/23))

Summary of solutions found

y=abx(BesselY(23,2abx3/23)+BesselJ(23,2abx3/23)c1)b(c1BesselJ(13,2abx3/23)+BesselY(13,2abx3/23))
Solved using first_order_ode_riccati

Time used: 0.168 (sec)

Solve

y=ax+by2

In canonical form the ODE is

y=F(x,y)=by2+ax

This is a Riccati ODE. Comparing the ODE to solve

y=by2+ax

With Riccati ODE standard form

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

Shows that f0(x)=ax, f1(x)=0 and f2(x)=b. Let

y=uf2u(1)=uub

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=0f1f2=0f22f0=b2ax

Substituting the above terms back in equation (2) gives

bu(x)+b2axu(x)=0

This is Airy ODE. It has the general form

au+bu+cux=F(x)

Where in this case

a=bb=0c=b2aF=0

Therefore the solution to the homogeneous Airy ODE becomes

u=c3AiryAi((ab)1/3x)+c4AiryBi((ab)1/3x)

Will add steps showing solving for IC soon.

Taking derivative gives

u(x)=c3(ab)1/3AiryAi(1,(ab)1/3x)c4(ab)1/3AiryBi(1,(ab)1/3x)

Doing change of constants, the solution becomes

y=c5(ab)1/3AiryAi(1,(ab)1/3x)(ab)1/3AiryBi(1,(ab)1/3x)b(c5AiryAi((ab)1/3x)+AiryBi((ab)1/3x))

Which simplifies to

y=(ab)1/3(AiryAi(1,(ab)1/3x)c5+AiryBi(1,(ab)1/3x))b(c5AiryAi((ab)1/3x)+AiryBi((ab)1/3x))

Summary of solutions found

y=(ab)1/3(AiryAi(1,(ab)1/3x)c5+AiryBi(1,(ab)1/3x))b(c5AiryAi((ab)1/3x)+AiryBi((ab)1/3x))
Maple. Time used: 0.002 (sec). Leaf size: 59
ode:=diff(y(x),x) = a*x+b*y(x)^2; 
dsolve(ode,y(x), singsol=all);
 
y=(ba)1/3(AiryAi(1,(ba)1/3x)c1+AiryBi(1,(ba)1/3x))b(c1AiryAi((ba)1/3x)+AiryBi((ba)1/3x))

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 Special 
<- Riccati Special successful
 

Maple step by step

Let’s solveddxy(x)=ax+by(x)2Highest derivative means the order of the ODE is1ddxy(x)Solve for the highest derivativeddxy(x)=ax+by(x)2
Mathematica. Time used: 0.165 (sec). Leaf size: 331
ode=D[y[x],x]==a*x+b*y[x]^2; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)abx3/2(2BesselJ(23,23abx3/2)+c1(BesselJ(23,23abx3/2)BesselJ(43,23abx3/2)))c1BesselJ(13,23abx3/2)2bx(BesselJ(13,23abx3/2)+c1BesselJ(13,23abx3/2))y(x)abx3/2BesselJ(43,23abx3/2)abx3/2BesselJ(23,23abx3/2)+BesselJ(13,23abx3/2)2bxBesselJ(13,23abx3/2)
Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
y = Function("y") 
ode = Eq(-a*x - b*y(x)**2 + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE -a*x - b*y(x)**2 + Derivative(y(x), x) cannot be solved by the lie group method