Skip to main content
UNDER REVIEW
Optional sections
Reading width
Color theme

Galaxies as Ecosystems

Complete lesson

Concept Throughline

By the end of this reading, you will be able to:

Concept Throughline

A galaxy is not a container of stars. A galaxy is an ecosystem. Gas falls in, cools, forms stars, gets heated, stirred, enriched, and sometimes expelled. Stars are not just inhabitants of galaxies; they reshape the future of the galaxy that made them.

This is the first reading in the final module of ASTR 201. We are zooming out from individual stars to the environments that make stars possible. The same course method still applies: observe → model → infer. We observe light at many wavelengths. We model which physical component produces that light. Then we infer what the galaxy is doing now and what it has been doing over cosmic time.

Observable

Light at many wavelengths

A galaxy’s color and structure, and above all its brightness in each waveband — 21-cm radio, infrared, optical, X-ray. Each band acts as a physical filter, isolating one component of the system.

Model

A galaxy is a self-regulating baryon cycle

Gas falls in, cools into dense clouds, and forms stars; the stars heat, stir, and enrich the surrounding gas through feedback; some gas is driven out, some cools and returns to form the next generation. The ecosystem is this cycle of ordinary matter — not a fixed container of stars.

Inference

What the galaxy is doing, and what it has done

From the light we infer the galaxy’s present state — actively forming stars, disturbed by an interaction, or running low on fuel — and the history recorded in its baryon cycle over cosmic time.

This is the gentlest rung of a climb that runs through the whole module. Here you can still see the source: the light comes straight from the gas and stars you are modeling. In the next reading you will weigh mass that gives off no light at all. By the finale you will read a past you can never observe directly. The move never changes — measure a proxy, infer what you cannot see — but each lecture reaches further past the visible.

The Observable Is Diversity

Part 1: The Observable Is Diversity

The first thing to notice is that galaxies are not all the same. Some are blue and clumpy. Some are smooth and yellow-red. Some have grand spiral arms; others look disturbed, stretched, or shredded by interaction. Some are bright in the infrared because dust is being heated by young stars. Some have faint outer halos that are easier to miss than their spectacular centers.

That diversity is not decoration. It is evidence.

Deep-field image from Rubin Observatory showing many galaxies of different apparent sizes, colors, and morphologies against a dark background.
Figure 1What to notice: a deep Rubin/LSST field is a galaxy census, not just a pretty picture. The field contains many galaxy colors, shapes, sizes, and distances at once.NSF-DOE Vera C. Rubin Observatory

When you look at a deep field, you are seeing many galaxies at once, but not all at the same distance or the same age. Some are nearby enough that their structure is clear. Others are so far away that their light has been traveling for billions of years. In one image, astronomy gives us a mixed archive: different shapes, different colors, different distances, and different moments in cosmic history.

This is where our course throughline matters. If we stopped at observation, we would have only a catalog: spiral, elliptical, irregular, peculiar. Useful, but not enough. To turn the catalog into astrophysics, we need a model for why these differences exist.

Infographic showing several galaxy types, including spiral, barred spiral, elliptical, lenticular, irregular, and peculiar galaxies, each represented by a galaxy image.
Figure 2What to notice: galaxy diversity is visible before we explain it. Spirals, ellipticals, irregulars, and peculiar systems point to different gas contents, star-formation histories, and dynamical histories.

Galaxy morphology is a first pass at organizing the evidence. Spiral galaxies often contain cold gas, dust, and ongoing star formation. Elliptical galaxies are often smoother, redder, and poorer in cold gas. Irregular and peculiar galaxies often carry the signatures of disturbance: gravitational interactions, recent star formation, or disrupted structure. These are tendencies, not laws of nature. The point is not to memorize a taxonomy. The point is to ask: What history would produce this appearance?

Galaxy morphology

The observed shape or structure of a galaxy, such as spiral, elliptical, irregular, or peculiar. Morphology is a classification of appearance — a starting point for inferring history, not an explanation by itself.

Quick check

Two galaxies have the same total brightness. One is smooth and yellow-red; the other is blue, patchy, and dusty. Which one is more likely to be forming stars right now, and what observable clues support that inference?

The Milky Way as a Close-Up Laboratory

Part 2: The Milky Way Is Our Close-Up Laboratory

