Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Project 3 — Science Background

Wien's law, Kepler geometry, and transit contacts

San Diego State University

Project 3 uses roots to find where a radiation spectrum peaks, recover a planet’s position, and locate the start and end of a transit: a planet passing in front of its star and blocking some starlight. This companion explains the physics and geometry behind Parts 2–4 of Project 3. The brief specifies the code, tests, and submissions; this page adds no deliverables.

1. Light and the electromagnetic spectrum

Visible light is the small part of electromagnetic radiation our eyes detect. Radio, infrared, ultraviolet, X-rays, and gamma rays are the same kind of radiation at different wavelengths. Wavelength λ\lambda is the distance between successive wave crests; frequency ν\nu counts cycles per second. A photon is a packet of light energy. In vacuum,

c=λν,Ephoton=hν=hcλ.c=\lambda\nu,\qquad E_{\rm photon}=h\nu=\frac{hc}{\lambda}.

Shorter wavelengths mean higher frequency and more energy per photon. They do not, by themselves, mean a brighter source: brightness also depends on how much radiation arrives. Here ν\nu denotes light frequency; in the orbit sections the same conventional symbol denotes true anomaly. The units and context distinguish them.

Electromagnetic spectrum ordered from gamma rays at short wavelength to radio at long wavelength on a logarithmic scale. An expanded visible strip spans approximately 380 to 700 nanometers. Frequency and photon energy increase toward shorter wavelengths.

Each tick interval on the upper axis spans a factor of 1000 in wavelength. Visible light occupies only a narrow interval. The lower strip expands it on a linear scale; its colors are illustrative. Band boundaries are conventional, and microwaves are part of the broader radio band. See NASA’s electromagnetic spectrum overview and visible-light guide.

Useful conversions are 1 nm=10−71\ \mathrm{nm}=10^{-7} cm and 1 μm=10−41\ \mu\mathrm{m}=10^{-4} cm. A peak at 0.58 μm=5800.58\ \mu\mathrm{m}=580 nm lies in the visible band; one at 0.97 μm=9700.97\ \mu\mathrm{m}=970 nm lies in the infrared. These examples connect the spectrum map to the Planck curves below.

A spectrum is a density

Think of a histogram: its bin height can be a count divided by bin width. Likewise, Bλ dλB_\lambda\,d\lambda measures radiance in a small wavelength interval. BλB_\lambda alone is radiance per unit wavelength, not the radiance in the whole spectrum. Radiance describes radiation traveling in a particular direction, per unit apparent emitting area and solid angle. The apparent area is the surface area as viewed from that direction. A solid angle measures the size of a cone of directions; its unit is the steradian (sr). Changing from equal wavelength bins to equal frequency bins changes their widths unevenly because ν=c/λ\nu=c/\lambda. The density and the location of its maximum can therefore change, while the radiation in corresponding intervals stays the same.

2. Wien’s law: find the wavelength peak

A blackbody is an ideal object that absorbs all incident radiation and emits a thermal spectrum determined by its temperature. A spectrum shows how radiation is distributed over wavelength or frequency. Temperature TT is measured in kelvin (K), an absolute scale with zero at absolute zero. The blackbody’s spectral radiance per unit wavelength is the Planck function:

Bλ(T)=2hc2λ51exp⁡[hc/(λkBT)]−1.B_\lambda(T)=\frac{2hc^2}{\lambda^5} \frac{1}{\exp[hc/(\lambda k_BT)]-1}.

Here hh is Planck’s constant, cc is the speed of light, and kBk_B is Boltzmann’s constant. CGS means centimeter–gram–second units; the erg is its unit of energy. Use the values in Part 2: λ\lambda in cm and TT in K. Then BλB_\lambda has units of energy per time, area, solid angle, and wavelength: erg s−1 cm−2 sr−1 cm−1\mathrm{erg\,s^{-1}\,cm^{-2}\,sr^{-1}\,cm^{-1}}.

Wien’s displacement law locates the maximum of this wavelength density:

λmax⁡T=b,b≈0.2897772 cm K.\lambda_{\max}T=b,\qquad b\approx0.2897772\ \mathrm{cm\,K}.

Doubling the temperature halves the peak wavelength. The spectrum remains broad; the peak does not mean that all photons have that wavelength. Treating a stellar spectrum as a blackbody is an approximation: real spectra include absorption lines and atmospheric effects. Here stellar means relating to a star; absorption lines are narrow dips where material absorbs particular wavelengths, and a stellar atmosphere is a star’s outer gas layers.

The star’s photosphere is the layer from which most of its visible light escapes. A blackbody approximates its thermal radiation. Surface flux is the energy emitted per unit surface area per unit time; luminosity is the total energy emitted by the whole star per unit time. Temperature sets the surface flux, while luminosity also depends on the star’s size.

Absolute Planck spectral radiance at 3000, 5000, and 8000 K. The vertical axis is logarithmic. Hotter curves are higher at every wavelength and peak at shorter wavelengths.

The plot shows the absolute Planck function, with no individual curve normalization. Hotter blackbodies emit more at every wavelength and peak at shorter wavelengths. The logarithmic vertical axis makes the cooler spectrum visible; values below the displayed range are clipped. Markers locate the wavelength peaks. Wavelength is labelled in micrometers (1 μm=10−41\ \mu\mathrm{m}=10^{-4} cm), while radiance remains per cm of wavelength in the CGS units of the equation above. These are ideal blackbody spectra, not measured stellar spectra.

Predict → Play → Explain

Before changing temperature, predict how the wavelength peak and emitted surface flux will change. Compare the absolute curves first, then normalize their peaks by dividing each curve by its own maximum. Explain which difference normalization hides. The second view connects the spectral peak to the root-finding problem below.

Derive the equation to solve

At fixed T>0T>0, define the dimensionless variable (a ratio with no units)

x=hcλkBT,dxdλ=−xλ.x=\frac{hc}{\lambda k_BT},\qquad \frac{dx}{d\lambda}=-\frac{x}{\lambda}.

Logarithmic differentiation keeps the algebra short:

1BλdBλdλ=1λ[−5+xexex−1].\frac{1}{B_\lambda}\frac{dB_\lambda}{d\lambda} =\frac{1}{\lambda}\left[-5+\frac{x e^x}{e^x-1}\right].

For finite λ>0\lambda>0, set this derivative to zero and rearrange:

xexex−1=5⟹x=5(1−e−x).\frac{x e^x}{e^x-1}=5 \quad\Longrightarrow\quad x=5(1-e^{-x}).

The positive solution x⋆x_\star is independent of temperature, giving

b=hckBx⋆.b=\frac{hc}{k_Bx_\star}.

This connects Parts 1–2: the generic root finder solves f(x)=x−5(1−e−x)=0f(x)=x-5(1-e^{-x})=0, and the application converts its answer into a physical constant. At fixed temperature, BλB_\lambda tends to zero at both wavelength extremes. Its unique positive stationary point is therefore the maximum.

Why a zero residual can select the wrong root

The rearranged equation also has the root x=0x=0. But the step above assumed x>0x>0: at zero, the denominator ex−1e^x-1 vanishes. For finite positive TT, x→0x\to0 corresponds to λ→∞\lambda\to\infty, not a finite-wavelength peak.

The derivative of the root-finding function is

f′(x)=1−5e−x.f'(x)=1-5e^{-x}.

It vanishes at x=ln⁡5x=\ln5. The function decreases up to that minimum and then increases, crossing zero once more at the desired positive root. This geometry explains both the unwanted zero root and the risk of a large Newton step near a small derivative.

Upper panel shows the rearranged Wien function crossing zero at x equals zero and near 4.965. Lower panel shows its derivative crossing zero at ln 5. A vertical dotted line joins that derivative zero to the function's minimum; negative x is shaded.

A small residual does not select the physical root. Negative xx is outside the finite positive wavelength and temperature domain; x=0x=0 is its limiting boundary. The dotted line marks a zero derivative, not a root of ff.

Wavelength and frequency peaks are different

Project 2 used BνB_\nu, the radiance per unit frequency. Conservation of radiance over corresponding spectral intervals gives

Bλ ∣dλ∣=Bν ∣dν∣,Bλ=cλ2Bν ⁣(cλ,T).B_\lambda\,|d\lambda|=B_\nu\,|d\nu|, \qquad B_\lambda=\frac{c}{\lambda^2}B_\nu\!\left(\frac{c}{\lambda},T\right).

The factor c/λ2c/\lambda^2 varies with wavelength, so converting the location of the BνB_\nu maximum using λ=c/ν\lambda=c/\nu does not locate the BλB_\lambda maximum. The underlying radiation is the same; the spectral interval used to define the density changes. See Marr and Wilkin (2012) for a discussion of this distinction.

Integrating the spectrum in Project 2 measures the total emitted flux; finding its peak here measures where the wavelength density is largest. These give Stefan–Boltzmann’s law and Wien’s law, respectively.

3. The model and its coordinates

An orbit is a path followed under gravity. Here we track the planet relative to the star. Its path is an ellipse, a closed oval defined by two fixed points called foci (singular: focus): distances from any point on the oval to the two foci add to the same total. The star lies at one focus, away from the ellipse’s center unless the orbit is circular.

Why the planet changes speed

Imagine a line joining the star to the moving planet. That line sweeps out a wedge-shaped area. Kepler’s second law says it sweeps equal areas in equal time intervals. During a short time step near periastron, the line is shorter, so a larger sideways step is needed to cover the same area. Near apastron, the line is longer and a smaller step suffices. The planet therefore moves fastest at periastron and slowest at apastron. See NASA’s explanation of Kepler’s laws.

Turn on the figure’s equal-time dots: wider gaps mean greater distance traveled in the same time, hence greater speed. Equal time means equal swept area, not equal distance or equal angle.

To predict a transit, we also need the planet’s apparent position on the sky. The orbital plane contains its path. The sky plane is an imaginary image plane perpendicular to our viewing direction; projecting onto it gives the two-dimensional picture an observer sees.

What the orbital parameters mean

Four panels in a two-by-two layout explain orbital parameters. Top left, a changes the size and the longest width is two a. Top right, e changes a circle into an ellipse at fixed a, with closest periastron and farthest apastron marked. Bottom left, increasing inclination flattens a circular orbit's sky projection. Bottom right, omega rotates periastron from the node direction about the stellar focus.

Figure 4:Size, shape, tilt, and orientation. Orange marks the star. The inclination panel shows the observer’s sky; the others show the orbital plane. Dots in the orientation panel mark periastron for two rotations about the stellar focus. View the figure at full size.

In this two-body model, ii and ω\omega stay fixed while the planet moves. They orient the orbit; they do not say where the planet is along it. The changing angle ν\nu supplies that position. Our reference plane is the observer’s sky, with positive ZZ toward the observer. We choose XX along the ascending node. Its direction in the sky plane would otherwise be specified by the node longitude Ω\Omega, an angle from a reference direction; choosing XX this way makes that extra angle unnecessary here.

The project model and symbols

Treat the star and planet as an isolated Newtonian two-body system: include only their mutual gravity, described by Newton’s laws. Their relative orbit is an ellipse with semimajor axis aa and eccentricity 0≤e<10\le e<1. The position below is the planet’s displacement relative to the star; the star need not be stationary in an inertial frame, a coordinate frame that is not accelerating or rotating. For the transit, use spherical bodies and a distant observer, so their projected outlines are circles. The stellar disk is the star’s apparent circular face. Project 3 uses uniform brightness across that disk. A light curve plots the received brightness against time.

SymbolMeaning
PP, ttorbital period and time since periastron, in the same units
aa, rrsemimajor axis and instantaneous star–planet distance
eeeccentricity; zero gives a circle
MM, EE, ν\numean, eccentric, and true anomaly, in radians
iiangle between the orbital plane and sky plane; π/2\pi/2 is edge-on
ω\omegaargument of periastron, measured in the orbital plane from the ascending node
R⋆R_\star, RpR_pstellar and planetary radii
p=Rp/R⋆p=R_p/R_\starplanet-to-star radius ratio
zzsky-projected center separation divided by R⋆R_\star

We fix ω=π/2\omega=\pi/2 and put t=0t=0 at periastron. In the required edge-on cases, the planet is then directly in front of the star at t=0t=0. For a circular orbit there is no unique periastron; retain this orientation and time origin by convention.

The calculation proceeds as

t⟶M→solve KeplerE⟶(r,ν),(r,ν)⟶z(t)→solve contacts(t1,t2,t3,t4).\begin{aligned} t&\longrightarrow M\xrightarrow{\text{solve Kepler}}E\longrightarrow(r,\nu),\\ (r,\nu)&\longrightarrow z(t)\xrightarrow{\text{solve contacts}}(t_1,t_2,t_3,t_4). \end{aligned}

4. Three angles with different jobs

An anomaly is an angular parameter describing position in an orbit. The three anomalies below describe the same instant in different ways; they are linked by the orbit’s geometry, not three angles we choose independently.

We know when we want the planet’s position. On an eccentric orbit, its speed changes, so elapsed time does not translate directly into an angle around the star. Mean anomaly MM represents the steadily advancing orbital clock. Kepler’s equation, M=E−esin⁡EM=E-e\sin E, converts that clock into the geometric parameter EE. From EE, we calculate the planet’s distance and its actual direction, the true anomaly ν\nu. NASA’s orbital-motion explanation describes the same time-to-position sequence.

ParameterQuestion it answersWhere to read it
Mean anomaly MMHow much of the period has elapsed?A clock that advances at a constant rate: M/(2π)=t/PM/(2\pi)=t/P
Eccentric anomaly EEWhich auxiliary-circle point maps to the planet?At ellipse center CC, from the periastron direction to circle point QQ
True anomaly ν\nuIn which direction is the actual planet?At star SS, from periastron toward the planet

EE points to QQ, not to the planet. The auxiliary circle is a helper drawing centered at CC with radius aa; there is only one planet. ν\nu points to the planet from the star. All equations use radians; the figure can display degrees to help read the angles. A radian is an angle unit: one full turn is 2π2\pi radians or 360∘360^\circ, and a right angle is π/2\pi/2 radians.

Watch the clock and the planet

Reveal Clock & planet → Construct E → Measure ν in order. Scrub time, then turn on equal-time dots. Orbit in space keeps the same instant while you change tilt and orientation. The viewing-angle control moves the diagram’s camera; it does not change the orbit.

One instant, three readings

The Film snapshot uses e=0.55e=0.55 and E=π/3E=\pi/3. Then

M=π3−0.55sin⁡π3=0.570884 rad,tP=M2π=0.090859.M=\frac{\pi}{3}-0.55\sin\frac{\pi}{3}=0.570884\ \text{rad}, \qquad \frac{t}{P}=\frac{M}{2\pi}=0.090859.
Clock MMConstruction EEDirection ν\nuDistance r/ar/a
32.71∘32.71^\circ60.00∘60.00^\circ93.95∘93.95^\circ0.725

Less than 10% of the period has elapsed, yet the planet is already more than 90∘90^\circ from periastron as seen from the star. It moves quickly near periastron, and the star is offset from the ellipse center. Indeed, xorb/a=cos⁡60∘−0.55=−0.05x_{\rm orb}/a=\cos60^\circ-0.55=-0.05: the planet has passed to the left of the star even though QQ is still to the right of CC.

Captioned animation

The film has no audio. It builds the construction in stages, then holds time fixed while taking the circular limit. Use the controls to pause or replay it. The static walkthrough below carries the same explanation.

Read the geometry

Mean anomaly is a clock:

M=nt,n=2πP.M=nt,\qquad n=\frac{2\pi}{P}.

