Physics[Gtaylor] - Taylor series expansion of expressions involving anticommutative variables
Calling Sequence
Gtaylor(f, x, N)
Parameters
f
-
algebraic expression, or relation between them, or a set or list of them
x
variable, can be a name (expansion point is assumed equal to zero), or an equation x = a where x is a name or and a the expansion point as an algebraic expression, or a list of them
N
optional, default to all, can be an integer, or a range of integers (n..m), or any of the keywords leading, trailing, all; indicates whether to compute all the coefficients or some or only one
Description
The Gtaylor command computes a truncated series expansion of f, with respect to the variable x, about the point a, up to order N, where f and x can involve anticommutative variables. Gtaylor is a generalization of taylor, that works with commutative and anticommutative variables (also called Grassmannian variables) in equal footing.
The truncated series around z=a is computed according to the standard formula
∑k=1N−1⁡z−akk!⁢ⅆkfⅆzkz=a|ⅆkfⅆzkz=a
The first argument, f, can also be a relation between algebraic expressions, or a set or list of them, in which case Gtaylor maps itself over the elements of the relation, set or list. For example, if f is an equation, then Gtaylor(p, x) returns the equation obtained by computing Gtaylor(lhs(f), x) = Gtaylor(rhs(f), x), where lhs(f) and rhs(f) respectively represent the left and right hand sides of f.
The second argument, x, can be a name, in which case the expansion point is assumed to be equal to zero, or an equation z = a where z is a name and a the expansion point as an algebraic expression. Also,x can be a list of expansion variables or equations, in which case the series is computed recursively: starting with computing the series with respect to the first variable in x, then computing the series of this result with respect to the second variable in x and so on.
The third argument, N, is optional, and indicates the "truncation order" of the series expansion, that is, the expansion will be of degree N-1 at most.
Unlike series and taylor, Gtaylor return just the polynomial truncated to order N-1, with no O(..) trailing term.
Note that the result computed with Gtaylor does not preserve the parity in that, for instance, the expansion of an arbitrary commutative function of anticommutative variables - say F⁡x,θ with θ anticommutative - is a truncated polynomial that contains both commutative and anticommutative terms. An exact expansion, similar to the one performed by Gtaylor, but that does preserve the parity of the object is obtained using the ToFieldComponents command.
Generally speaking, the computation of a series expansion with respect to an anticommutative variable has two terms, the coefficients of orders zero and one. When the expression being expanded is already a polynomial, to compute these coefficients you can also use the Coefficients command.
Examples
with⁡Physics:
Setup⁡mathematicalnotation=true
mathematicalnotation=true
Set first theta as an identifier to work with type/anticommutative variables (see Setup)
Setup⁡anticommutativepre=θ
* Partial match of 'anticommutativepre' against keyword 'anticommutativeprefix'
_______________________________________________________
anticommutativeprefix=θ
a⁢θ1⁢θ2+b
The taylor series with respect to θ1 of a polynomial in θ1 of degree 1 is the polynomial itself;
Gtaylor⁡,θ1
The coefficients of θ1 entering this series can be computed with Coefficients
Coefficients⁡,θ1
b,a⁢θ2
The series expansion of a mathematical function
exp⁡x⁢θ
ⅇx⁢θ
Gtaylor⁡,θ
x⁢θ+1
The expansion of an arbitrary function and a comparison with the exact expansion performed with ToFieldComponents
F⁡x,y,θ1,θ2
F⁡x,y,0,θ2+D3⁡F⁡x,y,0,θ2⁢θ1
ToFieldComponents⁡
_F1⁡x,y−θ1⁢_Q1⁡x,y−θ2⁢_Q2⁡x,y+_F2⁡x,y⁢θ1⁢θ2
Note that the expansion performed with Gtaylor does not preserve the parity while the one performed with ToFieldComponents does:
GrassmannParity⁡
0
undefined
Taking (10) as an exact expansion of (9), compare now the Gtaylor expansion for different orders of these two equivalent expressions
Gtaylor⁡,θ1,0
Gtaylor⁡,θ1,1
F⁡x,y,0,θ2
_F1⁡x,y−θ2⁢_Q2⁡x,y
Gtaylor⁡,θ1,2
Computing the Coefficients helps comparing more precisely
Coefficients⁡=,θ1,0
F⁡x,y,0,θ2=_F1⁡x,y−θ2⁢_Q2⁡x,y
Coefficients⁡=,θ1,1
D3⁡F⁡x,y,0,θ2=−_Q1⁡x,y+_F2⁡x,y⁢θ2
Recall however that in (21), the left-hand-side has parity zero (commutative algebraic expression) while the right-hand-side has parity 1 (anticommutative algebraic expression):
0=1
To obtain a full multivariable expansion you can pass the (multi) variables in a list. This gives the multivariable expansion of (8) with respect to θ1,θ2:
Gtaylor⁡,θ1,θ2
F⁡x,y,0,0+D3⁡F⁡x,y,0,0⁢θ1+D4⁡F⁡x,y,0,0⁢θ2+D3,4⁡F⁡x,y,0,0⁢θ1⁢θ2
See Also
anticommutative, Coefficients, commutative, GrassmannParity, Physics, Physics conventions, Physics examples, Physics Updates, Tensors - a complete guide, Mini-Course Computer Algebra for Physicists, relation, series, Setup, taylor, ToFieldComponents
Compatibility
The Physics[Gtaylor] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
The Physics[Gtaylor] command was updated in Maple 2019.
Download Help Document