compute the analytic structure of the Feynman Diagrams of a model - Maple Programming Help

Physics[FeynmanDiagrams] - compute the analytic structure of the Feynman Diagrams of a model

 Calling Sequence FeynmanDiagrams(InteractionLagrangian, vertices = ..., numberoflegs = ..., numberofloops = ..., externallegs = ..., excludepropagators = ..., crossedpropagators = ..., includetadpoles = ..., fields = ...)

Parameters

 InteractionLagrangian - the interaction terms of a Lagrangian depending on quantum fields vertices = ... - (optional) the same as points = ..., list of points at which the Lagrangian is evaluated; these are the vertices of the corresponding Feynman diagrams; default value is 1 vertex numberoflegs = ... - (optional) the number of external legs of the Feynman diagrams, these legs are represented in the output as _NP(...) normal ordered products; default value is all possible cases numberofloops = ... - (optional) integer or set of integers; the number of loops of the Feynman diagrams: each line joining two vertices of the loop is a propagator, represented in the output as a list of two fields externallegs = ... - (optional) the same as normalproducts = ..., the right-hand side is a function _NP(...), or a set of them, where each _NP(...) contains fields or field names as arguments, which are the normal ordered products of unpaired fields expected in the output; to these unpaired fields are associated the external legs of the related Feynman diagrams excludepropagators = ... - (optional) a list of two fields representing a propagator, or a set of these lists, indicating that terms involving these propagators are to be excluded from the output; the right-hand side can also be one of the keywords free or cross crossedpropagators = ... - (optional) it can be true or false (default) to indicate that crossed propagators (related to crossed terms in the quadratic part of the Lagrangian) are not zero and so must be taken into account includetadpoles = ... - (optional) it can be the false (default) or true to include or discard terms containing tadpoles, that is, lines that start and end in the same vertex. fields = ... - (optional) either a function or its name, or a set or list of them; indicates the fields of the InteractionLagrangian;

Description

 • A scattering matrix $S$ relates the initial and final states of an interacting system. In an N-dimensional spacetime with coordinates $X$, S can be written as:

$S=T\left({ⅇ}^{I\left(\int L\left(X\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}ⅆX\right)}\right)$

 where $I$ is the imaginary unit, $L$ is the interaction Lagrangian, written in terms of quantum fields depending on the spacetime coordinates $X$. The $T$ symbol means time-ordered. For the terminology used in this page, see chapter IV of Bogoliubov, N.N., and Shirkov, D.V. Quantum Fields. Benjamin Cummings, 1982. This exponential can be expanded as a sum of terms.

$S=1+{S}_{1}+{S}_{2}+{S}_{3}+\mathrm{...}$

 Each ${S}_{n}$ contains integrals of time-ordered products of the interaction Lagrangians evaluated at different points (vertices of the Feynman Diagram). For example, the second order term is of the form:

${S}_{2}=\int \int T\left(L\left(X\right),L\left(Y\right)\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}ⅆX\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}ⅆY$

 where $X$ and $Y$ represent different points in spacetime.
 • Using Wick's theorems, the FeynmanDiagrams command computes the expanded form of these time-ordered products of interaction Lagrangians in the integrands of each ${S}_{n}$.
 • The expansion of each ${S}_{n}$consists of a sum of terms, each of which is a product of certain pairings of the operator field functions entering $L$ with the normal product of the remaining unpaired operators of free fields. The pairings between fields are the propagators, the Green functions of the associated free fields.
 • To each of the terms of the expansion of ${S}_{n}$ corresponds a Feynman diagram with $n$ vertices (the number of interaction Lagrangians in ${S}_{n}$). Within the diagram, each of the pairings of fields has a corresponding internal line, and each field entering the normal products of the unpaired field operators has a corresponding external leg. The output of the FeynmanDiagrams command is thus a sum of terms that has a one-to-one correspondence to the sequence of Feynman diagrams for the given interaction Lagrangian.
 NOTE: the current implementation of FeynmanDiagrams can expand up to ${S}_{3}$ (products of up to three interaction Lagrangians), and therefore can produce the analytic representation of Feynman diagrams with no more than three vertices.

The algebraic structure of the output

 • For each ${S}_{n}$, the algebraic structure of the output of FeynmanDiagrams is thus of the form:

$\sum _{j=1}^{k}\mathrm{sf}\left(j\right){\mathrm{_GF}}_{n}\left(j\right)$

 where $\mathrm{sf}\left(j\right)$ are the symmetry factors, and ${\mathrm{_GF}}_{n}\left(j\right)$ (each one corresponds to a Feynman diagram) are functions of one or two arguments of the form:

${\mathrm{_GF}}_{n}\left(\mathrm{_NP}\left({f}_{i},{f}_{j},\mathrm{...}\right)\right)$

 or,