Here nn is the clock’s angular rate, in radians per unit time. The clock advances by equal amounts in equal time intervals. For an eccentric orbit, it is not the planet’s physical angle around the star.

Eccentric anomaly parametrizes the ellipse. Draw an auxiliary circle of radius aa centered on the ellipse’s center CC. A point QQ at angle EE on that circle has coordinates (acos⁡E,asin⁡E)(a\cos E,a\sin E). Compress its vertical coordinate by 1−e2\sqrt{1-e^2} to obtain the planet’s position on the ellipse. The star is at the focus SS, displaced by aeae from CC toward periastron. Measured from the star, the orbital-plane coordinates are therefore

xorb=a(cos⁡E−e),yorb=a1−e2sin⁡E.x_{\rm orb}=a(\cos E-e),\qquad y_{\rm orb}=a\sqrt{1-e^2}\sin E.

True anomaly is the physical angle at the focus: ν=atan2⁡(yorb,xorb)\nu=\operatorname{atan2}(y_{\rm orb},x_{\rm orb}), modulo a full turn.

The distance from the focus is

r2=xorb2+yorb2=a2[(cos⁡E−e)2+(1−e2)sin⁡2E]=a2(1−ecos⁡E)2,\begin{aligned} r^2&=x_{\rm orb}^2+y_{\rm orb}^2\\ &=a^2\left[(\cos E-e)^2+(1-e^2)\sin^2E\right]\\ &=a^2(1-e\cos E)^2, \end{aligned}

so r=a(1−ecos⁡E)r=a(1-e\cos E). At periastron E=0E=0, r=a(1−e)r=a(1-e); at apastron E=πE=\pi, r=a(1+e)r=a(1+e).

The half-angle expression used in the project is

ν=2atan2⁡ ⁣(1+esin⁡(E/2),1−ecos⁡(E/2)).\nu=2\operatorname{atan2}\!\left( \sqrt{1+e}\sin(E/2),\sqrt{1-e}\cos(E/2)\right).

Use a two-argument arctangent to retain quadrant information. Angles differing by 2π2\pi describe the same position, but the project’s Kepler solver must return EE on the same unwrapped branch as its input MM: keep the count of completed turns rather than reducing every angle to one revolution. For example, M=2π+0.570884M=2\pi+0.570884 corresponds to one full orbit plus the snapshot above, so EE is near 2π+π/32\pi+\pi/3, not just π/3\pi/3.

5. Why time leads to a root-finding problem

Kepler’s second law says the line joining star and planet sweeps equal areas in equal times. Let bℓ=a1−e2b_\ell=a\sqrt{1-e^2} be the ellipse’s semiminor axis, half its shortest width. From periastron to eccentric anomaly EE, the swept area is

A(E)=abℓ2(E−esin⁡E).A(E)=\frac{ab_\ell}{2}(E-e\sin E).

Compress the auxiliary circle’s sector area by bℓ/ab_\ell/a, then subtract the signed triangle area associated with the focus’s offset aeae. The ellipse has area πabℓ\pi ab_\ell, so equal-area motion gives

tP=A(E)πabℓ⟹M=E−esin⁡E.\frac{t}{P}=\frac{A(E)}{\pi ab_\ell} \quad\Longrightarrow\quad M=E-e\sin E.

Thus M/(2π)M/(2\pi) measures both the elapsed fraction of a period and the fraction of the ellipse’s area swept from periastron. It does not measure the fraction of the ellipse’s circumference traveled. In the interactive figure, the purple clock sector and orange swept orbital area occupy the same fraction of their respective totals.

For multiple revolutions, interpret area as accumulated swept area. For negative time, use signed area. The same equation remains valid without wrapping the angles.

Given EE, calculating MM is direct. Given MM, we instead solve

f(E)=E−esin⁡E−M=0,f′(E)=1−ecos⁡E.f(E)=E-e\sin E-M=0,\qquad f'(E)=1-e\cos E.

