In this example we use the package IntroToSymmetry.m to work out the point group of the 3-D compressible inviscid equations for isentropic MHD flow,

Ut+U*Ux+V*Uy+W*Uz+(1/rho)*Px+(1/rho)*H1*H1x+(1/rho)*H2*H2x+(1/rho)*H3*H3x-(1/rho)*H1*H1x-(1/rho)*H2*H1y-(1/rho)*H3*H1z=0,

Vt+U*Vx+V*Vy+W*Vz+(1/rho)*Py+(1/rho)*H1*H1y+(1/rho)*H2*H2y+(1/rho)*H3*H3y-(1/rho)*H1*H2x-(1/rho)*H2*H2y-(1/rho)*H3*H2z=0,

Wt+U*Wx+V*Wy+W*Wz+(1/rho)*Pz(1/rho)*H1*H1z+(1/rho)*H2*H2z+(1/rho)*H3*H3z-(1/rho)*H1*H3x-(1/rho)*H2*H3y-(1/rho)*H3*H3z=0,

H1t+U*H1x+V*H1y+W*H1z+H1*Ux+H1*Vy+H1*Wz-H1*Ux-H2*Uy-H3*Uz=0,

H2t+U*H2x+V*H2y+W*H2z+H2*Ux+H2*Vy+H2*Wz-H1*Vx-H2*Vy-H3*Vz=0,

H3t+U*H3x+V*H3y+W*H3z+H3*Ux+H3*Vy+H3*Wz-H1*Wx-H2*Wy-H3*Wz=0,

H1x+H2y+H3z=0,

Pt+U*Px+V*Py+W*Pz+(5/3)*P*(Ux+Vy+Wz)=0,

(rho)t+U*(rho)x+V*(rho)y+W*(rho)z+rho(Ux+Vy+Wz)=0.

The following command turns off spurious spelling error messages..

Off[General::spell]

Clear all symbols in the current context.

ClearAll[Evaluate[Context[]<>"*"]]

First read in the package which is located in User Home Folder/Library/Mathematica/Applications/SymmetryAnalysis.

Needs["SymmetryAnalysis`IntroToSymmetry`"]

Enter the list of independent variables.

independentvariables={"x","y","z","t"};

Enter the list of dependent variables.

dependentvariables={"u","v","w","p","rho","h1","h2","h3"};

Enter the list of function or constant names that must be preserved when the equations are expressed in terms of generic variables..

frozennames={};

Enter the maximum derivative order of the input equation(s).

porder=1;

The maximum derivative order that the infinitesimals are assumed to depend on is specified by the input parameter r. This parameter is only nonzero when the user is looking for Lie contact groups or Lie-Backlund groups. For the usual case where one is searching for point groups set r=0.

rorder=0;

