📘 CodingMarble Learn

Variable Stars and Cepheids

A variable star changes its brightness. A Cepheid pulsates: it swells and shrinks in a steady beat of 1 to 100 days. The longer the period P, the brighter the star really is (the period–luminosity law). So by timing the beat we learn the true brightness, compare it with how bright the star looks, and get its distance.

🎬 Step-by-step story

  1. This is a star. For now it is steady. Its light does not change.
  2. A Cepheid star swells and shrinks again and again. Swollen, it is cool and red. Small, it is hot and white-blue.
  3. Its brightness goes up and down with each beat. The wavy line is the light curve. One full wave takes the period, P.
  4. Star B has a longer period than star A, and it is truly brighter. Longer P means more real brightness.
  5. If we know the real brightness, we can find the distance. A star twice as far looks four times dimmer.
  6. Your turn. Move the sliders: change P, change the distance, and read how bright the star looks (m).

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why does a Cepheid not just shine steadily like the Sun?

Gas layers inside it trap heat and release it again, so it keeps swelling and shrinking like a bouncing spring. The Sun's layers are balanced, so it stays steady.

Why is the star hotter when it is small?

Squeezed gas gets hotter, like a bicycle pump warming up. So the shrunk star is hotter, whiter and brighter. Watch the colour change in the 3D.

How is the period read from the graph?

Find two peaks that follow each other. The time between them is P. The purple bracket in the 3D shows one full wave.

Why is a longer period a brighter star?

Bigger, more luminous stars are larger and swell more slowly, so their beat is longer. Star B beats slowly and glows more.

Why does twice the distance give four times less light?

The same light spreads over a sphere. Doubling the radius makes the area four times bigger, so each spot gets one quarter. See the yellow bar shrink.

Can we use any variable star as a distance marker?

No. Only stars with a known law, like Cepheids and RR Lyrae. Other variable stars do not tell their true brightness from their beat.

What is a variable star?

Most stars shine almost steadily. A variable star is a star whose brightness changes with time. Some change because the star itself changes (it pulsates or erupts). Others only look different because one star passes in front of another (an eclipsing binary).

Astronomers draw a light curve: brightness on the up-down axis and time along the side. The shape of the curve tells the type of star.

Cepheids: stars that beat like a heart

A Cepheid is a giant star that pulsates. It swells, then shrinks, then swells again, in a very regular rhythm called the period (P). For Cepheids P is from about 1 day to 100 days.

Why does it beat? A layer of gas inside the star traps heat when the star is squeezed. The trapped heat pushes the star outward. When it has swelled, the gas lets the heat out, cools and falls back. Then it is squeezed again. It is like a spring that keeps bouncing.

The first Cepheid noticed was the star delta Cephei, so the whole family has this name.

The period–luminosity law

In 1912 Henrietta Leavitt studied many Cepheids in a small cloud of stars. They were all at nearly the same distance, so a star that looked brighter was truly brighter. She found: the longer the period, the brighter the star.

This is the period–luminosity law. A simple form for the absolute magnitude M (how bright the star would look from 10 parsecs) is

M ≈ −2.43 (log₁₀ P − 1) − 4.05, with P in days.

A smaller (more negative) M means a brighter star. A Cepheid with P = 10 days has M ≈ −4.05, which is about 2,000 times brighter than the Sun.

Measuring distance with Cepheids

A star that we know the true brightness of is a standard candle. The steps are:

  1. Watch the star and measure its period P.
  2. Use the law to get its true brightness, M.
  3. Measure how bright it looks, m (apparent magnitude).
  4. Find the distance with the distance modulus: m − M = 5 log₁₀(d / 10 pc), which gives d = 10^((m − M + 5)/5) parsecs.

One parsec is about 3.26 light-years. The idea behind it is the inverse-square rule: if a star is twice as far, its light spreads over four times the area, so it looks four times dimmer.

Edwin Hubble found Cepheids in the Andromeda nebula in the 1920s. Their distance showed that it is a separate galaxy, far outside our own.

Limits and care

Dust between the stars makes a star look dimmer, so we may think it is farther than it is. There are also two families: classical Cepheids (young, bright) and Type II Cepheids (old, fainter) which follow different lines. The law itself is first set using nearby Cepheids whose distances are known by parallax. Another group, RR Lyrae stars, pulse faster and are also used as candles.

Key formulas and definitions

Worked examples

1. A Cepheid has period P = 10 days. Find its absolute magnitude M.

log₁₀ 10 = 1. M = −2.43 (1 − 1) − 4.05 = −4.05.

2. A Cepheid has period P = 100 days. Find M.

log₁₀ 100 = 2. M = −2.43 (2 − 1) − 4.05 = −2.43 − 4.05 = −6.48. It is brighter than the 10-day star (more negative).

3. A star has m = 10 and M = −4. Find its distance.

m − M = 14. d = 10^((14 + 5)/5) = 10^3.8 ≈ 6,300 parsecs.

4. Two identical stars: B is twice as far as A. How much dimmer does B look?

Brightness ∝ 1/d². Twice the distance gives 1/2² = 1/4. B looks four times dimmer.

5. A 10-day Cepheid looks like m = 6.0. How far is it?

M = −4.05, so m − M = 6.0 + 4.05 = 10.05. d = 10^((10.05 + 5)/5) = 10^3.01 ≈ 1,020 parsecs (about 3,300 light-years).

6. Cepheid X has P = 3 days and Cepheid Y has P = 30 days. By how many magnitudes is Y brighter, and how many times brighter in light?

M(3) = −2.43 (0.477 − 1) − 4.05 = −2.78. M(30) = −2.43 (1.477 − 1) − 4.05 = −5.21. Difference = 2.43 magnitudes. Flux ratio = 10^(0.4 × 2.43) = 10^0.97 ≈ 9.4 times brighter.

Common mistakes

Practice quiz

1. A Cepheid variable star is one that:
2. The longer the period of a Cepheid, the:
3. Who found the period–luminosity relation?
4. A star is 3 times farther away. It looks:
5. A star whose true brightness is known and used to find distance is a:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is a Cepheid variable in simple words?

It is a star that swells and shrinks in a steady beat, so its brightness goes up and down. The time of one beat is its period.

Why are Cepheids called standard candles?

Because the period tells us the true brightness. A light of known strength is a standard candle, and by seeing how dim it looks we can tell how far away it is.

How did Cepheids show that galaxies exist outside the Milky Way?

Hubble found Cepheids in Andromeda. Using the law, he found it was far too distant to be inside our galaxy, so Andromeda is a galaxy of its own.

Learn first

Learn next

Related lessons

All Physics lessons