Derivation of the radial-velocity curve and the semi-amplitude K, mass function and minimum mass m sin i, the case of 51 Pegasi b (Mayor & Queloz 1995), error budget and instrumental limits of HARPS and ESPRESSO.
⏱ 150 minkinematics of the Keplerian orbitderivatives of composite functionsKepler's third lawerror propagationleast squaresgeometric probabilityDoppler effectrevision
By the end you will be able to:
Derive the radial velocity of a star with a companion on a Keplerian orbit as a function of K, e, ω and the true anomaly.
Derive the semi-amplitude K from Kepler's third law and define the mass function and the minimum mass m sin i.
Reproduce the parameters of 51 Pegasi b from P and K and propagate their uncertainties.
Estimate the signal of Jupiter-like and Earth-like planets and compare it with the precision of HARPS and ESPRESSO.
Analyze the inclination degeneracy and its statistical distribution for isotropic orientations.
1. Motivation: 59 meters per second
On October 6, 1995, Michel Mayor and Didier Queloz announced (IAU Circular 6251; Nature 378, 355) that the
radial velocity of the solar-type star 51 Pegasi oscillates with period P=4.2293±0.0011 d and semi-amplitude
K=59±3 m s⁻¹, after 18 months of measurements with the ELODIE spectrograph at the Observatoire de Haute-Provence.
From those two numbers they deduced a companion of minimum mass 0.47±0.02 Jupiter masses at 0.05 au from the
star: the first exoplanet around a main-sequence star, and one that nobody expected
(a “hot Jupiter”). This lesson derives the relation between (P,K,e) and the mass of the planet, applies the result
to 51 Peg b and discusses what limits the technique today, which has gone from 13 m s⁻¹ (ELODIE) to 10 cm s⁻¹ (ESPRESSO).
2. The orbit of the star
In the two-body problem, star (M⋆) and planet (mp) describe homothetic ellipses around the
center of mass, with the same period P, the same eccentricity e and semi-major axes
where a=a⋆+ap is the semi-major axis of the relative orbit. What we measure is the component of the velocity of the
star along the line of sight.
Geometry
Let z^ be the direction of the line of sight (negative sign toward the observer, by the convention positive velocity = recession).
We choose the orbital plane of the star with the ascending node on the x axis of the plane of the sky; the inclination i is
the angle between the orbital plane and the plane of the sky, and ω the argument of periastron (angle from the ascending
node to periastron, measured in the orbital plane). The coordinate of the star along the line of sight is
z=rsin(ν+ω)sini,
with r the distance to the center of mass and ν the true anomaly. Differentiating,
vr=z˙=sini[r˙sin(ν+ω)+rν˙cos(ν+ω)].
The Keplerian derivatives
From the orbit equation r=a⋆(1−e2)/(1+ecosν) and the conservation of the specific angular momentum
h=r2ν˙=μ⋆a⋆(1−e2) (with μ⋆ the effective gravitational parameter of the orbit of the
star, which will cancel) one obtains
Finally h=2πa⋆21−e2/P (the area of the ellipse, πa⋆21−e2, is swept in one period at
the rate h/2), so that
vr(t)=γ+K[cos(ν(t)+ω)+ecosω],K=P1−e22πa⋆sini
where γ is the systemic velocity (of the center of mass). The curve is a sinusoid only if e=0; with e>0
it is distorted (fast rise and slow fall or vice versa depending on ω), but its peak-to-peak amplitude is always 2K
(problem 1). The time dependence enters through ν(t): mean anomaly M=2π(t−tp)/P, Kepler’s equation
M=E−esinE and tan(ν/2)=(1+e)/(1−e)tan(E/2). Implementation: velocidadRadial in
src/lib/math/velocidadRadial.ts, which uses solveKepler from the library.
3. The semi-amplitude in terms of the masses
We substitute a⋆=amp/(M⋆+mp) and the third law a=[G(M⋆+mp)P2/4π2]1/3 into K:
Three consequences: Kdoes not depend on the distance to the star (it is a spectroscopic measurement), it grows with the mass
of the planet and decreases with the period as P−1/3 (close-in planets are the easy ones), and only
mpsini enters.
System
P
mp
M⋆
K (sin i = 1)
Jupiter–Sun
11.86 yr
1MJ
1M⊙
12.5 m s⁻¹
Earth–Sun
1 yr
1M⊕
1M⊙
0.089 m s⁻¹
Earth around an M dwarf
30 d
1M⊕
0.3M⊙
0.46 m s⁻¹
51 Peg b
4.2293 d
0.47MJ
1M⊙
59 m s⁻¹
Mass function and minimum mass
Cubing K and solving for the masses:
f(m)≡2πGPK3(1−e2)3/2=(M⋆+mp)2(mpsini)3.
The left-hand side, the mass function, contains only observables. If M⋆ is known (spectroscopy, isochrones,
asteroseismology) and mp≪M⋆,
mpsini≃K(2πGP)1/3M⋆2/31−e2,
and the exact cubic equation is solved by fixed-point iteration (m←[f(M⋆+m)2]1/3; masaMinima). What we obtain
is a lower bound on the mass: mp=(mpsini)/sini≥mpsini.
51 Pegasi b
With P=4.2293 d =3.654×105 s, K=59 m s⁻¹, e=0 and M⋆=1M⊙:
(the correction for M⋆+mp is 0.03%), and a=[GM⊙P2/4π2]1/3=0.0512 au, one tenth of the orbit of
Mercury. The test velocidadRadial.test.ts reproduces 0.47±0.02MJ. With the modern stellar mass, somewhat larger than
the solar one, mpsini rises in proportion to M⋆2/3 (problem 3).
4. The inclination
For isotropic orbital orientations, the orbital pole is uniform on the sphere and cosi is uniform in [0,1]
(previous lesson). Then the density of sini is p(s)=s/1−s2, and
That is, in 13% of cases the true mass exceeds twice the minimum, and only in 1.5% does it exceed it by a factor
of 10 (sini<0.1: P=1−cos5.74∘=0.005). If in addition the planet transits, i≈90∘ and the mass is exact;
combining mp with Rp from the transit gives the density of the planet, the datum that distinguishes a gas giant
from a rocky super-Earth. Check in the simulator that a transit only occurs if b=(a/R⋆)cosi<1+k:
for 51 Peg b, with a=0.0512 au and a star of solar radius, a/R⋆=11 and i>84.8∘ would be needed; no transits
have been observed, so i (and the true mass) remain unmeasured directly.
Rp/R⋆
0.1027
δ = (Rp/R⋆)²
1.054 % · 10 543 ppm
Model depth
12 766 ppm
T₁₄ (total)
2.89 h
T₂₃ (flat)
2.35 h
b · i
0.00 · 90.00°
a/R⋆
8.8
Inferred ρ⋆
1.41 g/cm³
K (radial vel.)
140.9 m/s
Geometric prob.
12.6 %
Transit S/N
412.6
Circular orbit. Depth δ ≈ (Rp/R⋆)²; total duration T₁₄ = (P/π)·asin[(R⋆/a)·√((1+k)² − b²)/sin i] (Seager and Mallén-Ornelas 2003); stellar density ρ⋆ = 3π(a/R⋆)³/(GP²). Quadratic limb darkening I(μ) = 1 − u₁(1−μ) − u₂(1−μ)², integrated numerically in rings. a/R⋆ is computed with Kepler’s third law from P and M⋆. The points are synthetic data with Gaussian white noise; the numbers 1–4 mark the contacts. Example values are rounded and approximate; the secondary eclipse is ignored.
5. How it is measured: from 13 m s⁻¹ to 10 cm s⁻¹
The non-relativistic Doppler shift is Δλ/λ=vr/c: 1 m s⁻¹ corresponds to 3.3×10−9, that is,
1.8×10−5 Å at 5500 Å, a thousandth of a pixel in a spectrograph of resolution R=115000. It is achieved by
averaging thousands of lines (cross-correlation with a mask) and comparing with a simultaneous reference
(ThAr lamp, Fabry–Pérot or laser frequency comb).
Noise budget.
Photons.σv∝1/(S/NNlines); it depends on the spectral type (K dwarfs with many
lines are optimal) and on vsini (rotation broadens the lines).
Instrument.HARPS (ESO 3.6 m, La Silla, 2003): goal of 1 m s⁻¹, R=115000, in vacuum and with thermal control;
during commissioning, 420 spectra of α Cen B in 7 h gave a scatter of 51 cm s⁻¹ dominated by the 4-min stellar
oscillations, with a noise floor of 0.26 m s⁻¹ and photon noise of 0.17 m s⁻¹; the instrumental drift is
tracked to 0.1 m s⁻¹ rms (Mayor et al. 2003). ESPRESSO (VLT, 2018): R≈140000, demonstrated precision better than
25 cm s⁻¹ in one night and 50 cm s⁻¹ over several months, limited by photons and by the star and compatible with an
instrumental limit of 10 cm s⁻¹ (Pepe et al. 2021).
The star. p-mode oscillations (minutes, 10–50 cm s⁻¹ in solar-type stars), granulation (hours, ~1 m s⁻¹), spots and
plages (days–weeks, from 1 to tens of m s⁻¹, modulated with the rotation) and activity cycles (years). This
jitter is today the real limit: the signal of an Earth in the habitable zone of the Sun, 9 cm s⁻¹, is below
ESPRESSO and buried in the stellar noise.
Precision of K. For a well-sampled sinusoid with N points of error σ, the least-squares fit gives
σK=σ2/N and σγ=σ/N (problem 6). With σ=13 m s⁻¹ and N=40, σK=2.9 m s⁻¹: the
±3 m s⁻¹ of Mayor & Queloz.
6. Error propagation
From mpsini∝KP1/3M⋆2/3, for independent variables,
(msiniδ(msini))2=(KδK)2+(3PδP)2+(3M⋆2δM⋆)2.
For 51 Peg b: δK/K=3/59=5.1%, δP/3P=10−4 (negligible), and with δM⋆/M⋆=10% (typical of
spectroscopic estimates) 2δM/3M=6.7%; total 8.4%, that is, ±0.04MJ. The published ±0.02 only
includes δK: the stellar mass is usually the dominant source of error and correlates all the planets of a system.
Implementation: errorRelativoMasaMinima.
Problems
1. (Proof) Amplitude and mean of the curve. Show that (a) the peak-to-peak value of vr is 2K for any
e and ω; (b) the time average of vr over one period is γ (hint: ⟨cos(ν+ω)⟩t=−ecosω).
Proof
(a) cos(ν+ω) sweeps [−1,1] as ν varies over [0,2π), hence vr−γ−Kecosω∈[−K,K] and the range is 2K.
(b) With dt=(r2/h)dν and r=a⋆(1−e2)/(1+ecosν): ⟨cos(ν+ω)⟩t=P1∫02πcos(ν+ω)hr2dν=Pha⋆2(1−e2)2∫02π(1+ecosν)2cos(ν+ω)dν. Expanding cos(ν+ω)=cosνcosω−sinνsinω,
the term in sinν vanishes by parity and ∫02π(1+ecosν)2cosνdν=−(1−e2)3/22πe (differentiating
∫02πdν/(1+ecosν)=2π/1−e2 with respect to e). With Ph=2πa⋆21−e2 the result is −ecosω, which cancels the
constant term: ⟨vr⟩=γ. ■
2. (Proof) Practical constant. Show that (2πG/P)1/3MJ/M⊙2/3=28.43 m s⁻¹ for P=1 Julian year, with
GM⊙=1.3271244×1020 m³ s⁻² and GMJ=1.2668653×1017 m³ s⁻² (IAU 2015), and that the result does not require knowing G.
Proof
(2πG/P)1/3MJM⊙−2/3=(2π/P)1/3(GMJ)(GM⊙)−2/3: G cancels. (2π/3.15576×107)1/3=5.838×10−3;
(GM⊙)2/3=2.6007×1013; 5.838×10−3×1.2668653×1017/2.6007×1013=28.44 m s⁻¹ (28.43 with more digits). ■
3. 51 Peg b with the modern stellar mass. Repeat the calculation of §3 with M⋆=1.11M⊙ and K=55.9 m s⁻¹ (later
values from the literature; use them as an exercise). Propagate δK=0.5 m s⁻¹ and δM⋆=0.05M⊙.
Show solution
msini=0.470MJ×(55.9/59)×(1.11)2/3=0.470×0.9475×1.0720=0.477MJ. Error: (0.5/55.9)2+(2×0.045/3)2=8.0×10−5+9.0×10−4=3.1%,
±0.015MJ, again dominated by M⋆.
4. Planetary signals. Compute K for (a) Saturn seen edge-on (P=29.46 yr, m=0.299MJ); (b) a super-Earth of
5M⊕ with P=10 d around an M dwarf of 0.2M⊙; (c) 51 Peg b if i=30∘. Which ones does HARPS (1 m s⁻¹) detect?
Show solution
(a) 28.43×0.299×29.46−1/3=2.75 m s⁻¹. (b) P=0.02738 yr, m=5/317.8=0.01573MJ:
28.43×0.01573×0.02738−1/3×0.2−2/3=28.43×0.01573×3.319×2.924=4.34 m s⁻¹. (c) Kdoes not change: K=59 m s⁻¹ is still
what is observed; what changes is the true mass, 0.47/sin30∘=0.94MJ. HARPS detects (a) and (b) with enough points.
5. (Proof) Statistics of sin i. Show that for isotropic orientations P(sini<s0)=1−1−s02 and
⟨sini⟩=π/4. What fraction of the “planets” with minimum mass 10MJ are actually brown dwarfs (>13MJ)?
Proof
cosi uniform in [0,1] ⇒ P(i<i0)=1−cosi0; with s0=sini0, P(sini<s0)=1−1−s02.
⟨sini⟩=∫0π/2sini⋅sinidi=π/4 (the density of i is sini). Mass >13MJ ⇔ sini<10/13:
P=1−1−0.592=0.361: more than a third. ■
6. (Computational) Recovering K. With velocidadRadial.ts (or your own code) generate 40 measurements of a circular orbit
(P=4.2293 d, K=59, γ=0) on random nights with noise σ=13 m s⁻¹. Fit v=γ+Acosϕ+Bsinϕ,
ϕ=2πt/P, by linear least squares with P known, obtain K=A2+B2 and repeat for 500 realizations:
compare the scatter of K with σ2/N. Prove that formula.
Proof and outline
For uniformly distributed phases the columns 1,cosϕ,sinϕ are nearly orthogonal, with ∑cos2ϕ≈N/2; the
normal matrix is diag(N,N/2,N/2) and the covariance σ2diag(1/N,2/N,2/N): σA=σB=σ2/N and, for
K≫σA, σK≈σ2/N=2.9 m s⁻¹. ■
import numpy as nprng = np.random.default_rng(1); P, K, s, N = 4.2293, 59.0, 13.0, 40Ks = []for _ in range(500): t = np.sort(rng.uniform(0, 60, N)); phi = 2*np.pi*t/P v = K*np.cos(phi) + s*rng.standard_normal(N) X = np.c_[np.ones(N), np.cos(phi), np.sin(phi)] g, A, B = np.linalg.lstsq(X, v, rcond=None)[0] Ks.append(np.hypot(A, B))print(np.mean(Ks), np.std(Ks), s*np.sqrt(2/N))
7. Eccentricity. Plot vr(t) for e=0.6 with ω=0∘, 90∘ and 180∘ (same K, P). Explain the shape of each curve
in terms of the velocity at periastron and apoastron, and why sparse sampling can confuse an eccentric
orbit with two planets in a 2:1 resonance.
Show solution
With ω=0 periastron is at the node (zero radial velocity but maximum rate of change): a symmetric “sawtooth”
curve. With ω=90∘ periastron points toward the observer: a sharp positive peak (K(1+e) above γ) and a broad,
shallow minimum (−K(1−e)). With ω=180∘, the mirror image. The true anomaly advances quickly at
periastron, so the peak lasts a small fraction of the period. The Fourier series expansion of an eccentric
orbit contains harmonics 2ν,3ν,… with amplitudes ∝e,e2; with few points, the harmonic 2/P can be
fitted just as well by a second planet of period P/2 (Anglada-Escudé et al. 2010, ApJ 709, 168).
✦ Self-assessment
Answer all the questions to check.
Further reading
Perryman, M. (2018). The Exoplanet Handbook, 2nd ed., ch. 2: full derivation, instrumentation and catalog of results.
Lovis, C. & Fischer, D. (2010), in Exoplanets (ed. Seager), ch. 2: precision Doppler technique and error budget.
Murray, C. D. & Dermott, S. F. (1999). Solar System Dynamics, ch. 2: the relations r(ν), h and Kepler’s equation used in §2.
Mayor & Queloz (1995), Nature 378, 355; IAUC 6251: the discovery. Mayor et al. (2003), The Messenger 114, 20; Pepe et al. (2021), A&A 645, A96: HARPS and ESPRESSO.
🍎 Teacher guide
Time
2 classes of 75 min
Learning outcome
By the end, the student derives the radial-velocity curve and the semi-amplitude K, obtains m sin i and its uncertainty from P and K, and assesses the detectability of a planet against the instrumental and stellar limits.
Evidence of learning
Submission of problem 6 (recovery of K by least squares with 500 realizations and comparison with σ√(2/N)) and of problem 3 with error propagation.
Materials
Python 3 with NumPy or src/lib/math/velocidadRadial.ts
IAU Circular 6251 (one-page text) and figure 4 of Mayor & Queloz 1995
Simulator transito-exoplaneta
Suggested sequence
Class 1. Derivation of vr and K (§§2–3) on the board, step by step, with the cancellation of G as a dimensional
check. Live calculation of 51 Peg b and table of signals.
Class 2. Inclination and statistics (§4), instrumentation and noise (§5), propagation (§6). Lab: problem 6 and
discussion of the HARPS stellar-noise figure (α Cen B).
Common mistakes
Believing that K measures the velocity of the planet: it is that of the star, a thousand times smaller.
Forgetting that m sin i is a lower bound; problem 5 quantifies how many “planets” are brown dwarfs.
Thinking that improving the spectrograph is enough: stellar jitter is today the limit for signals below 1 m/s.
Confusing the ω of the planet and of the star: they differ by 180°; the library uses that of the star.
Key terms in this lesson (12)
Glossary terms that appear in the text. Each one links to its full entry.
Radial velocityThe part of a star's velocity that brings it toward us or takes it away from us, measured by the Doppler effect. A planet makes its star "wobble", and that back-and-forth gives away the planet and its mass.
Doppler effectThe change in pitch of a siren as it approaches or moves away. The same happens with light: a star moving away looks a little redder, and one approaching, bluer.
OrbitThe path one body follows around another because of gravity: the Moon around Earth, Earth around the Sun. Almost all are ellipses, slightly flattened ovals.
TransitWhen a planet passes in front of its star and takes away a bit of its brightness, like a moth crossing in front of a lighthouse. Measuring that dip gives the size of the planet.
PerihelionThe point of the orbit closest to the Sun; there the planet moves fastest. Earth passes through it in early January. For the Moon around Earth it is called perigee.
Kepler's equationThe equation that says where on its ellipse a planet is on a given date. It cannot be solved with algebra: it has to be solved by successive approximations, as astronomy programs do.
EccentricityA number between 0 and 1 that says how flattened an orbit is: 0 is a perfect circle, and the closer to 1, the more elongated. Earth's is 0.017, almost a circle; Halley's comet's, 0.97.
DerivativeHow fast something changes at an instant: the derivative of position is velocity, and the derivative of velocity is acceleration. It is the slope of the graph at each point.
Orbital nodesThe two points where the Moon's orbit crosses the plane of Earth's orbit. There are eclipses only when the new or full moon happens near a node; that is why there are not eclipses every month.
Astronomical unitThe average distance between Earth and the Sun. It works as a "ruler" for measuring the Solar System: Jupiter is about 5 au from the Sun.
Degeneracy pressureA pressure that appears when matter is so tightly packed that the electrons cannot get any closer together, because of a rule of quantum physics. It holds up white dwarfs even when they are cold.
ExoplanetA planet that orbits a star other than the Sun. More than 5000 have been known since 1995; most were discovered by watching them block a tiny bit of their star's light as they pass in front of it.