>
|
|
>
|
|
| (1) |
First, set two systems of Coordinates, and . Each one has four coordinates.
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
Define the symbol as an object having tensorial properties.
>
|
|
| (5) |
Consider now the tensor field, here represented by the indexed function of .
>
|
|
| (6) |
The functional derivative of this function with respect to is given by:
>
|
|
| (7) |
The result above is expressed in terms of a four-Dimensional Dirac delta function with the metric g_. If instead of the above you "functionally differentiate" with respect to , the index nu is repeated, and so summed from 1 to the spacetime dimension. By default, and in this help page, the Dimension is , meaning that you are working in 3 + 1 Minkowski (pseudo-Euclidean) spacetime with signature -,-,-,+ (to change this default, see Setup), so you obtain the following:
>
|
|
| (8) |
>
|
|
| (9) |
It is sometimes convenient to represent the functional derivative instead of actually computing it. For that purpose, you can either use 'delay evaluation quotes,' or use the inert form of Fundiff, %Fundiff. Note that the delay evaluation quotes can be evaluated by simply reexecuting the output, but you must use the value command to evaluate the inert form.
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
| (15) |
Fundiff knows about the spacetime differentiation operator d_[mu] and the d'Alembertian operation dAlembertian(A[mu,nu](X)). To use either of these differentiation operators, you must either specify the differentiation variables, or set a coordinate system to be the default differentiation variables (this is the usual method when computing with paper and pencil) by using the Setup command.
>
|
|
| (16) |
>
|
|
| (17) |
>
|
|
| (18) |
>
|
|
| (19) |
>
|
|
| (20) |
In the following example, the output of Fundiff is expressed as the derivative of a four-dimensional Dirac delta function.
>
|
|
| (21) |
>
|
|
| (22) |
For example, integrate (in four dimensions) the above from -infinity to infinity (see Intc).
>
|
|
| (23) |
This integral can be computed by using the value command.
>
|
|
| (24) |
The derivand passed to Fundiff can be any algebraic expression, including integrals, specifically functionals. Consider, for example, the Action (functional of the physical system) for a one-dimensional oscillator.
>
|
|
| (25) |
The equations of motion for this problem can be derived from this functional by using a variational principle; that is, obtained by computing the functional derivative of this Action with respect to .
>
|
|
| (26) |
As an example of the use of Fundiff in a field model, consider the Lagrangian function for the lambda*Phi^4 model in 3+1 spacetime dimensions. For best readability, use the facility for compact display of the differential equation packages.
>
|
|
| (27) |
>
|
|
| (28) |
The Action for this model is given by:
>
|
|
| (29) |
The field equations satisfied by Phi are given by:
>
|
|
| (30) |
Note that the display above is expressed in terms of , which are not the default differentiation variables, and so the symbol appears explicitly in the display. If you replace by the default differentiation variables (see Setup), then the display is free of redundancies.
>
|
|
| (31) |
To express the dAlembertian in diff notation, use convert.
>
|
|
| (32) |
Note also that the actual Maple mathematical expression behind this default compact display is the one expected, depending on (see lprint).
>
|
|
-Physics:-dAlembertian(Phi(X), [X])-Phi(X)*(m^2-lambda*Phi(X)^2)
| |
>
|
|
| (33) |
>
|
|
| (34) |
Maxwell equations can also be derived from a variational principle, by taking the functional derivative of the corresponding Action. For that purpose, define the Action for the problem in terms of the 4-vector . Use the redo option of the Define command to erase and write over the previous definition for .
>
|
|
| (35) |
The functional derivative of with respect to gives:
>
|
|
| (36) |
>
|
|
| (37) |
Introduce now the electromagnetic field tensor .
>
|
|
| (38) |
>
|
|
| (39) |
So the action in empty space is given by:
>
|
|
| (40) |
The "equations of motion" (Maxwell equations) are output below: use delay evaluation quotes to display the equations before evaluating the expression.
>
|
|
| (41) |
>
|
|
| (42) |
In order to obtain Maxwell equations, a simplification of the contracted indices is necessary.
>
|
|
| (43) |
>
|
|