${\mathrm{_GF}}_{n}\left(\mathrm{_NP}\left({f}_{p},{f}_{q},\mathrm{...}\right),\left[\left[{f}_{r},{f}_{s}\right],\left[{f}_{t},{f}_{u}\right],\mathrm{...}\right]\right)$

 where $n$ is the number of interaction Lagrangians from which this ${\mathrm{_GF}}_{n}$ function is derived, and $p,q,r,s,t,u$ identify fields entering the interaction Lagrangian. The first case corresponds to the tree-level terms (so no propagators) appearing in ${S}_{n}$, and where the argument of ${\mathrm{_GF}}_{n}$ is a function of name _NP, representing the normal product of the (unpaired) fields ${f}_{i},{f}_{j},\dots$; each of which represents an external leg of the corresponding Feynman diagram. In the second case, the second argument of ${\mathrm{_GF}}_{n}$ is a list of lists where each internal list $\left[{f}_{k},{f}_{l}\right]$ represents a pairing of two fields (a propagator) and so corresponds to a connected line in the Feynman diagram. For the external legs and connected lines, both represented by fields applied at a point, the application point $X$ identifies the vertex where the line joins the Feynman diagram.
 • Mathematical notation: When the Physics package is loaded in the Standard Graphical User Interface, the _NP function is displayed using textbook notation; for example, $\mathrm{_NP}\left(\mathrm{\phi }\left(X\right),\mathrm{\phi }\left(Y\right)\right)$ is displayed as $:{\mathrm{\phi }}\left(X\right){\mathrm{\phi }}\left(Y\right):$, and $\mathrm{_GF}\left(\mathrm{_NP}\left(\mathrm{\phi }\left(X\right),\mathrm{\phi }\left(Y\right)\right),\left[\left[\mathrm{\phi }\left(X\right),\mathrm{\phi }\left(Y\right)\right]\right]\right)$ is displayed as the product of the time-ordered normal product _NP with the list representing the propagator. In addition, by entering Physics[Setup](mathematicalnotation = true), or by using the Options dialog (go to Tools -> Options, select the Display tab, and set the Typesetting level to Extended), you can see anticommutative and noncommutative variables displayed in different colors and more.
 • Given an interaction Lagrangian, by default FeynmanDiagrams will consider a field of the problem any function of spacetime variables or function name that has been set to represent a quantum operator by the Setup command. You can override that behavior with the optional argument fields = ..., where the right-hand side is a function, the name of a function field, or a set or list of them.
 • To represent spinor fields, use anticommutative functions. For that purpose, you can set an anticommutative prefix, or simply load the advanced setup of Physics; both of these are done by using the Setup command. To represent the Dirac-conjugate of a spinor field, you can either use conjugate or Dagger applied to the anticommutative function representing the spinor field.
 • The summation convention for spacetime, gauge, or spinor repeated indices in products entering the interaction Lagrangian is automatically used by FeynmanDiagrams, so repeated indices of the respective kinds are automatically generated when expanding the time-order products of interaction Lagrangians.
 • When matrix multiplication enters the interaction Lagrangian, the expression must be entered with the matrix indices explicitly defined. For example, for an interaction Lagrangian in a spinor electrodynamics theory involving Dirac matrices as in $\stackrel{&conjugate0;}{{Q}}{{\mathrm{\gamma }}}_{\mathrm{\mu }}{Q}{{A}}_{}^{\mathrm{\mu }}$, where $Q$ and $\stackrel{&conjugate0;}{Q}$ represent a spinor field and its conjugate, use conjugate(Q[j](X)) * Dgamma[mu][j,k] * Q[k](X) * A[mu](X).