The Milky Way is the galaxy we know best and the one we know most awkwardly. We live inside its disk, which means we cannot simply step outside and take a clean photograph of the whole structure. Instead, we infer the Milky Way’s anatomy from star counts, gas maps, dust extinction, stellar motions, and multiwavelength observations.

Infographic of the Milky Way showing a spiral disk with labeled major components, including spiral arms, central bulge and bar, stellar halo, dark matter halo, and the Sun's location.
Figure 3What to notice: the Milky Way has multiple components — disk, bulge, bar, spiral arms, halo, dark matter halo, and central black hole. We infer this structure by combining star counts, gas maps, dust corrections, and stellar motions from inside the disk.

This figure is useful, but it can also mislead if we read it as a static object. A labeled galaxy diagram can make the Milky Way look like a machine with fixed parts: disk, bulge, bar, spiral arms, halo. A better reading is that these are components of an evolving system. The disk contains gas and young stars. The bulge and halo contain older stellar populations. The spiral arms are not rigid material arms like the blades of a fan; they are patterns where gas and stars respond to gravity. The dark matter halo does not shine, but it matters because it contributes most of the galaxy’s gravitating mass.

Dark matter

Matter that does not emit, absorb, or scatter light but contributes most of a galaxy’s gravitating mass. We do not see it directly; we infer it from its gravitational effect on visible matter and motions — the central thread of the next reading, which is its canonical home.

We should also be honest about the challenge: the Milky Way is partly hidden from us by its own dust. Optical light cannot pass cleanly through the Galactic plane. That means visible-light maps alone are incomplete. To map a galaxy from the inside, we need wavelengths that reveal components optical light misses.

Quick check

Why is the Milky Way both our best-studied galaxy and one of the hardest galaxies to map cleanly?

Multiwavelength Ingredients

Part 3: Different Wavelengths Reveal Different Ingredients

In Module 1, we learned that light is information. Here that idea becomes practical. A galaxy looks different at different wavelengths because different physical components emit, absorb, or scatter different kinds of light.

Radio observations are especially powerful for mapping cold neutral hydrogen. Hydrogen is the most abundant element in the universe, and neutral hydrogen emits a famous radio line at a wavelength of 21 cm. That line passes through much of the dust that blocks visible light, letting astronomers map gas across the Milky Way.

Neutral hydrogen

Hydrogen atoms that are not ionized. Neutral hydrogen can be mapped using the 21-cm radio line, which passes through dust that blocks visible light — making it one of the most powerful tracers of cold gas in galaxies.

All-sky map of neutral hydrogen emission from the Milky Way in a Mollweide projection, with bright emission concentrated along the Galactic plane and fainter structures extending above and below it.
Figure 4What to notice: radio maps of neutral hydrogen trace gas across the whole Milky Way, including regions hidden by dust in visible light. A wavelength can be a mapmaking tool.HI4PI Collaboration

The key inference is not simply “radio sees gas.” The deeper point is that a wavelength can be a physical filter. If you choose the right wavelength, you can isolate a component of the galaxy that would otherwise be hidden. Radio gives one kind of map. Infrared gives another. X-rays give another. Each map is partial; together they become a model.

The Galactic center is the perfect example. In visible light, dust makes the center of the Milky Way difficult to see. In infrared, stars behind the dust become visible. In X-rays and other high-energy bands, hot gas and energetic processes stand out. The same region becomes several different physical stories, depending on the wavelength we use to ask the question.

Dust

Tiny solid grains in interstellar space that absorb, scatter, and re-emit light. Dust is especially important for interpreting optical and infrared observations: it hides starlight in the visible but glows in the infrared when heated.

Multiwavelength view of the Milky Way Galactic center showing the same region in several bands, with different colors and structures revealing stars, dust, gas, and energetic emission.
Figure 5What to notice: the Galactic center changes with wavelength because each band selects different physics: cool dust and stars in infrared, hot plasma in X-rays, and gas structures at longer wavelengths.ESO/NASA/JPL-Caltech/ESA

Nearby galaxies let us connect the inside-out Milky Way view to a more external perspective. Andromeda is close enough that we can study structure across its disk, but far enough that we can see the disk as a galaxy. It is a bridge between “our galaxy from the inside” and “galaxies as a population.”

Wide panoramic Hubble view of the Andromeda galaxy showing a long, bright, flattened stellar disk with dust lanes and dense star fields.
Figure 6What to notice: Andromeda is close enough for Hubble to resolve structure across its disk. Nearby galaxies let us connect individual stars and gas structures to galaxy-scale history.NASA/ESA/Hubble

Quick check

Why is a radio map of neutral hydrogen not just a lower-resolution version of an optical image?

Star Formation and Support

Part 4: Star Formation Is a Local Failure of Support

Stars form when part of a gas cloud becomes dense and cold enough for gravity to win locally. That sentence is short, but it contains the central physics. Gas has pressure, turbulence, magnetic fields, and radiation acting against collapse. Gravity has to overcome those forms of support. Cooling helps because cooler gas has lower thermal pressure. Higher density helps because gravity becomes more effective when more mass is packed into a smaller region.

One compact way to express gravity’s clock is the dynamical timescale:

Here is an order-of-magnitude collapse or rearrangement time, is the gravitational constant, and is the average density of the region. The equation says that denser regions have shorter gravitational response times. It is not a promise that every dense clump will form stars, because pressure, turbulence, magnetic fields, radiation, and feedback can slow or stop collapse. It is a way to read the competition: density helps gravity act faster.

Worked Example 1The Collapse Clock of a Molecular Cloud

Problem

A molecular cloud has mean number density of hydrogen, so . Estimate its dynamical timescale , and compare it to the few-million-year life of a massive star. Use , , .

StepBuild the mean density in CGS

.

StepEvaluate the timescale

, so .

Dimensional check

, so has units of seconds — a time, as a timescale must.

Result

— comparable to the lifetime of a massive star. Gravitational collapse and the feedback those stars deliver act on the same clock, which is why star formation regulates itself instead of running away.

This is why star formation is not spread smoothly through a galaxy. It is concentrated in clouds, filaments, shells, and clumps. The interstellar medium — the gas and dust between stars — is structured. It is not an empty background.

Interstellar medium

The gas and dust between stars inside a galaxy. Far from an empty background, it is structured into clouds, filaments, shells, and clumps — and it is the reservoir out of which new stars form.

JWST image of the Cat's Paw Nebula showing glowing gas, dust clouds, cavities, and many embedded stars in a complex star-forming region.
Figure 7What to notice: star formation happens inside structured gas and dust, not in empty space. Infrared light reveals embedded young stars and heated dust that visible light can miss.NASA/ESA/CSA/STScI

Infrared images of star-forming regions are especially revealing because young stars are often born inside dusty clouds. Visible light from those stars may be blocked or scattered, while infrared light can escape more easily. When we see embedded infrared sources, glowing dust, and sculpted cavities, we are seeing the early stages of the baryon cycle: gas collecting, collapsing, forming stars, and being reshaped by the stars it just made.

The word baryon means ordinary matter made mostly of protons and neutrons: gas, stars, planets, dust, and people. In galaxy evolution, the baryon cycle is the movement of ordinary matter through different phases. Gas can cool into molecular clouds — the cold gas whose low thermal pressure lets gravity win. Molecular clouds can form stars. Stars return mass through winds and supernovae. Some gas is heated, some is expelled, some cools again, and some gets locked into long-lived stars and remnants.

Baryon

Ordinary matter made mostly of protons and neutrons — gas, stars, planets, dust, and people — as distinct from dark matter or radiation. When astronomers say “normal matter,” they mean baryons.

Cold gas

Gas with low enough thermal pressure that gravity can more easily compress it into dense star-forming regions. Cooling lowers the pressure that resists collapse, so cold gas is the raw material for star formation.

Baryon cycle

The movement of ordinary matter through gas, stars, dust, remnants, outflows, inflows, and later generations of star formation. It is the population-level bookkeeping that connects stellar evolution to galaxy evolution.

That cycle connects stellar evolution (Modules 3–4) directly to galaxy evolution. A massive star does not only live and die for itself. Its radiation, winds, and supernova drive metal enrichment of the surrounding gas with heavy elements and inject energy into the galaxy. A galaxy’s future star formation depends partly on what its previous stars have done.

Metal enrichment

The process by which stars and stellar explosions add elements heavier than helium (“metals,” in astronomers’ usage) to the surrounding gas. Each generation of stars enriches the gas the next generation forms from.

Quick check

A galaxy forms a generation of massive stars. Within a few million years they explode as supernovae. Name two distinct ways this changes the gas that the next generation of stars will form from.

Multiple choice

Which change would make gravity act faster in the dynamical-timescale estimate?

Quick check

If a cloud is bright in infrared but partly hidden in visible light, what does that suggest about the material around young stars?

Interactions Rearrange the Fuel

Part 5: Interactions Rearrange the Fuel

Galaxies are not isolated islands. They tug on one another through gravity. When galaxies pass near each other or merge, their stars mostly pass by without colliding because stars are tiny compared with the spaces between them. Gas behaves differently. Gas can shock, compress, cool, and flow. That makes interactions especially important for star formation.

Image of the Whirlpool Galaxy with a prominent spiral disk interacting with a smaller companion galaxy at the end of one spiral arm.
Figure 8What to notice: interactions can reshape spiral structure and trigger star formation. The Whirlpool Galaxy's companion is not just nearby; it is part of the system's dynamical story.NASA/ESA/Hubble

The Whirlpool Galaxy shows this idea in a form you can see. Its spiral pattern is not just a pretty shape. The companion galaxy is part of the gravitational story. Tidal interactions can pull out streams, reshape disks, and compress gas in ways that alter where stars form.

Tidal interaction

Gravitational distortion caused by a close passage or merger between galaxies. Tides stretch and pull material into streams and tails, reshape disks, and compress gas — rearranging where future star formation can happen.

The Antennae galaxies show a more dramatic case. Two galaxies in the middle of a merger contain enormous reservoirs of gas and dust. Where gas is compressed, star formation can surge. This is why mergers can produce starbursts: short-lived episodes where the star-formation rate is much higher than usual.

Starburst

A short-lived episode in which a galaxy forms stars much faster than its long-term average rate, often triggered when an interaction or merger compresses large reservoirs of gas.

Composite image of the Antennae galaxies, a pair of interacting galaxies with long tidal features, bright star-forming regions, and colored emission tracing gas and dust.
Figure 9What to notice: galaxy interactions rearrange gas. The Antennae galaxies show how mergers can compress molecular gas and trigger intense star formation.ALMA/ESO/NAOJ/NRAO/NASA/ESA/Hubble

Multiwavelength observations matter here because stars and gas do not always occupy the same places. A visible-light image emphasizes stars and dust lanes. Millimeter and radio observations can trace molecular gas — the dense cold material out of which stars form. If we want to know where future stars may form, we need to find the fuel, not just the stars that already exist.

Grid of small galaxy images showing molecular gas distributions in multiple merging systems, with colored contours or emission patches highlighting where cold gas is concentrated.
Figure 10What to notice: molecular gas is the raw material for star formation. Comparing many merging galaxies shows where gravity has concentrated that fuel.

Quick check

Why can a galaxy interaction trigger star formation even though individual stars almost never collide?

Feedback and Self-Regulation

Part 6: Feedback Makes the Ecosystem Self-Regulating

Star formation does not simply continue forever once it begins. Young massive stars produce ultraviolet radiation, powerful winds, and supernova explosions. These processes inject energy and momentum into surrounding gas. Sometimes that feedback compresses nearby gas and helps trigger more star formation. Sometimes it heats or expels gas and suppresses star formation. Both outcomes can happen in the same galaxy.

Feedback

Energy and momentum returned to surrounding gas by stars, supernovae, stellar winds, radiation, or accreting black holes. Feedback can both trigger star formation (by compressing gas) and suppress it (by heating or expelling gas) — which is what makes a galaxy self-regulating.

M82 is a vivid example of feedback on galaxy scales. Its central starburst drives material out of the disk in a wind. That outflow carries gas, dust, and heavy elements away from the regions where they formed.

Image of the starburst galaxy M82 seen edge-on, with a bright central region and reddish outflowing material extending perpendicular to the disk.
Figure 11What to notice: feedback can drive material out of a galaxy. In M82, intense star formation powers an outflow that carries gas, metals, and energy away from the disk.NASA/ESA/Hubble

This is the moment where the ecosystem metaphor earns its keep. A forest is not just trees. It includes soil, water, climate, fire, decay, and regrowth. A galaxy is not just stars. It includes gas reservoirs, dust, radiation fields, gravity, shocks, outflows, accretion, and recycling. Feedback is one of the processes that keeps the system from being a one-way collapse of gas into stars.

The classification schemes we use for galaxies are therefore only the first layer of explanation. A tuning fork diagram can help us describe what we see, but a galaxy’s physical story requires us to ask about gas supply, stellar populations, environment, and history.