For a bound ellipse, f′(E)≥1−e>0f'(E)\ge1-e>0, so ff increases strictly and has one real root for each unwrapped MM (its limits as E→±∞E\to\pm\infty have opposite signs). Uniqueness does not guarantee Newton convergence. Near periastron at large ee, a small derivative can produce a large update.

The residual also needs interpretation. For an approximate solution E^\widehat E and exact solution E∗E_\ast, the mean value theorem gives

∣E^−E∗∣≤∣f(E^)∣1−e.|\widehat E-E_\ast|\le \frac{|f(\widehat E)|}{1-e}.

This is a bound for the exact mathematical residual. Floating-point evaluation adds round-off error. A small computed residual is useful evidence, but becomes a weaker guarantee of angular accuracy as ee approaches one.

6. From the orbit to the observer’s sky

The orbital radius rr is a distance in space. For a transit, we need the separation of the two centers on the sky: could the projected disks overlap? Inclination and periastron orientation determine the apparent track. The projected center separation, divided by the stellar radius, is zz. The Kepler solve supplies position at a trial time; the contact solves find when the projected outlines touch.

Place the star at the origin. Let X,YX,Y span the sky plane and let positive ZZ point toward the observer. Choose the sky’s XX axis along the ascending node. With u=ν+ωu=\nu+\omega, rotating the orbital plane through inclination ii gives

X=rcos⁡u,Y=rsin⁡ucos⁡i,Z=rsin⁡usin⁡i.X=r\cos u,\qquad Y=r\sin u\cos i,\qquad Z=r\sin u\sin i.

Only X,YX,Y determine the projected center separation:

z=X2+Y2R⋆=rR⋆cos⁡2u+cos⁡2isin⁡2u=rR⋆1−sin⁡2isin⁡2u.\begin{aligned} z&=\frac{\sqrt{X^2+Y^2}}{R_\star}\\ &=\frac{r}{R_\star}\sqrt{\cos^2u+\cos^2i\sin^2u}\\ &=\frac{r}{R_\star}\sqrt{1-\sin^2i\sin^2u}. \end{aligned}

At the project’s fixed ω=π/2\omega=\pi/2,

X=−rsin⁡ν,Y=rcos⁡νcos⁡i,Z=rcos⁡νsin⁡i,z=rR⋆sin⁡2ν+cos⁡2icos⁡2ν.\begin{aligned} X&=-r\sin\nu,\quad Y=r\cos\nu\cos i,\quad Z=r\cos\nu\sin i,\\ z&=\frac{r}{R_\star}\sqrt{\sin^2\nu+\cos^2i\cos^2\nu}. \end{aligned}

The final sum of squares avoids subtracting nearly equal numbers near an edge-on mid-transit. At i=π/2i=\pi/2, it reduces to z=(r/R⋆)∣sin⁡ν∣z=(r/R_\star)|\sin\nu|.

Left: a side view shows the orbital line tilted by inclination i from the sky axis Y toward the observer axis Z. Right: the projected ellipse has a solid front segment and dashed rear segment, with the projected periastron offset from the stellar center.

Tilting the orbit changes its sky projection. The illustrative 65∘65^\circ inclination makes the tilt visible. The stellar radius is 0.12a0.12a in the sky view, and the projected track misses the stellar disk. Project 3’s required contact calculations use 90∘90^\circ.

A transit needs both projected overlap and the planet in front: z<1+pz<1+p and Z>0Z>0. Projected overlap with Z<0Z<0 is a secondary eclipse: the star passes in front of the planet and hides some or all of the planet’s light. Because zz is a distance, it loses this front/back information.

Recover Project 1. In a circular, edge-on orbit, r=ar=a and ν=M=2πt/P\nu=M=2\pi t/P modulo a full turn. Thus

z(t)=aR⋆∣sin⁡2πtP∣.z(t)=\frac{a}{R_\star}\left|\sin\frac{2\pi t}{P}\right|.

This is a check of the whole chain: time convention, Kepler solution, angular conversion, and projection. Near z=0z=0, compare absolute errors because a relative error divides by a vanishing reference.

Worked example: one supplied orbital position

