top of page

Visualizing the Effect of Dark Energy on Cosmic Expansion

Olivia Potter
31/10/2026

This project investigates how radiation density, matter density, and dark energy affect the expansion of the universe using the Friedmann equation. We built a Python simulation that visualizes how the scale factor and expansion curves evolve over cosmic time when varying matter, radiation, and dark energy densities. The final simulations showed that the universe was first dominated by radiation, then by matter, and now by dark energy. We verified the consistency of these results across different methods. Building on the results, we extended the project to include dynamical dark energy w(a)=w0+wa(1-a). Instead of assuming dark energy was perfectly constant, we implemented two new parameters: w0 and wa. To connect the model with observations, we constructed a Hubble diagram using Type Ia supernova data from Pantheon+ and SH0ES. The model successfully demonstrates the sequence of radiation-, matter-, and dark energy-dominated eras, illustrating how early expansion slows under matter and accelerates later due to dark energy.

bottom of page