 computes and solves the Killing equations - Maple Programming Help

Physics[KillingVectors] - computes and solves the Killing equations

 Calling Sequence KillingVectors(V, options = ...)

Parameters

 V - a name to be used for the vector field (rank 1 spacetime tensor) representing the Killing vector integrabilityconditions = ... - optional - can be true (default) or false, to reduce or not the determining PDE output system taking into account its integrability conditions output = ... - optional - the right-hand-side can be equations, solutions (synonym: componentsolutions) or vectorsolutions (default), to return the Killing equations or attempt returning their solutions for each of the Killing vector components, or a vector solution with the Killing vector on the left-hand side and a list with its components on the right-hand side parameters = ... - optional - the right-hand-side can be a set or a list of names or functions, that parameterize the Killing vectors; the system of equations or solutions will be split according to the different cases of these parameters specializeconstants = ... - optional - can be true (default) or false, to specialize or not the integration constants _Cn that appear when solving the Killing differential equations

Description

 • KillingVectors computes and attempts to solve the Killing equations, that is, the PDE system

${▿}_{\mathrm{\nu }}\left({V}_{\mathrm{\alpha }}\right)+{▿}_{\mathrm{\alpha }}\left({V}_{\mathrm{\nu }}\right)={ℒ}_{V}\left({g}_{\mathrm{\alpha },\mathrm{\nu }}\right)=0$

 where $▿$ is the covariant derivative operator D_, and $V$ entering ${V}_{\alpha }$ is the name representing the Killing vectors, provided, with or without a spacetime index, and ${ℒ}_{V}\left({g}_{\mathrm{\alpha },\mathrm{\nu }}\right)$ is the LieDerivative of the spacetime metric with respect to ${V}_{\mathrm{\mu }}$. In a spacetime of dimension $n$ there are at most $\frac{1}{2}n\left(n+1\right)$ independent Killing vectors, where the maximum happens for a Minkowski spacetime. As it is the case of the other commands in Physics, KillingVectors operates in tensorial notation. To perform the same operation using differential forms notation see DifferentialGeometry[Tensor][KillingVectors].
 • When the name $V$ is provided without an index, the equations computed are satisfied by the contravariant components ${V}^{\mathrm{\alpha }}$. To request the equations or solutions for the covariant components $\mathrm{V__alpha}$, pass it with a covariant index, say as in V[alpha]. Note that when the spacetime is non-galilean, while the system may succeed in computing solutions for the covariant components, depending on the metric g_ it may fail in computing solutions for the contravariant ones, or vice-versa.
 • By default, KillingVectors automatically computes the equations and attempts solving them in one step. When successful, KillingVectors returns a list of Killing vectors, obtained after specializing the integration constants that appear when solving the system of differential equations (that you can see using the option output = equations). When no solution is found, KillingVectors returns NULL, the same way the PDE solver pdsolve does.
 • A more compact solution can be obtained by passing the optional argument specializeconstants = false, in which case KillingVectors returns an equation with the Killing vector on the left-hand side and a list with its components, depending on integration constants, on the right-hand side.
 • When passing the optional argument output = solutions, instead of returning a vector equation, the output is a set of solution equations, with each Killing vector component on the left-hand side and the corresponding solution on the right-hand side. This is useful, for instance, for verification purposes: you can test the solutions computed against the output of KillingVectors using the option output = equations by using the pdetest command. -When passing the optional argument output = equations, the Killing equations themselves are returned without attempting solving them. This is useful when KillingVectors fails in finding a solution, or when particular solutions of different forms may be of interest; these solutions can frequently be computed using the symmetry commands of PDEtools like FunctionFieldSolutions and PolynomialSolutions, or mainly InvariantSolutions used together with its various options for particularizing solutions.
 • The PDE system returned by KillingVectors with the option output = equations is by default returned as a list of equations and automatically reduced taking into account its integrability conditions. The order of the equations in the list corresponds to a total degree, obtained with an orderly ranking (see details in casesplit). Simplifying the PDE system taking into account integrability conditions is a frequently desired but in some cases expensive mathematical computation. To avoid it, pass the optional argument integrabilityconditions = false, in which case KillingVectors will return faster, a set of equations, not a list, and with no differential elimination simplifications.
 • When the metric g_ depends on parameters, either symbols or functions of spacetime variables, the Killing vectors computed using KillingVectors are expected to be valid for arbitrary values of these parameters. It is sometimes of interest, however, to investigate the different kinds of solutions that may exist for different particular values of these parameters. To perform such an investigation, use the optional argument parameters = ... where the right-hand-side is a set or a list with the parameters, and the system of equations will be split into cases with respect to these parameters using differential algebra techniques, and the Killing vectors will be expressed as a piecewise function according to the different cases for these parameters. As frequently happens when splitting into cases, the resulting lists of equations may involve inequations as well. Note: passing parameters automatically forces reducing the PDE system using integrability conditions, regardless of the value of the keyword integrabilityconditions.

Examples

 > with(Physics):
 > Setup(mathematicalnotation = true);
 $\left[{\mathrm{mathematicalnotation}}{=}{\mathrm{true}}\right]$ (1)

Set a system of Coordinates

 > Setup(coordinates = X);
 ${}\mathrm{Default differentiation variables for d_, D_ and dAlembertian are:}{}\left\{X=\left(\mathrm{x1}{,}\mathrm{x2}{,}\mathrm{x3}{,}\mathrm{x4}\right)\right\}$
 ${}\mathrm{Systems of spacetime coordinates are:}{}\left\{X=\left(\mathrm{x1}{,}\mathrm{x2}{,}\mathrm{x3}{,}\mathrm{x4}\right)\right\}$
 $\mathrm{_______________________________________________________}$
 $\left[{\mathrm{coordinatesystems}}{=}\left\{{X}\right\}\right]$ (2)

Define a tensor with one index to represent the Killing vector

 > Define(V);
 $\mathrm{Defined objects with tensor properties}$
 $\left\{{V}{,}{{\mathrm{\gamma }}}_{{\mathrm{\mu }}}{,}{{\mathrm{\sigma }}}_{{\mathrm{\mu }}}{,}{{\partial }}_{{\mathrm{\mu }}}{,}{{g}}_{{\mathrm{\mu }}{,}{\mathrm{\nu }}}{,}{{\mathrm{\epsilon }}}_{{\mathrm{\alpha }}{,}{\mathrm{\beta }}{,}{\mathrm{\mu }}{,}{\mathrm{\nu }}}{,}{{X}}_{{\mathrm{\mu }}}\right\}$ (3)

The contravariant components  ${V}^{\mathrm{\mu }}$

 > KillingVectors(V);
 $\left[{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{x2}}{,}{-}{\mathrm{x1}}{,}{0}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{1}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{x3}}{,}{0}{,}{-}{\mathrm{x1}}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{x4}}{,}{0}{,}{0}{,}{\mathrm{x1}}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{1}{,}{0}{,}{0}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{x4}}{,}{0}{,}{\mathrm{x2}}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{\mathrm{x4}}{,}{\mathrm{x3}}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{0}{,}{1}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{x3}}{,}{-}{\mathrm{x2}}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{1}{,}{0}{,}{0}\right]\right]$ (4)

The same result but directly for the covariant components and without specializing the integration constants,

 > KillingVectors(V[mu], specialize = false);
 $\mathrm{* Partial match of \text{'}}\mathrm{specialize}\mathrm{\text{'} against keyword \text{'}}\mathrm{specializeconstants}\text{'}$
 ${{V}}_{{\mathrm{\mu }}}{=}\left[{\mathrm{_C1}}{}{\mathrm{x2}}{+}{\mathrm{_C2}}{}{\mathrm{x3}}{+}{\mathrm{_C3}}{}{\mathrm{x4}}{+}{\mathrm{_C4}}{,}{-}{\mathrm{_C1}}{}{\mathrm{x1}}{+}{\mathrm{_C5}}{}{\mathrm{x3}}{+}{\mathrm{_C6}}{}{\mathrm{x4}}{+}{\mathrm{_C7}}{,}{-}{\mathrm{_C2}}{}{\mathrm{x1}}{-}{\mathrm{_C5}}{}{\mathrm{x2}}{+}{\mathrm{_C8}}{}{\mathrm{x4}}{+}{\mathrm{_C9}}{,}{-}{\mathrm{_C3}}{}{\mathrm{x1}}{-}{\mathrm{_C6}}{}{\mathrm{x2}}{-}{\mathrm{_C8}}{}{\mathrm{x3}}{+}{\mathrm{_C10}}\right]$ (5)

Note that there are 10 integration constants, according to the fact that the dimension of spacetime is $n=4$ and there are at most $\frac{1}{2}n\left(n+1\right)$ independent Killing vectors, as it is the case of a Minkowski spacetime. To understand this result, recall that the Killing vectors generate transformations that leave the metric g_ invariant in form; these are isometries. In this case, the spacetime loaded with Physics by default is galilean

 > g_[];
 ${{\mathrm{g_}}}_{{\mathrm{μ}}{,}{\mathrm{ν}}}{=}\left(\left[\begin{array}{rrrr}-1& 0& 0& 0\\ 0& -1& 0& 0\\ 0& 0& -1& 0\\ 0& 0& 0& 1\end{array}\right]\right)$ (6)

The result (4) generates translations along the four axis and rotations that leave invariant the distance between two points and thus invariant in form the metric.

Consider now a non-galilean spacetime, for instance set the Schwarzschild metric as the current metric (see g_):

 > g_[sc];
 ${}\mathrm{_______________________________________________________}$
 ${}\mathrm{Systems of spacetime coordinates are:}{}\left\{X=\left(r{,}\mathrm{\theta }{,}\mathrm{\phi }{,}t\right)\right\}$
 ${}\mathrm{Default differentiation variables for d_, D_ and dAlembertian are:}{}\left\{X=\left(r{,}\mathrm{\theta }{,}\mathrm{\phi }{,}t\right)\right\}$
 ${}\mathrm{The Schwarzschild metric in coordinates}{}\left[r{,}\mathrm{\theta }{,}\mathrm{\phi }{,}t\right]$
 $\mathrm{Parameters:}\left[m\right]$
 ${}\mathrm{_______________________________________________________}$
 ${{\mathrm{g_}}}_{{\mathrm{μ}}{,}{\mathrm{ν}}}{=}\left(\left[\begin{array}{cccc}\frac{r}{-r+2{}m}& 0& 0& 0\\ 0& -{r}^{2}& 0& 0\\ 0& 0& -{r}^{2}{}{\mathrm{sin}{}\left(\mathrm{θ}\right)}^{2}& 0\\ 0& 0& 0& \frac{r-2{}m}{r}\end{array}\right]\right)$ (7)

Compute the Killing vectors again. For illustration purposes, compute the covariant components and compute first only the equations, with and without simplifying using integrability conditions, then compute everything automatically. First using integrability conditions. To avoid displaying $V\left(X\right)$ repeatedly use the compact notation available of the PDEtools package

 > PDEtools:-declare(V(X));
 ${V}{}\left({X}\right){}{\mathrm{will now be displayed as}}{}{V}$ (8)
 > KillingVectors(V[alpha], output = equations);
 $\left[{\mathrm{diff}}{}\left({{V}}_{{3}}{}\left({X}\right){,}{r}\right){=}\frac{{2}{}{{V}}_{{3}}{}\left({X}\right)}{{r}}{,}{\mathrm{diff}}{}\left({{V}}_{{3}}{}\left({X}\right){,}{\mathrm{θ}}\right){=}\frac{{2}{}{\mathrm{cos}}{}\left({\mathrm{θ}}\right){}{{V}}_{{3}}{}\left({X}\right){-}\left({\mathrm{diff}}{}\left({{V}}_{{2}}{}\left({X}\right){,}{\mathrm{φ}}\right)\right){}{\mathrm{sin}}{}\left({\mathrm{θ}}\right)}{{\mathrm{sin}}{}\left({\mathrm{θ}}\right)}{,}{\mathrm{diff}}{}\left({{V}}_{{3}}{}\left({X}\right){,}{\mathrm{φ}}\right){=}{-}{\mathrm{sin}}{}\left({\mathrm{θ}}\right){}{\mathrm{cos}}{}\left({\mathrm{θ}}\right){}{{V}}_{{2}}{}\left({X}\right){,}{\mathrm{diff}}{}\left({{V}}_{{3}}{}\left({X}\right){,}{t}\right){=}{0}{,}{\mathrm{diff}}{}\left({\mathrm{diff}}{}\left({{V}}_{{2}}{}\left({X}\right){,}{\mathrm{φ}}\right){,}{\mathrm{φ}}\right){=}{-}{{V}}_{{2}}{}\left({X}\right){}\left({{\mathrm{sin}}{}\left({\mathrm{θ}}\right)}^{{2}}{+}{{\mathrm{cos}}{}\left({\mathrm{θ}}\right)}^{{2}}\right){,}{\mathrm{diff}}{}\left({{V}}_{{2}}{}\left({X}\right){,}{r}\right){=}\frac{{2}{}{{V}}_{{2}}{}\left({X}\right)}{{r}}{,}{\mathrm{diff}}{}\left({{V}}_{{2}}{}\left({X}\right){,}{\mathrm{θ}}\right){=}{0}{,}{\mathrm{diff}}{}\left({{V}}_{{2}}{}\left({X}\right){,}{t}\right){=}{0}{,}{\mathrm{diff}}{}\left({{V}}_{{4}}{}\left({X}\right){,}{r}\right){=}{-}\frac{{2}{}{m}{}{{V}}_{{4}}{}\left({X}\right)}{{r}{}\left({-}{r}{+}{2}{}{m}\right)}{,}{\mathrm{diff}}{}\left({{V}}_{{4}}{}\left({X}\right){,}{\mathrm{θ}}\right){=}{0}{,}{\mathrm{diff}}{}\left({{V}}_{{4}}{}\left({X}\right){,}{\mathrm{φ}}\right){=}{0}{,}{\mathrm{diff}}{}\left({{V}}_{{4}}{}\left({X}\right){,}{t}\right){=}{0}{,}{{V}}_{{1}}{}\left({X}\right){=}{0}\right]$ (9)

where derivatives are displayed indexed due to the use of declare. Compare with

 > KillingVectors(V[alpha], output = equations, integrabilityconditions = false);
 $\left\{{2}{}\left({\mathrm{diff}}{}\left({{V}}_{{4}}{}\left({X}\right){,}{t}\right)\right){}{{r}}^{{3}}{+}{4}{}\left({-}\frac{{1}}{{2}}{}{r}{+}{m}\right){}{m}{}{{V}}_{{1}}{}\left({X}\right){=}{0}{,}{2}{}\left({\mathrm{diff}}{}\left({{V}}_{{2}}{}\left({X}\right){,}{\mathrm{θ}}\right)\right){+}\left({-}{4}{}{m}{+}{2}{}{r}\right){}{{V}}_{{1}}{}\left({X}\right){=}{0}{,}{\mathrm{diff}}{}\left({{V}}_{{4}}{}\left({X}\right){,}{\mathrm{φ}}\right){+}{\mathrm{diff}}{}\left({{V}}_{{3}}{}\left({X}\right){,}{t}\right){=}{0}{,}{\mathrm{diff}}{}\left({{V}}_{{4}}{}\left({X}\right){,}{\mathrm{θ}}\right){+}{\mathrm{diff}}{}\left({{V}}_{{2}}{}\left({X}\right){,}{t}\right){=}{0}{,}\left({2}{}{m}{}{r}{-}{{r}}^{{2}}\right){}\left({\mathrm{diff}}{}\left({{V}}_{{1}}{}\left({X}\right){,}{t}\right)\right){+}\left({2}{}{m}{}{r}{-}{{r}}^{{2}}\right){}\left({\mathrm{diff}}{}\left({{V}}_{{4}}{}\left({X}\right){,}{r}\right)\right){+}{2}{}{m}{}{{V}}_{{4}}{}\left({X}\right){=}{0}{,}{-}{2}{}{\mathrm{cos}}{}\left({\mathrm{θ}}\right){}{{V}}_{{3}}{}\left({X}\right){+}\left({\mathrm{diff}}{}\left({{V}}_{{3}}{}\left({X}\right){,}{\mathrm{θ}}\right)\right){}{\mathrm{sin}}{}\left({\mathrm{θ}}\right){+}\left({\mathrm{diff}}{}\left({{V}}_{{2}}{}\left({X}\right){,}{\mathrm{φ}}\right)\right){}{\mathrm{sin}}{}\left({\mathrm{θ}}\right){=}{0}{,}\left({\mathrm{diff}}{}\left({{V}}_{{2}}{}\left({X}\right){,}{r}\right)\right){}{r}{+}\left({\mathrm{diff}}{}\left({{V}}_{{1}}{}\left({X}\right){,}{\mathrm{θ}}\right)\right){}{r}{-}{2}{}{{V}}_{{2}}{}\left({X}\right){=}{0}{,}\left({\mathrm{diff}}{}\left({{V}}_{{3}}{}\left({X}\right){,}{r}\right)\right){}{r}{+}\left({\mathrm{diff}}{}\left({{V}}_{{1}}{}\left({X}\right){,}{\mathrm{φ}}\right)\right){}{r}{-}{2}{}{{V}}_{{3}}{}\left({X}\right){=}{0}{,}{4}{}\left({\mathrm{diff}}{}\left({{V}}_{{1}}{}\left({X}\right){,}{r}\right)\right){}{r}{}{m}{-}{2}{}\left({\mathrm{diff}}{}\left({{V}}_{{1}}{}\left({X}\right){,}{r}\right)\right){}{{r}}^{{2}}{-}{2}{}{m}{}{{V}}_{{1}}{}\left({X}\right){=}{0}{,}{2}{}\left({\mathrm{diff}}{}\left({{V}}_{{3}}{}\left({X}\right){,}{\mathrm{φ}}\right)\right){+}\left(\left({4}{}{m}{-}{2}{}{r}\right){}{{\mathrm{cos}}{}\left({\mathrm{θ}}\right)}^{{2}}{-}{4}{}{m}{+}{2}{}{r}\right){}{{V}}_{{1}}{}\left({X}\right){+}{2}{}{\mathrm{sin}}{}\left({\mathrm{θ}}\right){}{\mathrm{cos}}{}\left({\mathrm{θ}}\right){}{{V}}_{{2}}{}\left({X}\right){=}{0}\right\}$ (10)

The contravariant components of the Killing vectors all in one step

 > KillingVectors(V);
 $\left[{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{0}{,}{1}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){,}\frac{{\mathrm{cos}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{tan}}{}\left({\mathrm{\theta }}\right)}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){,}{-}\frac{{\mathrm{sin}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{tan}}{}\left({\mathrm{\theta }}\right)}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{1}{,}{0}\right]\right]$ (11)