Take e=0.4e=0.4, a/R⋆=8a/R_\star=8, i=60∘i=60^\circ, ω=90∘\omega=90^\circ, and a supplied eccentric anomaly E=30∘=π/6E=30^\circ=\pi/6 radians. This illustrative position is separate from the required edge-on benchmarks. No root solve is needed for this example.

StepCalculationResult
Orbital positionxorb/a=cos⁡E−ex_{\rm orb}/a=\cos E-e; yorb/a=1−e2sin⁡Ey_{\rm orb}/a=\sqrt{1-e^2}\sin E0.466025, 0.458258
Distancer/a=1−ecos⁡Er/a=1-e\cos E0.653590
Physical angleν=atan2⁡(yorb,xorb)\nu=\operatorname{atan2}(y_{\rm orb},x_{\rm orb})44.52∘44.52^\circ
Sky positionX/a=−yorb/aX/a=-y_{\rm orb}/a; Y/a=(xorb/a)cos⁡iY/a=(x_{\rm orb}/a)\cos i-0.458258, 0.233013
Front/backZ/a=(xorb/a)sin⁡iZ/a=(x_{\rm orb}/a)\sin i+0.403590: toward the observer
Projected separationz=8(X/a)2+(Y/a)2z=8\sqrt{(X/a)^2+(Y/a)^2}4.112770

The planet is on the observer’s side, but it is far from the stellar disk in projection. Being in front is necessary for a transit, not sufficient. Check the rotation by verifying X2+Y2+Z2=r2X^2+Y^2+Z^2=r^2 before rounding.

7. Contacts are tangencies between two circles

Contact means the apparent planet and star outlines just touch. This is tangency, with the circles touching without crossing at that instant. Scale lengths by R⋆R_\star: the stellar radius is one, the planetary radius is pp, and their center separation is zz. External tangency occurs at the sum of radii, 1+p1+p. Internal tangency occurs at their difference, 1−p1-p, for 0<p<10<p<1.

Four numbered panels, read across each row, show a planet moving right to left across the stellar center. Orange rings mark tangency points. At contacts one and four the circles touch externally; at contacts two and three the planet is internally tangent to the stellar boundary.

Four distinct contacts for a central transit (a crossing through the star’s apparent center), read left to right across each row. Orange rings mark the tangency points; arrows show planet motion in our sky coordinates. The illustrative planet has p=0.18p=0.18.

ContactGeometryWhat follows
t1t_1: z=1+pz=1+pfirst external tangencyingress (entry): overlap grows
t2t_2: z=1−pz=1-pfirst internal tangencythe planet is fully inside the stellar disk
t3t_3: z=1−pz=1-psecond internal tangencyegress (exit): overlap shrinks
t4t_4: z=1+pz=1+psecond external tangencyoverlap has ended

In a nongrazing transit, the planet’s disk fits fully inside the star’s apparent disk for part of the crossing, so t1<t2<t3<t4t_1<t_2<t_3<t_4. The two durations are

T14=t4−t1,T23=t3−t2.T_{14}=t_4-t_1,\qquad T_{23}=t_3-t_2.

The second is the full-overlap duration. For a uniformly bright star and an opaque planet (one that does not transmit starlight) with negligible flux of its own, full overlap blocks a fraction p2p^2 of the starlight. Normalized flux divides the received flux by its value outside transit; that baseline is one, and full-overlap flux is 1−p21-p^2. With limb darkening (a stellar disk that looks dimmer toward its edge), the planet crosses regions of different brightness, so this segment need not be flat.

A grazing transit clips the star’s apparent edge without a full-overlap interval. At the boundary where the planet just reaches internal tangency, the two inner contacts merge. Project 3 requires four distinct contacts for its supplied configurations; it asks for a reported failure if that condition is not met elsewhere.

8. Turn the geometry into event equations

Define two functions:

gout(t)=z(t)−(1+p),gin(t)=z(t)−(1−p).g_{\rm out}(t)=z(t)-(1+p),\qquad g_{\rm in}(t)=z(t)-(1-p).

