Astronomy Olympiad / Level 1 · NSEA / Maths Toolbox

Maths Toolbox · lesson 5 of 7 · 45 min

Calculus tools: rates, slopes and areas

After this lesson you can:
  • Read a derivative as a rate and a slope, an integral as a sum and an area.
  • Differentiate and integrate powers, sin, cos and exp.
  • Find a mass from a density by M = ∫ 4πr²ρ dr.
  • Use a derivative to find a maximum or minimum.

1. Concept

Kepler’s areas, a planet’s mass from its density and the speed of a changing quantity are all calculus; NSEA asks them as one-step integrals.

Calculus Tools

Derivatives. d(xn)dx=nxn−1\frac{d\left( {x}^{n}\right) }{dx}=n{x}^{n-1}, d(sin⁡x)dx=cos⁡x\frac{d\left( \sin {x}\right) }{dx}=\cos {x}, d(cos⁡x)dx=−sin⁡x\frac{d\left( \cos {x}\right) }{dx}=-\sin {x}, d(ex)dx=ex\frac{d\left( {e}^{x}\right) }{dx}={e}^{x}, d(ln⁡x)dx=1x\frac{d\left( \ln {x}\right) }{dx}=\frac{1}{x}; product rule (uv)′=u′v+uv′{\left( uv\right) }^{'}={u}^{'}v+u{v}^{'}; chain rule df(g(x))dx=f′(g)g′(x)d\frac{f\left( g\left( x\right) \right) }{dx}={f}^{'}\left( g\right) {g}^{'}\left( x\right).

Maxima and minima. A smooth function has a maximum or minimum where dfdx=0\frac{df}{dx}=0 (check the sign of d2fdx2\frac{{d}^{2}f}{d{x}^{2}}). A past NSEA question (where inside a planet is gravity strongest?) is solved this way.

Integrals over shells. To add up mass in a sphere of varying density, slice it into shells of area 4πr24\pi {r}^{2} and thickness drdr: M(r)=∫0r4πr′2ρ(r′)dr′M\left( r\right) =\int_{0}^{r}{4\pi {r}^{'2}\rho \left( {r}^{'}\right) d{r}^{'}}. This is the mass-continuity equation.

First-order linear differential equations. An equation dydx+P(x)y=Q(x)\frac{dy}{dx}+P\left( x\right) y=Q\left( x\right) is solved by multiplying by the integrating factor e∫Pdx{e}^{\int P dx}, which turns the left side into an exact derivative:

ddx(ye∫Pdx)=Qe∫Pdx\frac{d}{dx}\left( y {e}^{\int P dx}\right) =Q {e}^{\int P dx}

Example (A past NSEA question). For dydx+y=Ae−x\frac{dy}{dx}+y=A{e}^{-x} the factor is ex{e}^{x}: (yex)′=A{\left( y{e}^{x}\right) }^{'}=A, so y=(Ax+C)e−xy=\left( Ax+C\right) {e}^{-x}, with CC fixed by the initial condition. Exponential decay, dNdt=−λN\frac{dN}{dt}=-\lambda N, gives N=N0e−λtN={N}_{0}{e}^{-\lambda t}, with half-life t12=ln⁡2λ{t}_{\frac{1}{2}}=\frac{\ln {2}}{\lambda }.

Key results.

  • d(xⁿ)/dx = n xⁿ⁻¹ ; ∫ xⁿ dx = xⁿ⁺¹/(n + 1)
  • M = ∫₀ᴿ 4πr²ρ(r) dr ; G = 6.674 30 × 10⁻¹¹ (CODATA 2018)

Common mistakes. Each of these is false:

  • ✗ The integral of ρ over r gives the mass (it is ∫ρ · 4πr² dr: shells, not lines).
  • ✗ A zero derivative always means a maximum.

Going deeper (Olympiad)

ρ(r) = ρ₀(1 − r²/R²) → M = 8πρ₀R³/15 and g(r) inside; differentials for error propagation (δT/T from δL/L).

2. Explore it

Try it. Differentiate s = 5t² and find the speed at t = 3 s.

Exam-style practice. A planet has ρ = ρ₀(r/R). Find its total mass.

3. Worked example

A planet has a density profile ρ(r)=ρ0(1−r/R)\rho \left( r\right) ={\rho }_{0}\left( 1-r/R\right). What is the magnitude of the gravitational acceleration at exactly half the planet’s radius (r=R/2r=R/2)?

(a) 12πGρ0R\frac{1}{2}\pi G{\rho }_{0}R
(b) 512πGρ0R\frac{5}{12}\pi G{\rho }_{0}R
(c) 56πGρ0R\frac{5}{6}\pi G{\rho }_{0}R
(d) 23πGρ0R\frac{2}{3}\pi G{\rho }_{0}R

Solution. Answer: (b). The density profile is

ρ(r)=ρ0(1−rR)\rho \left( r\right) ={\rho }_{0}\left( 1-\frac{r}{R}\right)

The enclosed mass is

M(r)=4π∫0rρ0(1−r′R)r′2dr′M\left( r\right) =4\pi \int_{0}^{r}{{\rho }_{0}}\left( 1-\frac{r'}{R}\right) r{'}^{2}dr'

This gives

M(r)=4πρ0[r33−r44R]M\left( r\right) =4\pi {\rho }_{0}\left[ \frac{{r}^{3}}{3}-\frac{{r}^{4}}{4R}\right]

At r=R/2r=R/2,

M(R2)=4πρ0[R324−R364]M\left( \frac{R}{2}\right) =4\pi {\rho }_{0}\left[ \frac{{R}^{3}}{24}-\frac{{R}^{3}}{64}\right]

Combining the fractions,

M(R2)=4πρ0(5R3192)M\left( \frac{R}{2}\right) =4\pi {\rho }_{0}\left( \frac{5{R}^{3}}{192}\right)

The gravitational acceleration is

g=GM(r)r2g=\frac{GM\left( r\right) }{{r}^{2}}

At r=R/2r=R/2,

g=G[4πρ0(5R3192)](R2)2g=\frac{G\left[ 4\pi {\rho }_{0}\left( \frac{5{R}^{3}}{192}\right) \right] }{{\left( \frac{R}{2}\right) }^{2}}

Simplifying,

g=512πGρ0Rg=\frac{5}{12}\pi G{\rho }_{0}R

Therefore, the correct answer is (b).

4. From a past paper

NSEA 2015, Question 5 (official paper: IAPT). Let R be the radius of the Earth and g the acceleration due to gravity at its surface. What is the mean density of the Earth? (a) 3πR4gG\dfrac{3\pi R}{4gG} (b) 4πG3gR\dfrac{4\pi G}{3gR} (c) 4RG3gR\dfrac{4RG}{3gR} (d) 3g4πRG\dfrac{3g}{4\pi RG}

Our solution. Answer: (d). g=GMR2g=\frac{GM}{{R}^{2}} and M=(43)πR3ρM=\left( \frac{4}{3}\right) \pi {R}^{3}\rho give g=(43)πGRρg=\left( \frac{4}{3}\right) \pi GR\rho, so ρ=3g4πGR≈5500\rho =\frac{3g}{4\pi GR}\approx 5500 kg m⁻³.

5. Quick check

Q1. A star has a non-uniform density profile given by ρ(r)=ρ0/r\rho \left( r\right) ={\rho }_{0}/r for 0<r≤R0<r\le R. Which of the following best describes the gravitational field g(r)g\left( r\right) inside this star?

Q2. Consider a spherically symmetric body where the internal mass density scales as ρ(r)∝rn\rho \left( r\right) \propto {r}^{n}. In order for the internal gravitational field g(r)g\left( r\right) to increase as you travel outward from the center, which of the following gives exactly the required condition on the exponent nn?

Q3. The areal velocity of a planet is given by dAdt=L2m\frac{dA}{dt}=\frac{L}{2m} If a satellite is moved to an orbit where its angular momentum LL is doubled but its mass mm remains the same, how does the new area swept per day compare to the old orbit?

6. Next