Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    Simplifying Amplitudes without Losing Cancellations

    Two expressions can be exactly equal and return different answers in machine arithmetic. Scattering amplitudes make this problem especially visible: individual graphs can be large, while gauge invariance leaves a much smaller sum. A second problem can arise even earlier, when a momentum representation loses a small component before the amplitude is evaluated.

    This page separates those failures with the charged-scalar Compton amplitude derived in tensor and index algebra. We use m>0m>0, mostly minus, physical on-shell momenta p+k=p′+k′p+k=p'+k', and q=+eq=+e in Dμ=∂μ−ieAμD_\mu=\partial_\mu-ieA_\mu. All displayed numerical amplitudes have e2e^2 divided out.

    Three operations with different purposes

    Canonicalization removes representational redundancy: two legal dummy-index namings or two orderings of commuting factors become one expression. Factorization changes the arrangement of arithmetic and can expose a useful cancellation. Common-subexpression elimination, or CSE, stores repeated subexpressions once and reuses them. None of these operations, by itself, proves that the resulting evaluation is well conditioned.

    For example,

    x2−y2=(x−y)(x+y)x^2-y^2=(x-y)(x+y)

    is exact. The first evaluation subtracts rounded products; the second can avoid that loss. But if the supplied x,yx,y already have errors comparable to their difference, no rearrangement recovers the missing input information. This distinction between cancellation of rounded operands and uncertainty in the inputs is developed in Goldberg, “Cancellation,” including the discussion following Eq. (5).

    For an amplitude rewrite, record the domain first. Momentum conservation, mass shells and photon transversality are assumptions, not universal rewrite rules. A symbolic simplifier that imposes them on an off-shell Green function has computed a different object.

    Remove gauge cancellation before evaluation

    Put a=p⋅ka=p\cdot k, b=p⋅k′b=p\cdot k', and f=ε′∗f=\varepsilon'^*. The complete scalar amplitude is

    Me2=2ε⋅f−[(2p+k)⋅ε][(2p′+k′)⋅f]2a+[(2p′−k)⋅ε][(2p−k′)⋅f]2b.\frac{\mathcal M}{e^2} =2\varepsilon\cdot f -\frac{[(2p+k)\cdot\varepsilon][(2p'+k')\cdot f]}{2a} +\frac{[(2p'-k)\cdot\varepsilon][(2p-k')\cdot f]}{2b}.

    The first term is the seagull. The two Ward identities allow shifts by the corresponding photon momenta. Choose

    εˉ=ε−kp⋅εp⋅k,fˉ=f−k′p⋅fp⋅k′.\bar\varepsilon=\varepsilon-k\frac{p\cdot\varepsilon}{p\cdot k}, \qquad \bar f=f-k'\frac{p\cdot f}{p\cdot k'}.

    They satisfy p⋅εˉ=p⋅fˉ=0p\cdot\bar\varepsilon=p\cdot\bar f=0 and remain transverse to their photon momenta. For future timelike pp and nonzero future null k,k′k,k', both denominators are positive. In the first exchange graph, (2p+k)⋅εˉ=0(2p+k)\cdot\bar\varepsilon=0; in the second, (2p−k′)⋅fˉ=0(2p-k')\cdot\bar f=0. Therefore

    M=2e2εˉ⋅fˉ.\boxed{\mathcal M=2e^2\bar\varepsilon\cdot\bar f.}

    This is equality of the physical contracted amplitude, not equality of off-shell tensors. Its derivation uses the complete graph set and Ward identities; discarding the exchange graphs before choosing these representatives would be wrong.

    In the scalar rest frame, choose the incoming photon along zz and the outgoing one at angle θ\theta in the xzxz plane. The in-plane physical polarizations are (0,1,0,0)(0,1,0,0) and (0,cos⁡θ,0,−sin⁡θ)(0,\cos\theta,0,-\sin\theta), so M/e2=−2cos⁡θ\mathcal M/e^2=-2\cos\theta. Recoil still changes the outgoing energy:

    ω′=ω1+(ω/m)(1−cos⁡θ).\omega'=\frac{\omega}{1+(\omega/m)(1-\cos\theta)}.

    The simple polarization amplitude does not imply recoil-free phase space. The spinor Compton result is different; the scalar calculation here has a two-photon contact vertex.

    Keep small momentum components as inputs

    Define full-sum light-cone components v+=v0+v3v^+=v^0+v^3, v−=v0−v3v^-=v^0-v^3, with no 2\sqrt2:

    v⋅w=12(v+w−+v−w+)−vxwx−vywy.v\cdot w=\frac12(v^+w^-+v^-w^+)-v_xw_x-v_yw_y.

    A boost along +z+z with B=eyB=e^y sends v+→Bv+v^+\to Bv^+ and v−→v−/Bv^-\to v^-/B. For the initial scalar, p+=mBp^+=mB, p−=m/Bp^-=m/B. If instead one stores p0=m(B+B−1)/2p^0=m(B+B^{-1})/2 and p3=m(B−B−1)/2p^3=m(B-B^{-1})/2 and subtracts them later, the small p−p^- may already be inaccurate. Using light-cone formulas after that subtraction cannot undo the loss.

    Our fixed near-collinear family starts with m=1m=1, ω=0.7\omega=0.7, cos⁡θ=3/5\cos\theta=3/5 and sin⁡θ=4/5\sin\theta=4/5. Gauge representatives are

    ε=εphys+1310kω,f=fphys−45k′ω′.\varepsilon=\varepsilon_{\rm phys}+\frac{13}{10}\frac{k}{\omega}, \qquad f=f_{\rm phys}-\frac45\frac{k'}{\omega'}.

    These are real vectors in this example. Boost all momenta and polarizations by the same BB. The incoming photon stays along zz, while

    θlab=2arctan⁡12B.\theta_{\rm lab}=2\arctan\frac{1}{2B}.

    The photons approach collinearity in this frame as BB grows. Their invariant products stay fixed; this is not a physical massless collinear singularity. The exact amplitude remains −6/5-6/5.

    The calculation compares four routes: diagram or projected amplitudes, each using Cartesian or independently retained light-cone components. The following entries are absolute errors against −6/5-6/5:

    BBCartesian diagramsCartesian projectedLight-cone projected
    112.7×10−162.7\times10^{-16}2.7×10−162.7\times10^{-16}2.7×10−162.7\times10^{-16}
    10210^27.7×10−127.7\times10^{-12}2.7×10−132.7\times10^{-13}2.7×10−162.7\times10^{-16}
    10410^44.5×10−84.5\times10^{-8}1.9×10−81.9\times10^{-8}4.9×10−164.9\times10^{-16}
    10610^67.6×10−47.6\times10^{-4}1.1×10−41.1\times10^{-4}1.8×10−161.8\times10^{-16}
    10810^81.21.22.32.34.9×10−164.9\times10^{-16}

    At B=108B=10^8, the angle is approximately 10−810^{-8} radians and the reconstructed Cartesian p−p^- already has about 49%49\% relative error. Even the projected formula then fails. Both light-cone forms remain accurate in this scan because the boost has not forced a subtraction of large nearly equal components. Different arithmetic orders can change the particular inaccurate values; the table records the supplied implementation.

    Isolate cancellation among graphs

    Now fix B=1B=1 and lower ω/m\omega/m, keeping the rest angle and the same gauge representatives. Their components stay finite: k/ωk/\omega and k′/ω′k'/\omega' are direction vectors. The exchange graphs nevertheless grow as 1/ω1/\omega and cancel in the complete amplitude.

    For graph values MjM_j, define the diagnostic

    κsum=∑j∣Mj∣∣∑jMj∣.\kappa_{\rm sum}=\frac{\sum_j|M_j|}{|\sum_jM_j|}.

    It measures sensitivity of this sum to small errors in its terms, not the condition number of the entire physical problem. With binary64 unit roundoff u=2−53u=2^{-53}, a value uκsumu\kappa_{\rm sum} near one warns that accurate individual terms need not give an accurate total.

    ω/m\omega/mκsum\kappa_{\rm sum}Diagram sum error, light-coneProjected error, light-cone
    10−210^{-2}3.5×1023.5\times10^21.1×10−141.1\times10^{-14}2.7×10−162.7\times10^{-16}
    10−510^{-5}3.5×1053.5\times10^57.6×10−117.6\times10^{-11}2.7×10−162.7\times10^{-16}
    10−810^{-8}3.5×1083.5\times10^81.2×10−81.2\times10^{-8}2.7×10−162.7\times10^{-16}
    10−1110^{-11}3.5×10113.5\times10^{11}1.2×10−51.2\times10^{-5}2.7×10−162.7\times10^{-16}
    10−1410^{-14}3.5×10143.5\times10^{14}5.0×10−25.0\times10^{-2}2.7×10−162.7\times10^{-16}

    Here the light-cone input representation is not the problem. The direct sum returns −1.25-1.25 at the last point, while the projected form returns −1.1999999999999997-1.1999999999999997. The algebraic Ward cancellation has removed the large terms before floating-point evaluation.

    Absolute scalar-Compton amplitude errors rise with a large boost when Cartesian components lose precision, and rise at low photon energy when large diagram contributions cancel. The projected amplitude using retained light-cone inputs stays near machine precision in both scans.

    Two distinct sources of error for the fixed target M/e2=−6/5\mathcal M/e^2=-6/5. Left: increasing BB makes the lab photon angle small and degrades Cartesian inputs. Right: decreasing ω/m\omega/m at B=1B=1 exposes cancellation among exchange graphs even with accurate light-cone inputs. Points are the fixed parameter scans in the tables, not random events or a uniform error bound.

    A reference must say what its inputs mean

    The retained calculation evaluates the direct diagrams at 100 and 160 decimal digits from the same exact decimal seed parameters. The refinement changes the result by less than 10−7010^{-70}; the independent rest-frame value is exactly −6/5-6/5.

    It also promotes every actual binary64 component exactly to high precision and evaluates each formula on those rounded inputs. This separates two questions: how accurately did machine arithmetic evaluate its supplied expression, and how close is that supplied problem to the intended on-shell event? Rounded Cartesian data can violate the mass-shell relations; the diagram and projected formulas need not then agree even in high precision. Simply increasing the precision of already rounded inputs does not recreate the original event.

    Reproduce the fixed scans with:

    python3 examples/computational-qft/symbolic-computation/scalar_stability.py
    

    The retained scalar-stability-results.json includes both error definitions and the momentum-component loss. No random sampling or fitted correction is used. These checks do not establish accuracy for arbitrarily small physical amplitudes, unbounded boosts, zero photon energy or massless scalar kinematics. In particular, a relative error divided by a vanishing amplitude is not a useful universal test; retain an absolute scale as well.

    Summary

    Simplification needs a declared kinematic domain and a numerical goal. Ward identities remove gauge-dependent graph cancellation, while appropriate momentum coordinates preserve small input components. CSE can then reduce repeated work, but its correctness and speed require the separate generated-code checks.

    Exercises

    1. Locate the large soft terms

    In the scalar rest frame write c=cos⁡θc=\cos\theta, s=sin⁡θs=\sin\theta and use ε=εphys+Ak/ω\varepsilon=\varepsilon_{\rm phys}+A k/\omega, f=fphys+Bgk′/ω′f=f_{\rm phys}+B_g k'/\omega'. Derive the contact, ss and uu contributions. Show their sum is −2c-2c and obtain the leading soft growth of κsum\kappa_{\rm sum} when ABg≠0AB_g\ne0, c≠0c\ne0.

    Solution

    All expressions below have e2e^2 stripped. Direct dot products give

    Mc=2[−c+(A−Bg)s+ABg(1−c)],Ms=−2mABgω−2A[s+Bg(1−c)],Mu=2mABgω′+2Bgs−2ABg(1−c).\begin{aligned} M_c&=2[-c+(A-B_g)s+AB_g(1-c)],\\ M_s&=-\frac{2mAB_g}{\omega}-2A[s+B_g(1-c)],\\ M_u&=\frac{2mAB_g}{\omega'}+2B_gs-2AB_g(1-c). \end{aligned}

    The ss terms cancel. Recoil gives m(1/ω′−1/ω)=1−cm(1/\omega'-1/\omega)=1-c, so the remaining ABgAB_g terms cancel as well, leaving −2c-2c. The two exchange magnitudes have leading sum 4m∣ABg∣/ω4m|AB_g|/\omega. Consequently

    κsum∼2m∣ABg∣∣c∣ω.\kappa_{\rm sum}\sim\frac{2m|AB_g|}{|c|\omega}.

    For A=1.3A=1.3, Bg=−0.8B_g=-0.8, c=0.6c=0.6, this is (52/15)m/ω(52/15)m/\omega. At ω/m=10−14\omega/m=10^{-14} it is about 3.47×10143.47\times10^{14}. This diagnoses the graph representation; the exact physical amplitude stays finite. When c=0c=0, use an absolute-error criterion because the target amplitude vanishes.

    2. Why a late coordinate conversion cannot help

    For the longitudinal boost derive the stated lab angle and estimate the relative error in p−=p0−p3p^-=p^0-p^3 if each Cartesian component has rounding error of order umBumB. At what boost scale can this become order one?

    Solution

    A null vector satisfies tan⁡(θ/2)=k⊥/k+\tan(\theta/2)=k_\perp/k^+ for this planar positive-angle event. The boost multiplies k′+k'^+ by BB and leaves k⊥′k'_\perp fixed, hence

    tan⁡θlab2=sin⁡θB(1+cos⁡θ)=12B.\tan\frac{\theta_{\rm lab}}2 =\frac{\sin\theta}{B(1+\cos\theta)} =\frac{1}{2B}.

    Meanwhile p−=m/Bp^-=m/B. Subtracting two rounded Cartesian components can expose an absolute input error of order umBumB, or relative error of order uB2uB^2. It can be order one at B∼u−1/2B\sim u^{-1/2}, about 9.5×1079.5\times10^7 for binary64. This is a scale estimate, not a sharp bound on every rounding pattern. Storing p−=m/Bp^-=m/B directly avoids this particular subtraction. Computing it from the already rounded p0,p3p^0,p^3 retains the lost information as an error.

    References

    Scrollable formula. Use Left and Right arrow keys to reveal hidden content.

    Scrollable table. Use Left and Right arrow keys to reveal hidden columns.

    Scrollable figure. Use Left and Right arrow keys to reveal hidden content.