From action to observables: a reproducible Mathematica workflow for Einstein-Gauss-Bonnet inflation
Year: 2026
Type: preprint
Abstract: This note is a tutorial, not a research article. It documents a complete and tested Wolfram Language (Mathematica) workflow for single-field inflation with a scalar field coupled to the Gauss-Bonnet invariant. Starting from the action, the workflow (i) computes the curvature invariants of a flat FLRW metric with a lapse function, (ii) derives the three background equations as Euler-Lagrange equations of the minisuperspace Lagrangian and checks them against the forms used in the literature, (iii) evaluates the slow-roll spectral index n_s and tensor-to-scalar ratio r for an arbitrary potential V(phi) and coupling xi(phi), and (iv) integrates the full background equations numerically to test the slow-roll approximation and to confirm that inflation ends. All code is given in three short, self-contained listings. As a worked example we use the alpha-attractor E-model potential with an exponential Gauss-Bonnet coupling, for which the slow-roll quantities take closed forms. For alpha = 1 and N = 60 the slow-roll and numerical values of n_s agree to better than 5e-4 and those of r to within 4 percent. No new physical result is claimed; the aim is to give students and researchers a verified starting point that can be adapted to other models.
Author: Agung, Afiq
Institution: Universitas Sulawesi Barat
Language: English
Subfield: Astronomy and Astrophysics
Field: Physics and Astronomy
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7233602888
Cites:
Cited by:
Related to:
