HomeArticlesPhysics & Mechanics

The Birth of Cosmic Structures

Galaxies aren't solitary islands in space; they formed from the gravitational collapse of vast clouds of gas and dark matter. Understanding this process is a cornerstone of modern cosmology.

mysimulator teamUpdated June 2026≈ 5 min read▶ Open the simulation

Initial Density Fluctuations

The early universe wasn't uniform. Tiny variations in density existed – regions slightly denser than average. These minuscule differences, amplified by gravity over billions of years, served as the seeds for galaxy formation.

These fluctuations arose from quantum mechanical effects during the inflationary epoch shortly after the Big Bang. The rapid expansion stretched these initial irregularities into large-scale structures.

Density Perturbation (δρ/ρ) ∝ Initial Random Fluctuations

Hierarchical Structure Formation

The prevailing model for galaxy formation is hierarchical structure formation. Smaller structures, like dwarf galaxies and globular clusters, formed first.

These smaller clumps then merged under their own gravity to form larger galaxies, eventually culminating in the massive spiral and elliptical galaxies we observe today.

M ∝ t^(3/2)  (Mass increases with time raised to a power of 3/2)
live demo · related simulation● LIVE

Role of Dark Matter

Dark matter, which makes up approximately 85% of the universe's mass, played a crucial role. Its gravity amplified the initial density fluctuations far more effectively than ordinary (baryonic) matter could.

Dark matter formed a gravitational scaffolding upon which galaxies assembled, acting as the dominant driver of structure formation in the early universe.

Gravitational Potential (Φ) = GM/r  (Potential energy depends on mass and distance)

Galaxy Mergers

Merger events are now recognized as a dominant process in galaxy evolution. Galaxies frequently collide and coalesce, dramatically altering their shapes and fueling star formation.

These mergers strip away gas and dust, triggering intense bursts of new star formation. The resulting structures often exhibit irregular shapes – lenticular or spiral galaxies.

Frequently asked questions

What is dark matter?

Dark matter is a mysterious substance that doesn't interact with light, making it invisible. Its gravity influences the motion of visible matter.

How long did galaxy formation take?

Galaxy formation began shortly after the Big Bang and continues today, although at a slower pace.

Why are some galaxies spiral and others elliptical?

The initial conditions – density fluctuations, merger histories – dictate a galaxy's final shape.

Try it live

Everything above runs in your browser — open SPH Fluid and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open SPH Fluid simulation

What did you find?

Add reproduction steps (optional)