Each crosses zero twice during a nongrazing primary transit. At ingress, zz decreases: the outer crossing comes first, then the inner crossing. At egress the order reverses. Sorting all four times restores chronological order.

Upper panel shows projected separation dipping below the two contact thresholds, with four numbered crossings and duration arrows. Lower panel shows the two contact residuals crossing zero and two opposite-sign square markers in a shaded interval bracketing the first contact.

The same event appears as a threshold crossing above and a zero below. Squares mark opposite-sign evaluations that bracket contact 1. The illustrative parameters are e=0.4e=0.4, a/R⋆=8a/R_\star=8, p=0.15p=0.15, and i=ω=90∘i=\omega=90^\circ; they differ from the project’s benchmarks. Time is a fraction of the period.

Use a grid to locate brackets, then refine each crossing with bisection. Compare signs directly, as in the brief; retain exact sampled zeros once. A grid can miss two crossings within one interval, so no detected sign change does not prove there is no transit. Check event selection, refine the grid when needed, and verify the number and order of contacts.

The brief’s window [−P/4,P/4][-P/4,P/4] isolates the primary event for its required configurations. It is not a general rule for arbitrary eccentricity, inclination, or periastron orientation. A general event selector also needs the line-of-sight information.

Two numerical solves contribute to the answer

Each evaluation of a contact function includes a Kepler solve. An error in EE changes the computed position and therefore the contact residual. Near a simple crossing, linearization gives the useful sensitivity estimate

∣δt∣≈∣δz∣∣dz/dt∣.|\delta t|\approx\frac{|\delta z|}{|dz/dt|}.

A shallow crossing is more sensitive to separation error. This estimate assumes a nonzero slope and sufficiently small errors; it does not apply at a tangency where contacts merge. Bisection bounds a root only when continuity and reliable signs preserve a bracket. Inner-solve errors can shift the contact function or make its signs unreliable near zero.

Finally, both endpoints contribute to duration error:

∣δT14∣≤∣δt4∣+∣δt1∣.|\delta T_{14}|\le |\delta t_4|+|\delta t_1|.

The required circular-duration comparison checks the full calculation. Optionally, repeat with tighter inner and outer tolerances to see whether the duration stabilizes. A stopping tolerance alone does not establish accuracy.

Why eccentricity changes the duration here

At fixed aa and PP, the periastron speed is

vperi=2πaP1+e1−e.v_{\rm peri}=\frac{2\pi a}{P}\sqrt{\frac{1+e}{1-e}}.

Our edge-on orientation puts mid-transit at periastron, with velocity in the sky plane. Increasing eccentricity therefore increases the crossing speed near mid-transit, explaining the shorter durations in the project’s cases. Do not generalize this trend to every orientation: a transit near apastron samples a slower part of the orbit. The contact calculation uses the changing position throughout the event, without assuming constant speed.

Further reading

Joshua N. Winn, Transits and Occultations, §2, provides a broader treatment of eclipse geometry. Its radius ratio kk is our pp, and its true anomaly ff is our ν\nu. It chooses the opposite directions for both sky axes; this changes the signs of X,YX,Y but leaves zz unchanged. The figures on this page were generated for this course from the equations shown here.

Model assumptions at a glance

CalculationAssumptionWhat the result means
Wien peakideal blackbody; density per wavelengthpeak of BλB_\lambda, not a single emitted color
Orbitisolated Newtonian two-body ellipserelative star–planet position; no perturbations
Transitdistant observer, spherical bodies, uniform stellar brightnessgeometric contacts and idealized flux, without limb darkening or noise
Temperature zoneequilibrium, full heat redistribution, emissivity one, fixed albedo, no internal heatingtemperature bounds, not a climate or habitability prediction

The eccentricity comparison holds PP and a/R⋆a/R_\star fixed to isolate the change in orbital shape and speed along the orbit. For the same star and planet masses, fixed aa fixes PP through Kepler’s third law; changing ee does not require changing either. Check the non-intersection condition above before interpreting a mathematical orbit as a physical star–planet system.