 symgen - Maple Help

# Online Help

###### All Products    Maple    MapleSim

DEtools

 symgen
 look for a symmetry generator for a given ODE Calling Sequence symgen(ODE, y(x), way=xxx, HINT=...) Parameters

 ODE - ordinary differential equation y(x) - (optional) dependent variable way=xxx - (optional) algorithm where xxx is one of 2, 3, 4, 5, 6, abaco1, abaco2, all, exp_sym, formal, mu, patterns, and pdsolve; forces the use of only one xxx of the nine internal algorithms for determining the coefficients of the symmetry generator (infinitesimals) HINT = [e1, e2] - (optional) e1 and e2 indicate a possible functional form for the infinitesimals HINT = [[e1, e2], [e3, e4], ...] - (optional) list of possible functional forms for the infinitesimals Description

 • The symgen command looks for the infinitesimals $\mathrm{\xi }\left(x,y\right)$ and $\mathrm{\eta }\left(x,y\right)$ of a one-parameter Lie group that make the given ODE invariant (see odepde). For instance, in the case of a first order ODE of the form $y\text{'}=\mathrm{\Phi }\left(x,y\right)$, symgen looks for a pair of functions $\left\{\mathrm{\eta },\mathrm{\xi }\right\}$ that satisfies the following:
 > with(DEtools):
 > odepde(diff(y(x),x)=Phi(x,y(x)));
 $\frac{{\partial }}{{\partial }{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{_η}}{}\left({x}{,}{y}\right){+}\left(\frac{{\partial }}{{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{_η}}{}\left({x}{,}{y}\right){-}\frac{{\partial }}{{\partial }{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{_ξ}}{}\left({x}{,}{y}\right)\right){}{\mathrm{\Phi }}{}\left({x}{,}{y}\right){-}\left(\frac{{\partial }}{{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{_ξ}}{}\left({x}{,}{y}\right)\right){}{{\mathrm{\Phi }}{}\left({x}{,}{y}\right)}^{{2}}{-}{\mathrm{_ξ}}{}\left({x}{,}{y}\right){}\left(\frac{{\partial }}{{\partial }{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{\Phi }}{}\left({x}{,}{y}\right)\right){-}{\mathrm{_η}}{}\left({x}{,}{y}\right){}\left(\frac{{\partial }}{{\partial }{y}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{\Phi }}{}\left({x}{,}{y}\right)\right)$ (1)
 • The symgen command is the engine that implements symmetry methods in dsolve (see dsolve,Lie). All nine of symgen's schemes assume that the highest derivative present in the given ODE can be isolated. By default, symgen looks for as many pairs of infinitesimals as the differential order of the ODE. However, you can change the number of symmetries by assigning the environment variable _Env_ODE_syms to a positive integer (the number of desired symmetries); symgen then returns an answer as soon as these symmetries are found, or when it has tried all nine schemes.
 • Although in the framework of symgen, the definition of a symmetry includes dynamical symmetries -- that is: derivatives of the dependent variable can be present in the infinitesimals -- when using the optional argument way = formal, symgen will compute only point symmetries -- that is: infinitesimals depending only on the independent and dependent variables.
 • The options available for this command are the same way=xxx and HINT=xxx options of dsolve,Lie. The HINT option is particularly useful since it enables you to try your own heuristics for finding the infinitesimals if none of symgen's schemes are successful.
 • A brief summary of symgen's schemes is as follows:
 • The first algorithms, called formal, formulates a linear PDE system for the infinitesimals $\left[\mathrm{\xi },\mathrm{\eta }\right]$, then formally triangularize this system - using differential algebra techniques - finally tacking the resulting uncoupled system. When successful, this algorithm returns the complete set of point symmetries admitted by a given ODE of order 2 or higher. NOTE: this algorithm is advantageous mainly for 2nd and higher order ODEs. The algorithm works as well in the case of first order ODEs, but in this case the subproblems it will need to solve to find the symmetries are as difficult to solve as the first order ODE itself.
 • The second algorithm, called $\mathrm{abaco1}$, consists of two sets of four schemes each. The first four schemes look for xi, eta taking one of the infinitesimals as $0$, and the other as a function of only one variable, namely $\left[\mathrm{\xi }=0,\mathrm{\eta }=f\left(x\right)\right]$, $\left[\mathrm{\xi }=0,\mathrm{\eta }=f\left(y\right)\right]$, $\left[\mathrm{\xi }=f\left(x\right),\mathrm{\eta }=0\right]$, $\left[\mathrm{\xi }=f\left(y\right),\mathrm{\eta }=0\right]$.
 The possible success of each case is determined by algebraic factorization of the PDE above, and when this possibility is confirmed, an auxiliary ODE is built and sent to dsolve to determine the explicit resulting form for $f$.
 The second sequence of schemes looks for xi, eta taking one of the infinitesimals as $0$, and the other one as an expression containing both $x$ and $y$, namely $\left[\mathrm{\xi }=0,\mathrm{\eta }=f\left(x\right)g\left(y\right)\right],\left[\mathrm{\xi }=f\left(x\right)g\left(y\right),\mathrm{\eta }=0\right]$, where $g$ is an algebraic expression built by extracting factors from the numerator and denominator of the ODE to be solved, and $f$ is an unknown function determined by solving auxiliary ODEs as in the first four schemes.
 • The second, third and fourth algorithms consist of bivariate ansatze which are polynomial and rational in $x,y$. You can set the maximum degree of the polynomials by assigning the global 'dgun' variable; otherwise, it is set automatically by an internal routine.
 • The fifth algorithm looks for a solution for xi and eta as follows:
 1) a basis of functions and algebraic objects is built by taking, from the given ODE, all the known functions (their derivative rules are known by the Maple system) and composite algebraic objects, together with their derivatives, as well as all the unknown functions;
 2) a polynomial of degree two in such objects is built; its coefficients, in turn, are polynomials of degree $d$ (the dgun variable mentioned above) in $x,y$, with undetermined coefficients.
 This ansatz is introduced into a PDE equivalent to the PDE for xi, eta above, resulting in a system of algebraic equations for the undetermined coefficients mentioned above.
 • The sixth algorithm looks for a solution for xi and eta when the ODE is of first order and of Riccati type. This algorithm consists of three different schemes for finding the infinitesimals, exploring changes of variables, and tackling the PDE for the infinitesimals using separation of variables.
 • The seventh algorithm, called pdsolve, tries to solve a PDE equivalent to the PDE for xi, eta using the pdsolve command from the PDEtools package.
 • The eighth algorithm, called $\mathrm{abaco2}$, consists of four schemes for determining the infinitesimals xi, eta, making use of the HINT option of symgen, with two indeterminate functions of only one variable each, namely
 $\left[\mathrm{\xi }=g\left(x\right),\mathrm{\eta }=f\left(x\right)\right],\left[\mathrm{\xi }=g\left(x\right),\mathrm{\eta }=f\left(y\right)\right],\left[\mathrm{\xi }=g\left(y\right),\mathrm{\eta }=f\left(x\right)\right],\left[\mathrm{\xi }=g\left(y\right),\mathrm{\eta }=f\left(y\right)\right]$.
 • This function is part of the DEtools package, and so it can be used in the form symgen(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[symgen](..). Examples

First order ODEs

Kamke's ODE 120; for better displaying of formulas we use here the PDEtools[declare] command:

 > $\mathrm{with}\left(\mathrm{DEtools}\right):$
 > $\mathrm{PDEtools}\left[\mathrm{declare}\right]\left(y\left(x\right),\mathrm{prime}=x\right)$
 ${y}{}\left({x}\right){}{\mathrm{will now be displayed as}}{}{y}$
 ${\mathrm{derivatives with respect to}}{}{x}{}{\mathrm{of functions of one variable will now be displayed with \text{'}}}$ (2)

If infolevel is set to a greater integer (possible settings are 1 through 5), more detailed information about the computation method is displayed.

 > $\mathrm{infolevel}\left[\mathrm{symgen}\right]≔2$
 ${{\mathrm{infolevel}}}_{{\mathrm{symgen}}}{≔}{2}$ (3)
 > $\mathrm{ode1}≔x\mathrm{diff}\left(y\left(x\right),x\right)-y\left(x\right)\left(x\mathrm{ln}\left(\frac{{x}^{2}}{y\left(x\right)}\right)+2\right)=0$
 ${\mathrm{ode1}}{≔}{x}{}{\mathrm{y\text{'}}}{-}{y}{}\left({x}{}{\mathrm{ln}}{}\left(\frac{{{x}}^{{2}}}{{y}}\right){+}{2}\right){=}{0}$ (4)
 > $\mathrm{symgen}\left(\mathrm{ode1}\right)$
 -> Computing symmetries using: way = 2-> Computing symmetries using: way = 3    -> Computing symmetries using: way = 4
 <- successful computation of symmetries.
 $\left[{1}{,}\frac{{2}{}{y}}{{x}}\right]$
 $\left[{\mathrm{_ξ}}{=}{1}{,}{\mathrm{_η}}{=}\frac{{2}{}{y}}{{x}}\right]$ (5)

Kamke's ODE 236

 > $\mathrm{ode2}≔x\left(y\left(x\right)+4\right)\mathrm{diff}\left(y\left(x\right),x\right)-{y\left(x\right)}^{2}-2y\left(x\right)-2x=0$
 ${\mathrm{ode2}}{≔}{x}{}\left({y}{+}{4}\right){}{\mathrm{y\text{'}}}{-}{{y}}^{{2}}{-}{2}{}{y}{-}{2}{}{x}{=}{0}$ (6)
 > $\mathrm{odeadvisor}\left(\mathrm{ode2}\right)$
 $\left[{\mathrm{_rational}}{,}\left[{\mathrm{_Abel}}{,}{\mathrm{2nd type}}{,}{\mathrm{class B}}\right]\right]$ (7)
 > $\mathrm{sym2}≔\left[\mathrm{symgen}\left(\mathrm{ode2}\right)\right]$
 -> Computing symmetries using: way = 2
 <- successful computation of symmetries.
 $\left[{0}{,}\frac{{-}{{y}}^{{2}}{}{x}{+}{{y}}^{{3}}{-}{4}{}{{x}}^{{2}}{+}{4}{}{y}{}{x}}{{x}{}\left({y}{+}{4}\right)}\right]{,}\left[{0}{,}\frac{{{x}}^{{3}}{-}{3}{}{y}{}{{x}}^{{2}}{+}{2}{}{{y}}^{{2}}{}{x}{-}{4}{}{{x}}^{{2}}{+}{4}{}{y}{}{x}}{{x}{}\left({y}{+}{4}\right)}\right]$
 ${\mathrm{sym2}}{≔}\left[\left[{\mathrm{_ξ}}{=}{0}{,}{\mathrm{_η}}{=}\frac{\left({x}{-}{y}\right){}\left({x}{-}{2}{}{y}{-}{4}\right)}{{y}{+}{4}}\right]{,}\left[{\mathrm{_ξ}}{=}{0}{,}{\mathrm{_η}}{=}{-}\frac{\left({{y}}^{{2}}{+}{4}{}{x}\right){}\left({x}{-}{y}\right)}{{x}{}\left({y}{+}{4}\right)}\right]\right]$ (8)

These symmetries can be tested using symtest.

 > $\mathrm{map}\left(\mathrm{symtest},\mathrm{sym2},\mathrm{ode2}\right)$
 $\left[{0}{,}{0}\right]$ (9)

Kamke's ODE 357 (no classification)

 > $\mathrm{ode3}≔x\mathrm{diff}\left(y\left(x\right),x\right)\mathrm{ln}\left(x\right)\mathrm{sin}\left(y\left(x\right)\right)+\mathrm{cos}\left(y\left(x\right)\right)\left(1-x\mathrm{cos}\left(y\left(x\right)\right)\right)=0$
 ${\mathrm{ode3}}{≔}{x}{}{\mathrm{y\text{'}}}{}{\mathrm{ln}}{}\left({x}\right){}{\mathrm{sin}}{}\left({y}\right){+}{\mathrm{cos}}{}\left({y}\right){}\left({1}{-}{x}{}{\mathrm{cos}}{}\left({y}\right)\right){=}{0}$ (10)
 > $\mathrm{sym3}≔\left[\mathrm{symgen}\left(\mathrm{ode3},\mathrm{way}=5\right)\right]$
 -> Computing symmetries using: way = 5
 <- successful computation of symmetries.
 $\left[{0}{,}\frac{{\mathrm{cos}}{}\left({2}{}{y}\right){+}{1}}{{\mathrm{ln}}{}\left({x}\right){}{\mathrm{sin}}{}\left({y}\right)}\right]{,}\left[{0}{,}\frac{{x}{}{\mathrm{cos}}{}\left({2}{}{y}\right){-}{2}{}{\mathrm{cos}}{}\left({y}\right){}{\mathrm{ln}}{}\left({x}\right){+}{x}}{{\mathrm{ln}}{}\left({x}\right){}{\mathrm{sin}}{}\left({y}\right)}\right]$
 ${\mathrm{sym3}}{≔}\left[\left[{\mathrm{_ξ}}{=}{0}{,}{\mathrm{_η}}{=}\frac{{\mathrm{cos}}{}\left({2}{}{y}\right){+}{1}}{{\mathrm{ln}}{}\left({x}\right){}{\mathrm{sin}}{}\left({y}\right)}\right]{,}\left[{\mathrm{_ξ}}{=}{0}{,}{\mathrm{_η}}{=}\frac{{x}{}{\mathrm{cos}}{}\left({2}{}{y}\right){-}{2}{}{\mathrm{cos}}{}\left({y}\right){}{\mathrm{ln}}{}\left({x}\right){+}{x}}{{\mathrm{ln}}{}\left({x}\right){}{\mathrm{sin}}{}\left({y}\right)}\right]\right]$ (11)
 > $\mathrm{map}\left(\mathrm{symtest},\mathrm{sym3},\mathrm{ode3}\right)$
 $\left[{0}{,}{0}\right]$ (12)

The answer is returned by dsolve using the first of these symmetries:

 > $\mathrm{dsolve}\left(\mathrm{ode3}\right)$
 -> Computing symmetries using: way = 3-> Computing symmetries using: way = 4    -> Computing symmetries using: way = 5
 <- successful computation of symmetries.
 $\left[{0}{,}\frac{{\mathrm{cos}}{}\left({2}{}{y}\right){+}{1}}{{\mathrm{ln}}{}\left({x}\right){}{\mathrm{sin}}{}\left({y}\right)}\right]{,}\left[{0}{,}\frac{{x}{}{\mathrm{cos}}{}\left({2}{}{y}\right){-}{2}{}{\mathrm{cos}}{}\left({y}\right){}{\mathrm{ln}}{}\left({x}\right){+}{x}}{{\mathrm{ln}}{}\left({x}\right){}{\mathrm{sin}}{}\left({y}\right)}\right]$
 ${y}{=}{\mathrm{arccos}}{}\left(\frac{{\mathrm{ln}}{}\left({x}\right)}{{\mathrm{_C1}}{+}{x}}\right)$ (13)

Here is an ODE with an arbitrary function $F\left(x,y\right)$ (no classification):

 > $\mathrm{ode4}≔\mathrm{diff}\left(y\left(x\right),x\right)=\frac{F\left({y\left(x\right)}^{\frac{3}{2}}-\frac{3}{2}\mathrm{exp}\left(x\right)\right)}{{y\left(x\right)}^{\frac{1}{2}}}\mathrm{exp}\left(x\right)$
 ${\mathrm{ode4}}{≔}{\mathrm{y\text{'}}}{=}\frac{{F}{}\left({{y}}^{{3}}{{2}}}{-}\frac{{3}{}{{ⅇ}}^{{x}}}{{2}}\right){}{{ⅇ}}^{{x}}}{\sqrt{{y}}}$ (14)
 > $\mathrm{symgen}\left(\mathrm{ode4},\mathrm{way}=\mathrm{abaco2}\right)$
 -> Computing symmetries using: way = abaco2
 <- successful computation of symmetries.
 $\left[{{ⅇ}}^{{-}{x}}{,}\frac{{1}}{\sqrt{{y}}}\right]$
 $\left[{\mathrm{_ξ}}{=}{{ⅇ}}^{{-}{x}}{,}{\mathrm{_η}}{=}\frac{{1}}{\sqrt{{y}}}\right]$ (15)

Second order ODEs

Kamke's nonlinear second order example number 33; in this example, only formal methods succeed in computing a 2-D symmetry group depending on an arbitrary function f(x):

 > $\mathrm{k33}≔\mathrm{diff}\left(y\left(x\right),x,x\right)+\left(y\left(x\right)+3f\left(x\right)\right)\mathrm{diff}\left(y\left(x\right),x\right)-{y\left(x\right)}^{3}+{y\left(x\right)}^{2}f\left(x\right)+y\left(x\right)\left(\mathrm{diff}\left(f\left(x\right),x\right)+2{f\left(x\right)}^{2}\right)=0$
 ${\mathrm{k33}}{≔}{\mathrm{y\text{'}\text{'}}}{+}\left({y}{+}{3}{}{f}{}\left({x}\right)\right){}{\mathrm{y\text{'}}}{-}{{y}}^{{3}}{+}{{y}}^{{2}}{}{f}{}\left({x}\right){+}{y}{}\left({\mathrm{f\text{'}}}{+}{2}{}{{f}{}\left({x}\right)}^{{2}}\right){=}{0}$ (16)
 > $\mathrm{sym33}≔\mathrm{symgen}\left(\mathrm{k33},y\left(x\right),\mathrm{way}=\mathrm{formal}\right)$
 -> Computing symmetries using: way = formal
 <- successful computation of symmetries.
 $\left[\frac{{1}}{{{ⅇ}}^{{\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}}}{,}{-}\frac{{f}{}\left({x}\right){}{y}}{{{ⅇ}}^{{\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}}}\right]{,}\left[\frac{{\int }{{ⅇ}}^{{\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}}{{{ⅇ}}^{{\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}}}{,}{-}\frac{\left(\left({\int }{{ⅇ}}^{{\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}\right){}{f}{}\left({x}\right){+}{{ⅇ}}^{{\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}}\right){}{y}}{{{ⅇ}}^{{\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}}}\right]$
 ${\mathrm{sym33}}{≔}\left[{\mathrm{_ξ}}{=}{{ⅇ}}^{{-}\left({\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}\right)}{,}{\mathrm{_η}}{=}{-}{{ⅇ}}^{{-}\left({\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}\right)}{}{f}{}\left({x}\right){}{y}\right]{,}\left[{\mathrm{_ξ}}{=}\left({\int }{{ⅇ}}^{{\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}\right){}{{ⅇ}}^{{-}\left({\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}\right)}{,}{\mathrm{_η}}{=}{-}{y}{}\left(\left({\int }{{ⅇ}}^{{\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}\right){}{{ⅇ}}^{{-}\left({\int }{-}{f}{}\left({x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}\right)}{}{f}{}\left({x}\right){+}{1}\right)\right]$ (17)
 > $\mathrm{map}\left(\mathrm{symtest},\left[\mathrm{sym33}\right],\mathrm{k33},y\left(x\right)\right)$
 $\left[{0}{,}{0}\right]$ (18)

This example shows an ODE containing an arbitrary function $G$:

 > $\mathrm{ode5}≔\mathrm{diff}\left(y\left(x\right),x,x\right)=-\frac{4{\mathrm{diff}\left(y\left(x\right),x\right)}^{2}}{4y\left(x\right)-G\left(\mathrm{diff}\left(y\left(x\right),x\right)x-\frac{1}{2}y\left(x\right)\right)}$
 ${\mathrm{ode5}}{≔}{\mathrm{y\text{'}\text{'}}}{=}{-}\frac{{4}{}{{\mathrm{y\text{'}}}}^{{2}}}{{4}{}{y}{-}{G}{}\left({x}{}{\mathrm{y\text{'}}}{-}\frac{{y}}{{2}}\right)}$ (19)
 > $\mathrm{odeadvisor}\left(\mathrm{ode5}\right)$
 $\left[\left[{\mathrm{_2nd_order}}{,}{\mathrm{_with_linear_symmetries}}\right]\right]$ (20)

This one has two pairs of infinitesimals for ode5 (a point and a dynamical symmetry):

 > $\mathrm{sym5}≔\mathrm{symgen}\left(\mathrm{ode5}\right)$
 -> Computing symmetries using: way = 3
 <- successful computation of symmetries.-> Computing symmetries using: way = 2    -> Computing symmetries using: way = abaco1
 <- successful computation of symmetries.
 $\left[{x}{,}{0}\right]$
 $\left[{x}{,}{0}\right]{,}\left[{0}{,}\frac{{1}}{{\mathrm{_y1}}}\right]$
 ${\mathrm{sym5}}{≔}\left[{\mathrm{_ξ}}{=}{x}{,}{\mathrm{_η}}{=}{0}\right]{,}\left[{\mathrm{_ξ}}{=}{0}{,}{\mathrm{_η}}{=}\frac{{1}}{{\mathrm{_y1}}}\right]$ (21)
 > $\mathrm{map}\left(\mathrm{symtest},\left[\mathrm{sym5}\right],\mathrm{ode5}\right)$
 $\left[{0}{,}{0}\right]$ (22)
 > $\mathrm{ode6}≔\mathrm{diff}\left(y\left(x\right),x,x\right)=\frac{1}{{x}^{2}}\left({\mathrm{diff}\left(y\left(x\right),x\right)}^{2}{x}^{2}-2y\left(x\right)\mathrm{diff}\left(y\left(x\right),x\right)x+{y\left(x\right)}^{2}\right)$
 ${\mathrm{ode6}}{≔}{\mathrm{y\text{'}\text{'}}}{=}\frac{{{\mathrm{y\text{'}}}}^{{2}}{}{{x}}^{{2}}{-}{2}{}{y}{}{\mathrm{y\text{'}}}{}{x}{+}{{y}}^{{2}}}{{{x}}^{{2}}}$ (23)
 > $\mathrm{symgen}\left(\mathrm{ode6}\right)$
 -> Computing symmetries using: way = 3
 <- successful computation of symmetries.
 $\left[{0}{,}{x}\right]{,}\left[{x}{,}{0}\right]$
 $\left[{\mathrm{_ξ}}{=}{0}{,}{\mathrm{_η}}{=}{x}\right]{,}\left[{\mathrm{_ξ}}{=}{x}{,}{\mathrm{_η}}{=}{0}\right]$ (24)

Below, $G$ is again an arbitrary function of its arguments (the ODE does not match any recognizable pattern).

 > $\mathrm{ode7}≔\mathrm{diff}\left(y\left(x\right),x,x\right)=\frac{\frac{1}{\mathrm{ln}\left(y\left(x\right)\right)}\left({\mathrm{diff}\left(y\left(x\right),x\right)}^{2}-y\left(x\right)\mathrm{ln}\left(y\left(x\right)\right)\mathrm{diff}\left(y\left(x\right),x\right)+y\left(x\right){\mathrm{ln}\left(y\left(x\right)\right)}^{2}\mathrm{exp}\left(-2x\right)G\left(\frac{\mathrm{diff}\left(y\left(x\right),x\right)}{\mathrm{ln}\left(y\left(x\right)\right)}\mathrm{exp}\left(x\right)\right)\right)}{y\left(x\right)}$
 ${\mathrm{ode7}}{≔}{\mathrm{y\text{'}\text{'}}}{=}\frac{{{\mathrm{y\text{'}}}}^{{2}}{-}{y}{}{\mathrm{ln}}{}\left({y}\right){}{\mathrm{y\text{'}}}{+}{y}{}{{\mathrm{ln}}{}\left({y}\right)}^{{2}}{}{{ⅇ}}^{{-}{2}{}{x}}{}{G}{}\left(\frac{{\mathrm{y\text{'}}}{}{{ⅇ}}^{{x}}}{{\mathrm{ln}}{}\left({y}\right)}\right)}{{\mathrm{ln}}{}\left({y}\right){}{y}}$ (25)
 > $\mathrm{odeadvisor}\left(\mathrm{ode7}\right)$
 $\left[{\mathrm{NONE}}\right]$ (26)

Two point symmetries for ode7. Although symgen succeeds in finding these symmetries without extra arguments, specifying a way might save some time.

 > $\mathrm{symgen}\left(\mathrm{ode7},\mathrm{way}=\mathrm{abaco1}\right)$
 -> Computing symmetries using: way = abaco1
 <- successful computation of symmetries.
 $\left[{0}{,}{\mathrm{ln}}{}\left({y}\right)\right]{,}\left[{{ⅇ}}^{{x}}{,}{0}\right]$
 $\left[{\mathrm{_ξ}}{=}{0}{,}{\mathrm{_η}}{=}{\mathrm{ln}}{}\left({y}\right)\right]{,}\left[{\mathrm{_ξ}}{=}{{ⅇ}}^{{x}}{,}{\mathrm{_η}}{=}{0}\right]$ (27)

High order ODEs

A third order example

 > $\mathrm{ode8}≔\mathrm{diff}\left(y\left(x\right),x,x,x\right)=\frac{13}{8{x}^{3}}y\left(x\right)-\frac{\frac{1}{8}\left(-20\mathrm{diff}\left(y\left(x\right),x,x\right){x}^{2}+26\mathrm{diff}\left(y\left(x\right),x\right)x\right)}{{x}^{3}}-\frac{\frac{1}{8}\left(24\mathrm{diff}\left(y\left(x\right),x\right){x}^{3}\mathrm{diff}\left(y\left(x\right),x,x\right)-20{\mathrm{diff}\left(y\left(x\right),x\right)}^{2}{x}^{2}\right)}{{x}^{3}y\left(x\right)}$
 ${\mathrm{ode8}}{≔}{\mathrm{y\text{'}\text{'}\text{'}}}{=}\frac{{13}{}{y}}{{8}{}{{x}}^{{3}}}{-}\frac{{-}{20}{}{\mathrm{y\text{'}\text{'}}}{}{{x}}^{{2}}{+}{26}{}{x}{}{\mathrm{y\text{'}}}}{{8}{}{{x}}^{{3}}}{-}\frac{{24}{}{\mathrm{y\text{'}}}{}{{x}}^{{3}}{}{\mathrm{y\text{'}\text{'}}}{-}{20}{}{{\mathrm{y\text{'}}}}^{{2}}{}{{x}}^{{2}}}{{8}{}{{x}}^{{3}}{}{y}}$ (28)
 > $\mathrm{odeadvisor}\left(\mathrm{ode8}\right)$
 $\left[\left[{\mathrm{_3rd_order}}{,}{\mathrm{_with_linear_symmetries}}\right]\right]$ (29)
 > $\mathrm{sym8}≔\mathrm{symgen}\left(\mathrm{ode8}\right)$
 -> Computing symmetries using: way = 2
 <- successful computation of symmetries.-> Computing symmetries using: way = 3
 <- successful computation of symmetries.
 $\left[{0}{,}\frac{{x}}{{y}}\right]$
 $\left[{0}{,}\frac{{x}}{{y}}\right]{,}\left[{0}{,}{y}\right]{,}\left[{x}{,}{0}\right]$
 ${\mathrm{sym8}}{≔}\left[{\mathrm{_ξ}}{=}{0}{,}{\mathrm{_η}}{=}{y}\right]{,}\left[{\mathrm{_ξ}}{=}{x}{,}{\mathrm{_η}}{=}{0}\right]{,}\left[{\mathrm{_ξ}}{=}{0}{,}{\mathrm{_η}}{=}\frac{{x}}{{y}}\right]$ (30)
 > $\mathrm{map}\left(\mathrm{symtest},\left[\mathrm{sym8}\right],\mathrm{ode8}\right)$
 $\left[{0}{,}{0}{,}{0}\right]$ (31)

Here is how to find a solution for ode8 using these symmetries:

 > $\mathrm{ans8}≔\mathrm{dsolve}\left(\mathrm{ode8}\right)$
 ${\mathrm{ans8}}{≔}{y}{=}{-}\frac{{2}{}\sqrt{{-}{145}{}{{x}}^{\frac{{9}}{{4}}{-}\frac{\sqrt{{29}}}{{4}}}{}{\mathrm{_C2}}{}\sqrt{{29}}{+}{145}{}{{x}}^{\frac{{9}}{{4}}{+}\frac{\sqrt{{29}}}{{4}}}{}\sqrt{{29}}{}{\mathrm{_C3}}{-}{841}{}{{x}}^{\frac{{9}}{{4}}{-}\frac{\sqrt{{29}}}{{4}}}{}{\mathrm{_C2}}{-}{841}{}{{x}}^{\frac{{9}}{{4}}{+}\frac{\sqrt{{29}}}{{4}}}{}{\mathrm{_C3}}{+}{1682}{}{\mathrm{_C1}}{}{x}}}{{29}}{,}{y}{=}\frac{{2}{}\sqrt{{-}{145}{}{{x}}^{\frac{{9}}{{4}}{-}\frac{\sqrt{{29}}}{{4}}}{}{\mathrm{_C2}}{}\sqrt{{29}}{+}{145}{}{{x}}^{\frac{{9}}{{4}}{+}\frac{\sqrt{{29}}}{{4}}}{}\sqrt{{29}}{}{\mathrm{_C3}}{-}{841}{}{{x}}^{\frac{{9}}{{4}}{-}\frac{\sqrt{{29}}}{{4}}}{}{\mathrm{_C2}}{-}{841}{}{{x}}^{\frac{{9}}{{4}}{+}\frac{\sqrt{{29}}}{{4}}}{}{\mathrm{_C3}}{+}{1682}{}{\mathrm{_C1}}{}{x}}}{{29}}$ (32) References

 Cheb-Terrab, E.S. "A Computational Approach for the Exact Solving of Systems of Partial Differential Equations." Submitted to Computer Physics Communications, 2001.
 Cheb-Terrab, E.S.; Duarte, L.G.S.; and da Mota, L.A.C.P. Untitled Article. Computer Physics Communications. Vol. 101. (1997): 254.

 See Also