Options

 • The optional argument numberoflegs = ..., where the right-hand side is an integer between 2 and 9 or a set of them, is used to filter the output of FeynmanDiagrams to include only as many unpaired fields in the normal products (the _NP(...) appearing as first argument of the returned $\mathrm{_GF}$ functions). Recall that these unpaired fields represent external legs in the corresponding Feynman diagrams. The current implementation computes with up to 9 external legs.
 • The optional argument externallegs = ..., where the right-hand side is an _NP function with fields (or field names) as arguments, or a list of such _NP functions, is used to filter the output of FeynmanDiagrams to return only the terms entering ${S}_{n}$ having exactly those external legs; that is, having exactly the indicated normal products. In this implementation, the number of external legs cannot be greater than 9, and that is why at most 9 fields can be indicated in the arguments of _NP functions on the right-hand side of this option. Instead of externallegs you can also use as a synonym normalproducts. This option overrides the numberoflegs option.
 • The optional argument numberofloops = ..., where the right-hand side is an integer between 0 and 3 or is a set of them, is used to filter the output of FeynmanDiagrams to only include terms with as many couples of paired fields (propagators, represented by lists in the second argument of the returned $\mathrm{_GF}$ functions). The current implementation computes with up to three loops, and the tree-level graphs correspond to numberofloops = 0.
 • The optional argument excludepropagators = ..., where the right-hand side is either a list of two fields representing a propagator, or a set or list of these lists, is used to filter out from the output of FeynmanDiagrams all those terms that involve $\mathrm{_GF}$ functions containing these propagators.
 Note: FeynmanDiagrams does not compute terms involving propagators of two equal anticommutative fields taken at different points (vertices). Thus, for example, if $Q$ is defined as an anticommutative field, then the output will not contain terms with a propagator $\left[Q\left(X\right),Q\left(Y\right)\right]$.
 • When using the field, externallegs, or excludepropagators options, the fields entering the right-hand sides can be referenced by just their names, or also with their functionality. This can be used, for example, to filter out the propagator $\left[f\left(X\right),g\left(Y\right)\right]$ only, and not all propagators of the form $\left[f,g\right]$, which would include as well $\left[f\left(X\right),g\left(X\right)\right],\left[f\left(Y\right),g\left(Y\right)\right]$, and $\left[f\left(Y\right),g\left(X\right)\right]$.
 • The optional argument includetadpoles = ..., where the right-hand side is the word false (default value) or true, is used to indicate whether terms involving tadpoles (diagrams where a line starts and ends in the same vertex) are to be included in the output.

Examples

In the Maple Standard GUI, to have the output of this help page use textbook notation, open it as a worksheet (see icon in the toolbar) and execute the input lines below after setting Physics[Setup](mathematicalnotation = true);

Load the package and set three coordinate systems to work in.

 > $\mathrm{with}\left(\mathrm{Physics}\right):$
 > $\mathrm{Setup}\left(\mathrm{mathematicalnotation}=\mathrm{true}\right)$
 $\left[{\mathrm{mathematicalnotation}}{=}{\mathrm{true}}\right]$ (1)
 > $\mathrm{Coordinates}\left(X,Y,Z\right)$
 ${}\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){,}Y=\left(\mathrm{y1}{,}\mathrm{y2}{,}\mathrm{y3}{,}\mathrm{y4}\right){,}Z=\left(\mathrm{z1}{,}\mathrm{z2}{,}\mathrm{z3}{,}\mathrm{z4}\right)\right\}$
 $\left\{{X}{,}{Y}{,}{Z}\right\}$ (2)
 > $L≔\mathrm{λ}{\mathrm{φ}\left(X\right)}^{4}+\mathrm{σ}{\mathrm{η}\left(X\right)}^{3}$
 ${L}{≔}{\mathrm{\lambda }}{}{{\mathrm{\phi }}{}\left({X}\right)}^{{4}}{+}{\mathrm{\sigma }}{}{{\mathrm{\eta }}{}\left({X}\right)}^{{3}}$ (3)

The expressions entering ${S}_{1}$ (only one vertex and so one evaluation point), representing the connected Feynman graphs for this interaction Lagrangian and discarding terms with tadpoles, is:

 > $\mathrm{FeynmanDiagrams}\left(L\right)$
 ${\mathrm{\lambda }}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right)\right)\right){+}{\mathrm{\sigma }}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({X}\right)\right)\right)$ (4)

 > $\mathrm{FeynmanDiagrams}\left(L,\mathrm{includetadpoles}\right)$
 ${6}{}{\mathrm{\lambda }}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right)\right){,}\left[\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right)\right]\right]\right){+}{\mathrm{\lambda }}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right)\right)\right){+}{\mathrm{\sigma }}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({X}\right)\right)\right)$ (5)

You can filter these result to obtain only the tree-level terms (see the Options subsection of the Description).

 > $\mathrm{FeynmanDiagrams}\left(L,\mathrm{numberofloops}=0,\mathrm{includetadpoles}\right)$
 ${\mathrm{\lambda }}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right)\right)\right){+}{\mathrm{\sigma }}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({X}\right)\right)\right)$ (6)

After using FeynmanDiagrams once, the fields $\mathrm{\phi }$ and $\mathrm{\eta }$ get automatically set as quantum operators, so you do not need to set them as such again. Alternatively, you can always set them as quantumoperators (before or after calling FeynmanDiagrams) using the Setup command.

 > $\mathrm{Setup}\left(\mathrm{quantumop}=\left\{\mathrm{φ},\mathrm{η}\right\}\right)$
 $\mathrm{* Partial match of \text{'}}\mathrm{quantumop}\mathrm{\text{'} against keyword \text{'}}\mathrm{quantumoperators}\text{'}$
 $\mathrm{_______________________________________________________}$
 $\left[{\mathrm{quantumoperators}}{=}\left\{{\mathrm{\eta }}{,}{\mathrm{\phi }}\right\}\right]$ (7)

The structure of ${S}_{2}$ (that is, the expanded form of the time-ordered product of interaction Lagrangians entering the integrand of the second term in the expansion of the scattering matrix) is:

 > $\mathrm{FeynmanDiagrams}\left(L,\mathrm{vertices}=\left[\left[X\right],\left[Y\right]\right]\right)$
 ${16}{}{{\mathrm{\lambda }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right){,}{\mathrm{φ}}{}\left({Y}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]\right]\right){+}{96}{}{{\mathrm{\lambda }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]\right]\right){+}{72}{}{{\mathrm{\lambda }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]\right]\right){+}{18}{}{{\mathrm{\sigma }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({Y}\right)\right]{,}\left[{\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({Y}\right)\right]\right]\right){+}{9}{}{{\mathrm{\sigma }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({Y}\right){,}{\mathrm{η}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({Y}\right)\right]\right]\right)$ (8)

In the result above, the tree-level terms involving propagators are associated with connected, one-particle-reducible Feynman graphs, and can be obtained by specifying $\mathrm{numberofloops}=0$.

 > $\mathrm{FeynmanDiagrams}\left(L,\mathrm{vertices}=\left[\left[X\right],\left[Y\right]\right],\mathrm{numberofloops}=0\right)$
 ${16}{}{{\mathrm{\lambda }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right){,}{\mathrm{φ}}{}\left({Y}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]\right]\right){+}{9}{}{{\mathrm{\sigma }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({Y}\right){,}{\mathrm{η}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({Y}\right)\right]\right]\right)$ (9)

NOTE: the current implementation of FeynmanDiagrams can expand products of up to three interaction Lagrangians, so a maximum of three spacetime points are allowed, and therefore produces the analytic representation of Feynman diagrams with no more than three vertices.

Compute only the terms corresponding to Feynman diagrams with two external legs.

 > $\mathrm{FeynmanDiagrams}\left(L,\mathrm{vertices}=\left[\left[X\right],\left[Y\right]\right],\mathrm{numberoflegs}=2\right)$
 ${96}{}{{\mathrm{\lambda }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]\right]\right){+}{18}{}{{\mathrm{\sigma }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({Y}\right)\right]{,}\left[{\mathrm{η}}{}\left({X}\right){,}{\mathrm{η}}{}\left({Y}\right)\right]\right]\right)$ (10)

Compute only the terms corresponding to Feynman diagrams with two external legs corresponding to the field phi, regardless of the vertex to which they are attached (it could be X or Y).

 > $\mathrm{FeynmanDiagrams}\left(L,\mathrm{vertices}=\left[\left[X\right],\left[Y\right]\right],\mathrm{normalproducts}=\mathrm{_NP}\left(\mathrm{φ},\mathrm{φ}\right)\right)$
 ${96}{}{{\mathrm{\lambda }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]\right]\right)$ (11)

The same computation but including tadpoles

 > $\mathrm{FeynmanDiagrams}\left(L,\mathrm{vertices}=\left[\left[X\right],\left[Y\right]\right],\mathrm{normalproducts}=\mathrm{_NP}\left(\mathrm{φ},\mathrm{φ}\right),\mathrm{includetadpoles}\right)$
 ${96}{}{{\mathrm{\lambda }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]\right]\right){+}{72}{}{{\mathrm{\lambda }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right)\right){,}\left[\left[{\mathrm{φ}}{}\left({Y}\right){,}{\mathrm{φ}}{}\left({X}\right)\right]{,}\left[{\mathrm{φ}}{}\left({Y}\right){,}{\mathrm{φ}}{}\left({X}\right)\right]{,}\left[{\mathrm{φ}}{}\left({Y}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]\right]\right){+}{72}{}{{\mathrm{\lambda }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({Y}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({X}\right)\right]\right]\right)$ (12)

Compute only the terms with two external legs corresponding to the normal products $\mathrm{\eta }\left(X\right),\mathrm{\eta }\left(Y\right)$.

 > $\mathrm{FeynmanDiagrams}\left(L,\mathrm{vertices}=\left[\left[X\right],\left[Y\right]\right],\mathrm{normalproducts}=\mathrm{_NP}\left(\mathrm{φ}\left(X\right),\mathrm{φ}\left(Y\right)\right)\right)$
 ${96}{}{{\mathrm{\lambda }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right){,}\left[\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]{,}\left[{\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right]\right]\right)$ (13)

Compute the terms leading to Feynman graphs with two loops.

 > $\mathrm{FeynmanDiagrams}\left(L,\mathrm{vertices}=\left[\left[X\right],\left[Y\right]\right],\mathrm{numberofloops}=2\right)$
 ${96}{}{{\mathrm{\lambda }}}^{{2}}{}{\mathrm{_GF}}{}\left({\mathrm{_NP}}{}\left({\mathrm{φ}}{}\left({X}\right){,}{\mathrm{φ}}{}\left({Y}\right)\right)\right)$