The same solution but with the constants not specialized

 > KillingVectors(V, specializeconstants = false);
 ${{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{_C2}}{}{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){+}{\mathrm{_C3}}{}{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){,}{\mathrm{_C4}}{+}\frac{{\mathrm{_C2}}{}{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){-}{\mathrm{_C3}}{}{\mathrm{sin}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{tan}}{}\left({\mathrm{\theta }}\right)}{,}{\mathrm{_C1}}\right]$ (12)

Taking $m$ as parameter, there is another solution (from the point of view of differential algebra this other solution is a singular solution). These solutions can also be expressed as solution equations with the vector components on the left-hand sides by using the optional argument output = solutions:

 > KillingVectors(V, parameters = {m});
 $\left\{\begin{array}{cc}\left[{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{cos}}{}\left({\mathrm{\theta }}\right){}{t}{,}{-}\frac{{t}{}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right)}{{r}}{,}{0}{,}{\mathrm{cos}}{}\left({\mathrm{\theta }}\right){}{r}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{1}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){}{t}{}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){,}\frac{{t}{}\left({\mathrm{sin}}{}\left({\mathrm{\theta }}{+}{\mathrm{\phi }}\right){+}{\mathrm{sin}}{}\left({-}{\mathrm{\theta }}{+}{\mathrm{\phi }}\right)\right)}{{2}{}{r}}{,}\frac{{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){}{t}}{{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){}{r}}{,}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){}{r}{}{\mathrm{sin}}{}\left({\mathrm{\phi }}\right)\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){}{t}{}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){,}\frac{{t}{}\left({\mathrm{cos}}{}\left({-}{\mathrm{\theta }}{+}{\mathrm{\phi }}\right){+}{\mathrm{cos}}{}\left({\mathrm{\theta }}{+}{\mathrm{\phi }}\right)\right)}{{2}{}{r}}{,}{-}\frac{{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){}{t}}{{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){}{r}}{,}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){}{r}{}{\mathrm{cos}}{}\left({\mathrm{\phi }}\right)\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{cos}}{}\left({\mathrm{\theta }}\right){,}{-}\frac{{\mathrm{sin}}{}\left({\mathrm{\theta }}\right)}{{r}}{,}{0}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){,}\frac{{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){}{\mathrm{cos}}{}\left({\mathrm{\theta }}\right)}{{r}}{,}\frac{{\mathrm{cos}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){}{r}}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){,}\frac{{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){}{\mathrm{cos}}{}\left({\mathrm{\theta }}\right)}{{r}}{,}{-}\frac{{\mathrm{sin}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){}{r}}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{0}{,}{1}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){,}\frac{{\mathrm{cos}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{tan}}{}\left({\mathrm{\theta }}\right)}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){,}{-}\frac{{\mathrm{sin}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{tan}}{}\left({\mathrm{\theta }}\right)}{,}{0}\right]\right]& {m}{=}{0}\\ \left[{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{0}{,}{1}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){,}\frac{{\mathrm{cos}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{tan}}{}\left({\mathrm{\theta }}\right)}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){,}{-}\frac{{\mathrm{sin}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{tan}}{}\left({\mathrm{\theta }}\right)}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{1}{,}{0}\right]\right]& {\mathrm{otherwise}}\end{array}\right\$ (13)