Hubble tuning fork diagram classifying galaxies into elliptical, lenticular, spiral, barred spiral, and irregular types, illustrated with many galaxy images.
Figure 12What to notice: galaxy morphology is an observational classification, not an explanation by itself. Shapes point us toward histories involving gas content, star formation, rotation, and mergers.

Quick check

Why is feedback not simply “stars stopping star formation”?

The Star-Formation History of the Universe

Part 7: The Universe Has a Star-Formation History

If we zoom out from individual galaxies to the whole observable universe, we find that star formation itself has a history. The universe did not form stars at a constant rate. The global star-formation rate rose, peaked billions of years ago, and then declined toward the present.

Plot or infographic showing the cosmic star-formation rate increasing early in cosmic history, peaking at redshifts of a few, and declining toward the present day.
Figure 13What to notice: the universe did not form stars at a constant rate. Star formation rose to a peak billions of years ago and then declined toward the present.NASA

This trend is one of the cleanest ways to end the first reading. It tells us that galaxies evolve, and they evolve together with the universe around them. Early galaxies had more gas available for rapid star formation. Over time, gas was consumed, heated, expelled, locked into long-lived stars, or rearranged by environment. The cosmic star-formation history is the population-level version of the baryon cycle.

Quick check

If the cosmic star-formation rate was higher in the past than it is today, what does that suggest about the average gas supply and galaxy conditions at earlier cosmic times?

This sets up the next reading. If galaxies are ecosystems, then the next question is: what organizes the ecosystem? The answer is gravity. Gravity collects gas, binds galaxies, drives mergers, shapes clusters, and reveals dark matter through motion. In the next reading, we will use dynamics to weigh what light cannot show.

Summary

Summary

Galaxies are evolving systems, not static collections of stars. We observe them through many wavelength windows because each window reveals a different ingredient: stars, dust, neutral gas, molecular gas, hot plasma, and energetic feedback. By modeling how gas cools, collapses, forms stars, and is reshaped by stellar feedback, we can infer galaxy histories from present-day observations. The same stars we studied in Modules 3–4 now become agents of galaxy evolution.

Glossary

Baryon

Ordinary matter made mostly of protons and neutrons — gas, stars, planets, dust, and people — as distinct from dark matter or radiation. When astronomers say “normal matter,” they mean baryons.

Baryon cycle

The movement of ordinary matter through gas, stars, dust, remnants, outflows, inflows, and later generations of star formation. It is the population-level bookkeeping that connects stellar evolution to galaxy evolution.

Cold gas

Gas with low enough thermal pressure that gravity can more easily compress it into dense star-forming regions. Cooling lowers the pressure that resists collapse, so cold gas is the raw material for star formation.

Dark matter

Matter that does not emit, absorb, or scatter light but contributes most of a galaxy’s gravitating mass. We do not see it directly; we infer it from its gravitational effect on visible matter and motions — the central thread of the next reading, which is its canonical home.

Dust

Tiny solid grains in interstellar space that absorb, scatter, and re-emit light. Dust is especially important for interpreting optical and infrared observations: it hides starlight in the visible but glows in the infrared when heated.

Feedback

Energy and momentum returned to surrounding gas by stars, supernovae, stellar winds, radiation, or accreting black holes. Feedback can both trigger star formation (by compressing gas) and suppress it (by heating or expelling gas) — which is what makes a galaxy self-regulating.

Galaxy morphology

The observed shape or structure of a galaxy, such as spiral, elliptical, irregular, or peculiar. Morphology is a classification of appearance — a starting point for inferring history, not an explanation by itself.

Interstellar medium

The gas and dust between stars inside a galaxy. Far from an empty background, it is structured into clouds, filaments, shells, and clumps — and it is the reservoir out of which new stars form.

Metal enrichment

The process by which stars and stellar explosions add elements heavier than helium (“metals,” in astronomers’ usage) to the surrounding gas. Each generation of stars enriches the gas the next generation forms from.

Neutral hydrogen

Hydrogen atoms that are not ionized. Neutral hydrogen can be mapped using the 21-cm radio line, which passes through dust that blocks visible light — making it one of the most powerful tracers of cold gas in galaxies.

Starburst

A short-lived episode in which a galaxy forms stars much faster than its long-term average rate, often triggered when an interaction or merger compresses large reservoirs of gas.

Tidal interaction

Gravitational distortion caused by a close passage or merger between galaxies. Tides stretch and pull material into streams and tails, reshape disks, and compress gas — rearranging where future star formation can happen.