DEtools
symtest
test a given symmetry
Calling Sequence
Parameters
Description
Examples
symtest(sym, ode, y(x))
sym
-
list of the coefficients of a symmetry generator
ode
ordinary differential equation
y(x)
(optional) indeterminate function of the ODE
The symtest command checks whether a given pair of infinitesimals (coefficients of the symmetry generator) leave the given ODE invariant; that is, whether the given "symmetry" is actually a symmetry of the ODE. Similar to odetest, symtest returns 0 when the result is valid or returns an algebraic expression obtained after simplifying the PDE for the infinitesimals associated with the given ODE.
If the result returned by symtest is not zero, the symmetry is not necessarily wrong. Sometimes, with further simplification, you can obtain the desired 0 using commands such as expand, combine, and so on.
This function is part of the DEtools package, and so it can be used in the form symtest(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[symtest](..).
An ODE with an arbitrary function F
with⁡DEtools,symgen,symtest
symgen,symtest
ode≔diff⁡y⁡x,x=F⁡y⁡x−x⁢ln⁡xx+ln⁡x
ode≔ⅆⅆxy⁡x=F⁡y⁡x−x⁢ln⁡xx+ln⁡x
A pair of infinitesimals for the ODE above
sym≔symgen⁡ode
sym≔_ξ=x,_η=x+y
Testing these infinitesimals
symtest⁡sym,ode
0
A second order ODE
ode≔diff⁡y⁡x,x,x=1x2⁢_F1⁡diff⁡y⁡x,x⁢xy⁡x⁢y⁡x
ode≔ⅆ2ⅆx2y⁡x=_F1⁡ⅆⅆxy⁡x⁢xy⁡x⁢y⁡xx2
sym≔_ξ=0,_η=y,_ξ=x,_η=0
map⁡symtest,sym,ode
0,0
See Also
dsolve,Lie
equinv
PDEtools
symgen
Download Help Document