When parameters are indicated together with the specializeconstants option, the result is a sequence of piecewise functions, with each conditional on the parameters expressed as a branch of the piecewise solution

 > KillingVectors(V, parameters = {m}, specializeconstants);
 $\left\{\begin{array}{cc}\left[{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{cos}}{}\left({\mathrm{\theta }}\right){}{t}{,}{-}\frac{{t}{}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right)}{{r}}{,}{0}{,}{\mathrm{cos}}{}\left({\mathrm{\theta }}\right){}{r}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{1}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){}{t}{}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){,}\frac{{t}{}\left({\mathrm{sin}}{}\left({\mathrm{\theta }}{+}{\mathrm{\phi }}\right){+}{\mathrm{sin}}{}\left({-}{\mathrm{\theta }}{+}{\mathrm{\phi }}\right)\right)}{{2}{}{r}}{,}\frac{{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){}{t}}{{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){}{r}}{,}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){}{r}{}{\mathrm{sin}}{}\left({\mathrm{\phi }}\right)\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){}{t}{}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){,}\frac{{t}{}\left({\mathrm{cos}}{}\left({-}{\mathrm{\theta }}{+}{\mathrm{\phi }}\right){+}{\mathrm{cos}}{}\left({\mathrm{\theta }}{+}{\mathrm{\phi }}\right)\right)}{{2}{}{r}}{,}{-}\frac{{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){}{t}}{{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){}{r}}{,}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){}{r}{}{\mathrm{cos}}{}\left({\mathrm{\phi }}\right)\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{cos}}{}\left({\mathrm{\theta }}\right){,}{-}\frac{{\mathrm{sin}}{}\left({\mathrm{\theta }}\right)}{{r}}{,}{0}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){,}\frac{{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){}{\mathrm{cos}}{}\left({\mathrm{\theta }}\right)}{{r}}{,}\frac{{\mathrm{cos}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){}{r}}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){}{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){,}\frac{{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){}{\mathrm{cos}}{}\left({\mathrm{\theta }}\right)}{{r}}{,}{-}\frac{{\mathrm{sin}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{sin}}{}\left({\mathrm{\theta }}\right){}{r}}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{0}{,}{1}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){,}\frac{{\mathrm{cos}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{tan}}{}\left({\mathrm{\theta }}\right)}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){,}{-}\frac{{\mathrm{sin}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{tan}}{}\left({\mathrm{\theta }}\right)}{,}{0}\right]\right]& {m}{=}{0}\\ \left[{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{0}{,}{1}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{sin}}{}\left({\mathrm{\phi }}\right){,}\frac{{\mathrm{cos}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{tan}}{}\left({\mathrm{\theta }}\right)}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{\mathrm{cos}}{}\left({\mathrm{\phi }}\right){,}{-}\frac{{\mathrm{sin}}{}\left({\mathrm{\phi }}\right)}{{\mathrm{tan}}{}\left({\mathrm{\theta }}\right)}{,}{0}\right]{,}{{V}}_{\phantom{{}}\phantom{{\mathrm{\mu }}}}^{\phantom{{}}{\mathrm{\mu }}}{=}\left[{0}{,}{0}{,}{1}{,}{0}\right]\right]& {\mathrm{otherwise}}\end{array}\right\$ (14)
 >

References

 Landau, L.D., and Lifshitz, E.M. The Classical Theory of Fields, Course of Theoretical Physics Volume 2, fourth revised English edition. Elsevier, 1975.
 Weinberg, S. Gravitation and Cosmology: Principles and Applications of The General Theory of Relativity, John Wiley & Sons, Inc, 1972.

Compatibility

 • The Physics[KillingVectors] command was introduced in Maple 17.