When searching for Lie-Backlund groups (r=1 or greater) one can, without loss of generality, leave the independent variables untransformed. The corresponding infinitesimals (the xse's) are set to zero by setting xseon=0. If one is searching for point groups then set xseon=1. The choice xseon=1 is also an option when looking for Lie-Backlund groups and this can be useful when looking for contact symmetries.

xseon=1;

When searching for Lie-Backlund groups it is necessary to differentiate the input equations with respect to all the independent variables to produce derivatives of order p+r. These higher order differential consequences are appended to the set of rules applied to the invariance condition. This process is carried out automatically when internalrules=1. For point groups the equation or equation system is the only rule or set of rules needed and one sets internalrules=0.

internalrules=0;

Construct the array of rules to be applied to the invariance condition.

rulesarray=
{"D[u[x,y,z,t],t]->-
u[x,y,z,t]*D[u[x,y,z,t],x]-
v[x,y,z,t]*D[u[x,y,z,t],y]-
w[x,y,z,t]*D[u[x,y,z,t],z]-
(1/rho[x,y,z,t])*D[p[x,y,z,t],x]-
(1/rho[x,y,z,t])*h1[x,y,z,t]*D[h1[x,y,z,t],x]-
(1/rho[x,y,z,t])*h2[x,y,z,t]*D[h2[x,y,z,t],x]-
(1/rho[x,y,z,t])*h3[x,y,z,t]*D[h3[x,y,z,t],x]+
(1/rho[x,y,z,t])*h1[x,y,z,t]*D[h1[x,y,z,t],x]+
(1/rho[x,y,z,t])*h2[x,y,z,t]*D[h1[x,y,z,t],y]+
(1/rho[x,y,z,t])*h3[x,y,z,t]*D[h1[x,y,z,t],z]",

"D[v[x,y,z,t],t]->-
u[x,y,z,t]*D[v[x,y,z,t],x]-
v[x,y,z,t]*D[v[x,y,z,t],y]-
w[x,y,z,t]*D[v[x,y,z,t],z]-
(1/rho[x,y,z,t])*D[p[x,y,z,t],y]-
(1/rho[x,y,z,t])*h1[x,y,z,t]*D[h1[x,y,z,t],y]-
(1/rho[x,y,z,t])*h2[x,y,z,t]*D[h2[x,y,z,t],y]-
(1/rho[x,y,z,t])*h3[x,y,z,t]*D[h3[x,y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y,z,t],x]+
(1/rho[x,y,z,t])*h1[x,y,z,t]*D[h1[x,y,z,t],x]+
(1/rho[x,y,z,t])*h2[x,y,z,t]*D[h2[x,y,z,t],x]+
(1/rho[x,y,z,t])*h3[x,y,z,t]*D[h3[x,y,z,t],x]-
(1/rho[x,y,z,t])*h1[x,y,z,t]*D[h1[x,y,z,t],x]-
(1/rho[x,y,z,t])*h2[x,y,z,t]*D[h1[x,y,z,t],y]-
(1/rho[x,y,z,t])*h3[x,y,z,t]*D[h1[x,y,z,t],z]";

Enter the y-momentum equation 
Vt+U*Vx+V*Vy+W*Vz+(1/rho)*Py+(1/rho)*H1*H1y+(1/rho)*H2*H2y+(1/rho)*H3*H3y-(1/rho)*H1*H2x-(1/rho)*H2*H2y-(1/rho)*H3*H2z=0
as a string.

inputequation2=
"D[v[x,y,z,t],t]+
u[x,y,z,t]*D[v[x,y,z,t],x]+
v[x,y,z,t]*D[v[x,y,z,t],y]+
w[x,y,z,t]*D[v[x,y,z,t],z]+
(1/rho[x,y,z,t])*D[p[x,y,z,t],y]+
(1/rho[x,y,z,t])*h1[x,y,z,t]*D[h1[x,y,z,t],y]+
(1/rho[x,y,z,t])*h2[x,y,z,t]*D[h2[x,y,z,t],y]+
(1/rho[x,y,z,t])*h3[x,y,z,t]*D[h3[x,y,z,t],y]-
(1/rho[x,y,z,t])*h1[x,y,z,t]*D[h2[x,y,z,t],x]-
(1/rho[x,y,z,t])*h2[x,y,z,t]*D[h2[x,y,z,t],y]-
(1/rho[x,y,z,t])*h3[x,y,z,t]*D[h2[x,y,z,t],z]";

Enter the z-momentum equation 
Wt+U*Wx+V*Wy+W*Wz+(1/rho)*Pz(1/rho)*H1*H1z+(1/rho)*H2*H2z+(1/rho)*H3*H3z-(1/rho)*H1*H3x-(1/rho)*H2*H3y-(1/rho)*H3*H3z=0
as a string.

inputequation3=
"D[w[x,y,z,t],t]+
u[x,y,z,t]*D[w[x,y,z,t],x]+
v[x,y,z,t]*D[w[x,y,z,t],y]+
w[x,y,z,t]*D[w[x,y,z,t],z]+
(1/rho[x,y,z,t])*D[p[x,y,z,t],z]+
(1/rho[x,y,z,t])*h1[x,y,z,t]*D[h1[x,y,z,t],z]+
(1/rho[x,y,z,t])*h2[x,y,z,t]*D[h2[x,y,z,t],z]+
(1/rho[x,y,z,t])*h3[x,y,z,t]*D[h3[x,y,z,t],z]-
(1/rho[x,y,z,t])*h1[x,y,z,t]*D[h3[x,y,z,t],x]-
(1/rho[x,y,z,t])*h2[x,y,z,t]*D[h3[x,y,z,t],y]-
(1/rho[x,y,z,t])*h3[x,y,z,t]*D[h3[x,y,z,t],z]";

Enter the x-convection equation for the magnetic field
H1t+U*H1x+V*H1y+W*H1z+H1*Ux+H1*Vy+H1*Wz-H1*Ux-H2*Uy-H3*Uz=0
as a string.

inputequation4=
"D[h1[x,y,z,t],t]+
u[x,y,z,t]*D[h1[x,y,z,t],x]+
v[x,y,z,t]*D[h1[x,y,z,t],y]+
w[x,y,z,t]*D[h1[x,y,z,t],z]+
h1[x,y,z,t]*D[u[x,y,z,t],x]+
h1[x,y,z,t]*D[v[x,y,z,t],y]+
h1[x,y,z,t]*D[w[x,y,z,t],z]-
h1[x,y,z,t]*D[u[x,y,z,t],x]-
h2[x,y,z,t]*D[u[x,y,z,t],y]-
h3[x,y,z,t]*D[u[x,y,z,t],z]";

Enter the y-convection equation for the magnetic field
H2t+U*H2x+V*H2y+W*H2z+H2*Ux+H2*Vy+H2*Wz- H1*Vx-H2*Vy-H3*Vz=0
as a string.

inputequation5=
"D[h2[x,y,z,t],t]+
u[x,y,z,t]*D[h2[x,y,z,t],x]+
v[x,y,z,t]*D[h2[x,y,z,t],y]+
w[x,y,z,t]*D[h2[x,y,z,t],z]+
h2[x,y,z,t]*D[u[x,y,z,t],x]+
h2[x,y,z,t]*D[v[x,y,z,t],y]+
h2[x,y,z,t]*D[w[x,y,z,t],z]-
h1[x,y,z,t]*D[v[x,y,z,t],x]-
h2[x,y,z,t]*D[v[x,y,z,t],y]-
h3[x,y,z,t]*D[v[x,y,z,t],z]";

Enter the z-convection equation for the magnetic field
H3t+U*H3x+V*H3y+W*H3z+H3*Ux+H3*Vy+H3*Wz- H1*Wx-H2*Wy-H3*Wz=0
as a string.

inputequation6=
"D[h3[x,y,z,t],t]+
u[x,y,z,t]*D[h3[x,y,z,t],x]+
v[x,y,z,t]*D[h3[x,y,z,t],y]+
w[x,y,z,t]*D[h3[x,y,z,t],z]+
h3[x,y,z,t]*D[u[x,y,z,t],x]+
h3[x,y,z,t]*D[v[x,y,z,t],y]+
h3[x,y,z,t]*D[w[x,y,z,t],z]-
h1[x,y,z,t]*D[w[x,y,z,t],x]-
h2[x,y,z,t]*D[w[x,y,z,t],y]-
h3[x,y,z,t]*D[w[x,y,z,t],z]";

Enter the divergence condition for the magnetic field
H1x+H2y+H3z=0
as a string.

inputequation7=
"D[h1[x,y,z,t],x]+
D[h2[x,y,z,t],y]+D[h3[x,y,z,t],z]";

Enter the pressure equation (actually the energy equation)
Pt+U*Px+V*Py+W*Pz+(5/3)*P*(Ux+Vy+Wz)=0
as a string.

inputequation8=
"D[p[x,y,z,t],t]+
u[x,y,z,t]*D[p[x,y,z,t],x]+
v[x,y,z,t]*D[p[x,y,z,t],y]+
w[x,y,z,t]*D[p[x,y,z,t],z]+
(5/3)*p[x,y,z,t]*D[u[x,y,z,t],x]+
(5/3)*p[x,y,z,t]*D[v[x,y,z,t],y]+
(5/3)*p[x,y,z,t]*D[w[x,y,z,t],z]";

Enter the continuity equation 
(rho)t+U*(rho)x+V*(rho)y+W*(rho)z+rho(Ux+Vy+Wz)=0
as a string.

inputequation9=
"D[rho[x,y,z,t],t]+
u[x,y,z,t]*D[rho[x,y,z,t],x]+
v[x,y,z,t]*D[rho[x,y,z,t],y]+
w[x,y,z,t]*D[rho[x,y,z,t],z]+
rho[x,y,z,t]*D[u[x,y,z,t],x]+
rho[x,y,z,t]*D[v[x,y,z,t],y]+
rho[x,y,z,t]*D[w[x,y,z,t],z]";

Now work out the determining equations of the Lie point group which leaves equation 1 invariant. The Mathematica function Timing outputs the time required for the FindDeterminingEquations function  to execute.

Timing[FindDeterminingEquations[
independentvariables,dependentvariables,frozennames,porder,rorder,xseon,
inputequation1,rulesarray,internalrules]]

The determiningequations of equation 1.

zdeterminingequations1=zdeterminingequations;

Now work out the determining equations of the Lie point group which leaves equation 2 invariant.

Timing[FindDeterminingEquations[
independentvariables,dependentvariables,frozennames,porder,rorder,xseon,
inputequation2,rulesarray,internalrules]]

The determiningequations of equation 2.

zdeterminingequations2=zdeterminingequations;

Now work out the determining equations of the Lie point group which leaves equation 3 invariant.

Timing[FindDeterminingEquations[
independentvariables,dependentvariables,frozennames,porder,rorder,xseon,
inputequation3,rulesarray,internalrules]]

The determiningequations of equation 3.

zdeterminingequations3=zdeterminingequations;

Now work out the determining equations of the Lie point group which leaves equation 4 invariant.

Timing[FindDeterminingEquations[
independentvariables,dependentvariables,frozennames,porder,rorder,xseon,inputequation4,rulesarray,internalrules]]

The determiningequations of equation 4.

zdeterminingequations4=zdeterminingequations;

Now work out the determining equations of the Lie point group which leaves equation 5 invariant.

Timing[FindDeterminingEquations[
independentvariables,dependentvariables,frozennames,porder,rorder,xseon,
inputequation5,rulesarray,internalrules]]

The determiningequations of equation 5.

zdeterminingequations5=zdeterminingequations;

Now work out the determining equations of the Lie point group which leaves equation 6 invariant.

Timing[FindDeterminingEquations[
independentvariables,dependentvariables,frozennames,porder,rorder,xseon,
inputequation6,rulesarray,internalrules]]

The determiningequations of equation 6.

zdeterminingequations6=zdeterminingequations;

Now work out the determining equations of the Lie point group which leaves equation 7 invariant.

Timing[FindDeterminingEquations[
independentvariables,dependentvariables,frozennames,porder,rorder,xseon,
inputequation7,rulesarray,internalrules]]

The determiningequations of equation 7.

zdeterminingequations7=zdeterminingequations;

Now work out the determining equations of the Lie point group which leaves equation 8 invariant.

Timing[FindDeterminingEquations[
independentvariables,dependentvariables,frozennames,porder,rorder,xseon,
inputequation8,rulesarray,internalrules]]

The determiningequations of equation 8.

zdeterminingequations8=zdeterminingequations;

Now work out the determining equations of the Lie point group which leaves equation 9 invariant.

Timing[FindDeterminingEquations[
independentvariables,dependentvariables,frozennames,porder,rorder,xseon,
inputequation9,rulesarray,internalrules]]

The determiningequations of equation 9.

zdeterminingequations9=zdeterminingequations;

Collect the determining equations together.

zdeterminingequations10=
Join[zdeterminingequations1,
zdeterminingequations2,zdeterminingequations3,
zdeterminingequations4,zdeterminingequations5,
zdeterminingequations6,zdeterminingequations7,
zdeterminingequations8,zdeterminingequations9];

How many are there?

Length[zdeterminingequations10]

Here is the correspondence between z-variables and conventional variables.

ztableofrules

Now solve the determining equations in terms of multivariable polynomials. The Mathematica function Solve uses Gaussian elimination to solve a 
large number of linear equations for the polynomial coefficients. The time roughly follows

time/timeref=((number of equations)/(number of equationsref))^n

where the exponent is between 2.4 and 2.7. The Mathematica function Timing outputs the time required for the solvedeterminingequations function to execute.

Timing[SolveDeterminingEquations[
independentvariables,dependentvariables,rorder,xseon,zdeterminingequations10,polyorder=2]]

Here are the infinitesimal transformation functions for the independent variables.

xsefunctions

and for the dependent variables.

etafunctions

Note that p is the pressure and cant be used for the equation order.

infinitesimalgroupsxy=infinitesimalgroups/.
{z1->x,z2->y,z3->z,z4->t,z5->u,z6->v,z7->w,
z8->p,z9->rho, z10->h1,z11->h2,z12->h3};

Check the groups. xse's are on the left, eta's are on the right.

Column[infinitesimalgroupsxy]

Check the infinitesimals in the determining equations.

Simplify[ToExpression[zdeterminingequations10]]