Solving Rational ODEs
Description
Examples
The definition used here for the general form of a rational ODE is:
rational_ode := diff(y(x),x) = P1(x,y(x))/P2(x,y(x));
rational_ode≔ⅆⅆxy⁡x=P1⁡x,y⁡xP2⁡x,y⁡x
where P1 and P2 are arbitrary bivariate polynomials in x and y(x). This type of ODE cannot be solved in a general manner. In some cases, the symmetry method succeeds in finding rational symmetries for the problem (see dsolve,Lie).
with⁡DEtools,odeadvisor,symgen
odeadvisor,symgen
ode1≔2⁢x3⁢y⁡x3−x⁢diff⁡y⁡x,x+2⁢x3⁢y⁡x3−y⁡x
ode1≔2⁢x3⁢y⁡x3−x⁢ⅆⅆxy⁡x+2⁢x3⁢y⁡x3−y⁡x
odeadvisor⁡ode1
_rational
Rational symmetries for ode[1]
symgen⁡ode1,way=2
_ξ=0,_η=y3⁢x22⁢x2⁢y3−1,_ξ=0,_η=y⁢4⁢x3⁢y2+4⁢x2⁢y3+14⁢2⁢x2⁢y3−1
Once you know 'the way' to find the symmetries, you can directly specify that dsolve should use this 'way'. Also, ODEs with rational symmetries are usually better integrated by using their symmetries to build an integrating factor (see intfactor) instead of using canonical coordinates. To avoid multiple solutions, you can request an implicit answer, as follows:
dsolve⁡ode1,way=2,fat,implicit
−2⁢x−12⁢y⁡x2⁢x2−2⁢y⁡x+c__1=0
ode2≔x⁢y⁡x4+2⁢x2⁢y⁡x3+2⁢y⁡x+x⁢diff⁡y⁡x,x+y⁡x5+y⁡x
ode2≔x⁢y⁡x4+2⁢x2⁢y⁡x3+2⁢y⁡x+x⁢ⅆⅆxy⁡x+y⁡x5+y⁡x
odeadvisor⁡ode2
symgen⁡ode2,way=2
_ξ=0,_η=y2⁢x+y22⁢x2⁢y3+x⁢y4+x+2⁢y,_ξ=0,_η=y⁢x+y⁢x⁢y3−12⁢x2⁢y3+x⁢y4+x+2⁢y
dsolve⁡ode2,way=2,fat,implicit
y⁡x4+1y⁡x⁢x+y⁡x−y⁡x2+c__1=0
See Also
DEtools
odeadvisor
dsolve
quadrature
linear
separable
Bernoulli
exact
homogeneous
homogeneousB
homogeneousC
homogeneousD
homogeneousG
Chini
Riccati
Abel
Abel2A
Abel2C
rational
Clairaut
dAlembert
sym_implicit
patterns
odeadvisor,types
Download Help Document