Astronomy Olympiad / Level 2 · INAO / Maths Toolbox

Maths Toolbox · lesson 4 of 8 · 50 min

Calculus for astronomers: maxima, minima and simple differential equations

After this lesson you can:
  • Find a maximum or minimum by setting a derivative to zero, then check that it really is one.
  • Notice when the largest value sits at the edge of the allowed range instead.
  • Solve dy/dt = −(y − y₀)/τ and use its time constant.
  • Estimate a small change with dy ≈ (dy/dx) dx.

Before this lesson: Calculus tools: rates, slopes and areas

INAO questions solved here: INAO 2025 Q3 · all INAO questions

1. Concept

Two kinds of question come up again and again in INAO: when is something greatest? (the brightest Venus, the largest elongation, the fastest approach) and how does something change in time? (a cooling mirror, a decaying signal). School calculus answers both.

Finding the greatest or least value

At the top of a smooth hill the ground is level: the slope is zero. So to find where a quantity f(x)f(x) is largest or smallest, solve

dfdx=0.\frac{df}{dx} = 0 .

Then check what you found. The sign of df/dxdf/dx should change from ++ to −- across a maximum (from −- to ++ across a minimum), or the second derivative should be negative at a maximum. Also check the ends of the allowed range: a planet’s distance, for example, cannot go below the closest approach, and sometimes the largest value is simply at an end, where the slope need not be zero.

Change in time: the time constant

Many things relax towards a steady value at a rate proportional to how far away they are: a warm telescope mirror cooling to the night air, a charged capacitor, a stretched spring in oil. In symbols,

dydt=−y−y0τ⇒ y(t)=y0+(ystart−y0) e−t/τ.\begin{aligned} \frac{dy}{dt} &= -\frac{y - y_0}{\tau} \\ \Rightarrow\ y(t) &= y_0 + (y_{\text{start}} - y_0)\,e^{-t/\tau}. \end{aligned}

The time constant τ\tau is the time for the gap y−y0y - y_0 to shrink by a factor ee; the gap halves in t1/2=τln⁡2t_{1/2} = \tau \ln 2.

To solve it, separate the variables: dy/(y−y0)=−dt/τdy/(y - y_0) = -dt/\tau; integrating gives ln⁡∣y−y0∣=−t/τ+constant\ln|y - y_0| = -t/\tau + \text{constant}, which is the exponential above.

Small changes

For a small change dxdx, the change in ff is about

df≈dfdx dx.df \approx \frac{df}{dx}\,dx .

For a power law this becomes a rule for percentages: if L∝T4L \propto T^{4} then dL/L=4 dT/TdL/L = 4\,dT/T. A star 1 % hotter (same size) is about 4 % more luminous.

Traps. Stopping at df/dx=0df/dx = 0 without checking that it is a maximum, or that it lies inside the allowed range. Treating every cooling as exponential: a body that loses heat only by radiation obeys dT/dt∝−T4dT/dt \propto -T^{4}, which is not exponential (see below).

Going deeper (Olympiad)

For pure radiative cooling, dT/dt=−kT4dT/dt = -kT^{4}. Separating, ∫T−4 dT=−k∫dt\int T^{-4}\,dT = -k\int dt gives 1/T3=1/Tstart3+3kt1/T^{3} = 1/T_{\text{start}}^{3} + 3kt. The body cools fast while hot and very slowly when cold: the curve has a long tail, unlike an exponential, which shrinks by the same factor in every equal time step. INAO 2019 asked students to sketch such a curve for a wire heated by a current.

2. Explore it

A curve of Venus's elongation against the angle between Venus and the Earth seen from the Sun; it rises from zero, peaks at 46.3 degrees when that angle is 43.7 degrees, and falls back to zero at 180 degrees
Figure 1. Venus's angular distance from the Sun (elongation) against the Sun-centred angle θ between Venus and the Earth, for circular orbits. The slope is zero at the top.

Read off the graph: the elongation grows quickly at first, then levels off, and the top is near θ = 44°. Notice the curve is not symmetric. After the peak, the drop to zero at superior conjunction (θ = 180°) is slow.

3. Worked example

(a) Venus’s greatest elongation. Take circular, coplanar orbits: Venus at r=0.7233r = 0.7233 au, the Earth at R=1R = 1 au. Let θ\theta be the angle Venus–Sun–Earth. From the Earth, the elongation ε\varepsilon obeys

tan⁡ε=rsin⁡θR−rcos⁡θ.\tan\varepsilon = \frac{r\sin\theta}{R - r\cos\theta}.

ε\varepsilon is largest where tan⁡ε\tan\varepsilon is largest. Differentiate the fraction with the quotient rule and set the top to zero:

rcos⁡θ (R−rcos⁡θ)−rsin⁡θ (rsin⁡θ)=0⇒ rRcos⁡θ−r2=0 ⇒ cos⁡θ=rR.\begin{aligned} r\cos\theta\,(R - r\cos\theta) - r\sin\theta\,(r\sin\theta) &= 0 \\ \Rightarrow\ rR\cos\theta - r^{2} &= 0 \ \Rightarrow\ \cos\theta = \frac{r}{R}. \end{aligned}

Then the angle at Venus is a right angle (the line of sight just touches Venus’s orbit), so sin⁡εmax⁡=r/R=0.7233\sin\varepsilon_{\max} = r/R = 0.7233 and εmax⁡=46.33°\varepsilon_{\max} = 46.33°, at θ=43.67°\theta = 43.67°. The sign of the slope changes from ++ to −- there, so it is a maximum.

(b) Cooling a telescope mirror. A mirror is 20 °C warmer than the night air and its time constant is 40 min. How long until it is within 1 °C of the air? The gap falls from 20 °C to 1 °C, a factor 20:

t=τln⁡20=40 min×3.00=120 min.t = \tau \ln 20 = 40\ \text{min} \times 3.00 = 120\ \text{min}.

Two hours: this is why observers put their telescopes outside well before they start.

4. From a past paper

INAO 2025, Question 3 (official paper: HBCSE). The light we receive from Venus depends on its distance from the Sun, its distance Δ\Delta from us and how much of its lit half faces us. Assume circular, coplanar orbits. (a) Write the flux in terms of Δ\Delta. (b) At what Δ\Delta is the flux greatest? (c) How much of the disc is lit then?

Our solution. Let α\alpha be the angle Sun–Venus–Earth (the phase angle). The lit fraction of the disc is (1+cos⁡α)/2(1 + \cos\alpha)/2, and the sunlight reaching Venus is fixed (circular orbit), so

F∝1+cos⁡αΔ2.F \propto \frac{1 + \cos\alpha}{\Delta^{2}} .

The cosine rule in the Sun–Venus–Earth triangle gives R2=r2+Δ2−2rΔcos⁡αR^{2} = r^{2} + \Delta^{2} - 2r\Delta\cos\alpha, so

1+cos⁡α=(r+Δ)2−R22rΔ⇒F∝(r+Δ)2−R2Δ3.1 + \cos\alpha = \frac{(r + \Delta)^{2} - R^{2}}{2r\Delta} \quad\Rightarrow\quad F \propto \frac{(r + \Delta)^{2} - R^{2}}{\Delta^{3}} .

Differentiate with respect to Δ\Delta and set it to zero:

2(r+Δ) Δ3−3Δ2[(r+Δ)2−R2]=0⇒ Δ2+4rΔ+3r2−3R2=0⇒ Δ=−2r+r2+3R2.\begin{aligned} 2(r + \Delta)\,\Delta^{3} - 3\Delta^{2}\left[(r + \Delta)^{2} - R^{2}\right] &= 0 \\ \Rightarrow\ \Delta^{2} + 4r\Delta + 3r^{2} - 3R^{2} &= 0 \\ \Rightarrow\ \Delta &= -2r + \sqrt{r^{2} + 3R^{2}} . \end{aligned}

With r=0.7233r = 0.7233 au and R=1R = 1 au: Δ=−1.4466+1.8770=0.4304\Delta = -1.4466 + 1.8770 = 0.4304 au (the other root is negative). Then

cos⁡α=r2+Δ2−R22rΔ=0.5232+0.1853−10.6226=−0.468,\cos\alpha = \frac{r^{2} + \Delta^{2} - R^{2}}{2r\Delta} = \frac{0.5232 + 0.1853 - 1}{0.6226} = -0.468,

so the lit fraction is (1−0.468)/2=0.27(1 - 0.468)/2 = 0.27: Venus is a crescent, about a quarter lit, at elongation 39.7°39.7°. The official solution, with r=0.72r = 0.72 au, gets Δ=0.436\Delta = 0.436 au; the small difference comes only from rounding rr.

Check the range. Δ\Delta can run from R−r=0.28R - r = 0.28 au (inferior conjunction) to R+r=1.72R + r = 1.72 au; our value lies inside, and at both ends the flux is smaller (at the near end Venus is dark, at the far end it is far away). So it really is the maximum.

5. Quick check

Q1. Mercury orbits at r=0.387r = 0.387 au. Treating both orbits as circles, what is its greatest elongation in degrees?

Q2. What is the largest value of f(x)=x(1−x)f(x) = x(1 - x)?

Q3. A mirror is 16 °C warmer than the air and cools with a time constant of 30 min. How many minutes until it is within 1 °C of the air?

Q4. A star keeps its radius but its surface temperature rises by 2 %. By about how much does its luminosity rise?

6. Next