Modelling downhill descent with particular reference to Castle Hill

View of Castle Hill, the principal hill modelled in this article, from Jezzine Barracks.

My tricycle at the top of Castle Hill on 18 October 2026.

This article derives the equations of motion of a tricycle going downhill after brake failure. This article definitely does not advocate sabotaging one's brakes, as modelling the descent clearly shows that potentially lethal and uncontrollable speeds are achieved rather quickly. Further, on Castle Hill, where many of these models are specifically applied to, the velocities modelled would be illegal given it has a 40 km/hr speed limit. For those unfamiliar, Castle Hill is a 286-metre granite monolith in Townsville, Australia.

See this notebook showing some simulations, conducted with the help of ChatGPT, based on the equations of motion formulated in this article.

No rolling resistance and air resistance losses

In the event of there being no non-conservative forces like rolling resistance and air resistance acting on the trike, the total energy of the system is given by:

\[\begin{aligned} E &= T + V \end{aligned}\]

Where \(T\) is kinetic energy (in joules) and \(V\) is potential energy (also in joules). In turn, they are defined as:

\[\begin{align} T=\dfrac{mv^2}{2} \tag{1} \end{align}\]

and

\[\begin{align} V=mgh(s). \tag{2} \end{align}\]

Where: \(v\) is velocity; \(m\) is the mass of the tricycle (in kilograms), including the mass of anything on it (e.g. its rider); \(g\) is gravitational acceleration (in metres per second squared (\(\mathrm{m}\cdot \mathrm{s}^{-2}\))); and \(h(s)\) is the height (in \(m\)) of the base of the tricycle above sea level. The \(mgh\) value for \(V\) assumes constant gravitational acceleration.

Alternatively, if gravity is not constant:

\[\begin{aligned} V &= \dfrac{GMm}{r_{\mathrm{base}}} - \dfrac{GMm}{r_{\mathrm{summit}}} \\ &=GMm\left(r_{\mathrm{base}}^{-1}-r_{\mathrm{summit}}^{-1}\right). \end{aligned}\]
Where \(G\) is the gravitational constant, \(M\) is the mass of the Earth and \(r_{\mathrm{summit}}\) and \(r_{\mathrm{base}}\) are the distances of the summit and base of the hill/mountain from the centre of the Earth.

If we are at the top of the hill and the tricycle is stationary, then \(E=V\). So, when the trike moves downhill, \(T\) will eventually equal \(V\) at the bottom of the hill or mountain. Hence to determine the maximum of \(v\) we merely need to solve:

\[\begin{aligned} \dfrac{mv^2}{2} &= mgh. \end{aligned}\]
Multiplying both sides by \(\dfrac{2}{m}\) yields:
\[\begin{aligned} v^2 &= 2gh. \end{aligned}\]
Whereas square rooting both sides yields:
\[\begin{align} v &= \sqrt{2gh}. \tag{3} \end{align}\]
We deliberately ignored the negative solution for \(v\) as we have defined \(s\) to be increasing as we go downhill and hence velocity is positive in this direction. This also means that so long as motion is in the direction of downhill, which it always will be when it is moving solely under the force of gravity, velocity will always be positive.

Or, if gravity cannot be assumed constant:

\[\begin{aligned} \dfrac{mv^2}{2} &= GMm\left(r_{\mathrm{base}}^{-1}-r_{\mathrm{summit}}^{-1}\right) \\ v^2 &= 2GM \left(r_{\mathrm{base}}^{-1}-r_{\mathrm{summit}}^{-1}\right). \end{aligned}\]
Square rooting both sides yields:
\[\begin{align} v &= \sqrt{2GM\left(r_{\mathrm{base}}^{-1}-r_{\mathrm{summit}}^{-1}\right)}. \tag{4} \end{align}\]
In Equation (4), we deliberately ignored the negative possibility as the velocity as we only care about the magnitude of the velocity not its direction. Keeping in mind that the tallest point of Castle Hill is not reachable by road, so maximum altitude would be approximately somewhere in the vicinity of 265.9 metres above sea level — at least based on what Google Fit says of my altitude when I journey there. According to Equations (3) and (4), the maximum velocity of a trike travelling down Castle Hill would be approximately 260 kilometres per hour (kph).

With rolling resistance and air resistance

More realistically, however, we would expect there to be non-conservative forces acting on the trike, such as rolling resistance and aerodynamic drag. When these forces act upon the trike a simple analytical solution becomes less easy to obtain, at least if the angle of descent is allowed to not remain constant. To parametize the problem we will use an independent variable \(s\) that will be distance, in metres, from the summit of the hill or mountain. We will assume this mountain has a road that we are travelling down and \(s\) is the distance from the summit along this road.

Constant gravity

We will first assume that the variation in gravitational acceleration between the base and summit of the hill or mountain is negligible and derive the equation of motion based on this assumption.

Formulating the Lagrangian

The first step in deriving the equation of motion is to determine the Lagrangian of the system. The Lagrangian contains both the kinetic and potential energy of the system and hence both will be calculated next.

Kinetic energy

Substituting:

\[\begin{align} v=\dot{s} \tag{5} \end{align}\]
where \(\dot{s}=\dfrac{ds}{dt}\) is the trike's velocity in \(\mathrm{m}\cdot \mathrm{s}^{-1}\) into Equation (1) yields:
\[\begin{align} T=\dfrac{m\dot{s}^2}{2}. \tag{6} \end{align}\]

Potential energy

The potential energy term will only include the conservative force of gravitation. To compute it, we need to be able to formulate the height of the trike above sea level in terms of \(s\). If we have inclination/declination angle data for the hill in question, let us define \(\theta(s)\) as the declination angle (positive when downhill) at \(s\) metres from the summit. If we form an infinitesimal triangle on the hill/mountain, we will see that \(dh = -d s \sin{\theta}\) and hence:

\[\begin{align} \dfrac{dh}{ds} &= -\sin{\theta(s)}. \tag{7} \end{align}\]
Integrating from the summit, we obtain that:
\[\begin{align} h(s) &= h_{\mathrm{summit}} - \int_{0}^s \sin{\theta(\sigma)}d\sigma. \tag{8} \end{align}\]
Where \(h_{\mathrm{summit}}\) is the height of the hill/mountain, or rather its tallest point accessible by road, and we use \(\sigma\) as a dummy (integration) variable for distance from the summit.

Hence if gravitational acceleration can be assumed to be constant:

\[\begin{align} V &= mg\left(h_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right). \tag{9} \end{align}\]

Final Lagrangian

The Lagrangian is, by definition:

\[\begin{align} L &= T - V. \tag{10} \end{align}\]

Substituting Equations (1) and (9) into Equation (10). Therefore our Lagrangian is:

\[\begin{align} L &= \dfrac{m\dot{s}^2}{2} - mg\left(h_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right). \tag{11} \end{align}\]

Non-conservative forces

It is important to note, however, that nonconservative forces — such as air resistance and rolling resistance — are a major factor in determining the speed of a tricycle going downhill. To account for these effects, we need to calculate generalized forces. Fortunately, since our problem only has a single independent variable — that of distance from the summit — calculating the generalized forces should be straightforward.

Rolling resistance is proportional to the normal force. The normal force could be calculated as:

\[\begin{align} N=mg\cos{\theta(s)}. \tag{12} \end{align}\]
The rolling resistance force is defined as:
\[\begin{aligned} F_r &= C_{rr}N. \end{aligned}\]
Where \(C_{rr}\) is the coefficient of rolling resistance. Substituting Equation (12) into Equation (??) yields:
\[\begin{align} F_r &= mgC_{rr}\cos{\theta(s)}. \tag{13} \end{align}\]
This force directly opposes motion in the direction of \(s\).

As for air resistance (or drag):

\[\begin{align} F_D &= \dfrac{\rho C_D A v^2}{2}. \tag{14} \end{align}\]
Substituting Equation (5) into Equation (14) yields:
\[\begin{align} F_D &= \dfrac{\rho C_D A \dot{s}^2}{2}. \tag{15} \end{align}\]
Where \(\rho\) is air density in \(\mathrm{kg} \cdot \mathrm{m}^{-3}\), \(C_D\) is a dimensionless drag coefficient, \(A\) is the cross sectional surface area (in \(m^2\)) that the area acts on. This is also in the opposite direction to motion. Hence the generalized non-conservative forces acting on our tricycle would be:
\[\begin{aligned} Q_s &= -mgC_{rr} \cos{\theta(s)} - \dfrac{\rho C_D A\dot{s}^2}{2}. \end{aligned}\]

Euler-Lagrange equation with non-conservative forces

The Euler-Lagrange equation with dissipative forces in the \(s\) coordinate is:

\[\begin{align} \dfrac{d}{dt}\dfrac{\partial L}{\partial \dot{s}} - \dfrac{\partial L}{\partial s} &= Q_s. \tag{16} \end{align}\]
The left-hand side of Equation (16) can also be denoted as \(\dfrac{\delta S}{\delta s}\), the functional derivative of \(S\) with respect to \(s\). \(S\) is the action and is defined by:
\[\begin{aligned} S=\int_{t_0}^{t_f} L(s, \dot{s}, t) dt \end{aligned}\]
where \(t_0\) is the starting time and \(t_f\) is the finishing time. First, we shall calculate \(\dfrac{\partial L}{\partial \dot{s}}\), the canonical momentum:
\[\begin{aligned} \dfrac{\partial L}{\partial \dot{s}} &= m\dot{s}. \end{aligned}\]
Hence:
\[\begin{align} \dfrac{d}{dt}\dfrac{\partial L}{\partial \dot{s}} &= m\ddot{s}. \tag{17} \end{align}\]
As for the second term in Equation (16), it is:
\[\begin{aligned} \dfrac{\partial L}{\partial s} &= mg\sin{\theta(s)}. \end{aligned}\]
So the functional derivative is therefore:
\[\begin{aligned} \dfrac{\delta S}{\delta s} &= m\ddot{s} - mg\sin{\theta(s)}. \end{aligned}\]
Hence Equation (16) becomes:
\[\begin{aligned} m\ddot{s} - mg\sin{\theta(s)} &= -mgC_{rr} \cos{\theta(s)} - \dfrac{\rho C_D A\dot{s}^2}{2}. \end{aligned}\]
Rearranging and factorizing yields:
\[\begin{aligned} m\ddot{s} &= mg(\sin{\theta(s)}+C_{rr}\cos{\theta(s)})-\dfrac{\rho C_D A\dot{s}^2}{2}. \end{aligned}\]
Dividing both sides by \(m\) yields:
\[\begin{align} \ddot{s} &= g(\sin{\theta(s)}+C_{rr}\cos{\theta(s)})-\dfrac{\rho C_D A\dot{s}^2}{2m} \tag{18} \end{align}\]
assuming constant gravitational acceleration.

Simplification to first order

\[\begin{aligned} \ddot{s} &= \dfrac{d\dot{s}}{ds} \dfrac{ds}{dt} \\ &= \dfrac{ds}{dt} \dfrac{d\dot{s}}{ds} \\ &= \dot{s} \dfrac{d\dot{s}}{ds}. \end{aligned}\]
Hence Equation (18) becomes, after dividing by \(m\):
\[\begin{aligned} \dot{s} \dfrac{d\dot{s}}{ds} &= g(\sin{\theta(s)} - C_{rr} \cos{\theta(s)}) - \dfrac{\rho C_D A\dot{s}^2}{2m}. \end{aligned}\]
Let \(u=\dot{s}^2\), then:
\[\begin{aligned} \dfrac{du}{ds} &= \dfrac{d(\dot{s}^2)}{ds} \end{aligned}\]
Hence by the chain rule:
\[\begin{aligned} \dfrac{du}{ds} &= 2\dot{s}\dfrac{d\dot{s}}{ds}. \end{aligned}\]
Consequently:
\[\begin{aligned} \dfrac{1}{2}\dfrac{du}{ds} &= g(\sin{\theta(s)} - C_{rr} \cos{\theta(s)}) - \dfrac{\rho C_D A u}{2m}. \end{aligned}\]
Multiplying both sides by 2 yields:
\[\begin{aligned} \dfrac{du}{ds} &= 2g(\sin{\theta(s)} - C_{rr} \cos{\theta(s)}) - \dfrac{\rho C_D A u}{m}. \end{aligned}\]
Adding the \(u\) term to the left-hand side:
\[\begin{align} \dfrac{du}{ds} + \dfrac{\rho C_D A u}{m} &= 2g(\sin{\theta(s)} - C_{rr} \cos{\theta(s)}). \tag{19} \end{align}\]

Solution

We first seek an integration factor, \(I(s)\), so that we can re-write Equation (29) as:

\[\begin{aligned} I(s) \dfrac{du}{ds} + I'(s)\dfrac{du}{ds} &= 2gI(s)(\sin{\theta(s)} - C_{rr} \cos{\theta(s)}) \end{aligned}\]
This implies that \(I'(s)=I(s)\dfrac{\rho C_D A}{m}\) hence:
\[\begin{aligned} I(s)&=e^{\int_0^s \frac{\rho C_D A}{m}d \sigma} \\ &= e^{\frac{\rho C_D As}{m}}. \end{aligned}\]
Multiplying Equation (19) by our integration factor yields:
\[\begin{aligned} e^{\frac{\rho C_D As}{m}}\dfrac{du}{ds} + e^{\frac{\rho C_D As}{m}}\dfrac{\rho C_D A u}{m} &= 2ge^{\frac{\rho C_D As}{m}}(\sin{\theta(s)} - C_{rr} \cos{\theta(s)}). \end{aligned}\]
The left-hand side is the derivative of \(I(s)u(s)\) with respect to \(s\):
\[\begin{aligned} \dfrac{d}{ds}\left[e^{\frac{\rho C_D As}{m}}u(s)\right] &= 2ge^{\frac{\rho C_D As}{m}}(\sin{\theta(s)} - C_{rr} \cos{\theta(s)}). \end{aligned}\]
Integrating both sides with respect to \(s\) (using the dummy variable of integration \(\sigma\)) from 0 to \(s\) yields:
\[\begin{aligned} e^{\frac{\rho C_D As}{m}}u(s) - e^{0}u(0) &= 2g\int_0^s e^{\frac{\rho C_D A\sigma}{m}}(\sin{\theta(\sigma)} - C_{rr} \cos{\theta(\sigma)})d\sigma. \end{aligned}\]
Since the trike starts at zero velocity \(u(0)=0\). Hence we have:
\[\begin{align} e^{\frac{\rho C_D As}{m}}u(s) &= 2g\int_0^s e^{\frac{\rho C_D A\sigma}{m}}(\sin{\theta(\sigma)} - C_{rr} \cos{\theta(\sigma)})d\sigma. \tag{20} \end{align}\]
Multiplying by \(e^{-\frac{\rho C_D As}{m}}\) yields:
\[\begin{align} u(s) = 2ge^{-\frac{\rho C_D As}{m}}\int_0^s e^{\frac{\rho C_D A\sigma}{m}}(\sin{\theta(\sigma)}-C_{rr} \cos{\theta(\sigma)})d \sigma. \tag{21} \end{align}\]

Square rooting we obtain the velocity:

\[\begin{align} v(s) &= \sqrt{2ge^{-\frac{\rho C_D As}{m}}\int_0^s e^{\frac{\rho C_D A\sigma}{m}}(\sin{\theta(\sigma)}-C_{rr} \cos{\theta(\sigma)})d \sigma}. \tag{22} \end{align}\]
We neglected the negative possibility because velocity is positive in the downhill direction, which is the only direction the trike will go when under the action of gravity.

Below are the velocities achieved in the above model for various \(C_D A\) and \(C_{rr}\) values when descending Castle Hill. The simulation did not end at 0 metres above sea level; it ended at about 36 metres above sea level, which is approximately at the high end of Gregory Street. \(\theta(s)\) values were calculated from QldDem data on elevation.

Velocity while descending Castle Hill, assuming constant gravity.

Non-constant gravity

Gravitational acceleration depends on the distance from the centre of the source of gravity, so there is some variation in gravitational acceleration between the base and summit of hills and mountains although it is minor. In this section, the equation of motion will be derived while accounting for this variability.

Formulating the Lagrangian

The kinetic energy we use when studying non-constant gravity is the same as before. Consequently, Equation (17) is also true for this Lagrangian.

Potential energy

If we cannot assume constant gravity, then:

\[\begin{align} V &=\dfrac{GMm}{(r_{\mathrm{base}} + h(s))} - \dfrac{GMm}{r_{\mathrm{summit}}}. \tag{23} \end{align}\]
Factorizing:
\[\begin{align} V &= GMm\left((r_{\mathrm{base}} + h(s))^{-1} - r_{\mathrm{summit}}^{-1}\right). \tag{24} \end{align}\]
Where \(G\) is the gravitational constant and \(M\) is the mass of the Earth.

Substituting Equation (8) into Equation (24) yields:

\[\begin{aligned} V &= GMm\left[\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^{-1}-r_{\mathrm{summit}}^{-1}\right]. \end{aligned}\]

Final Lagrangian

The Lagrangian of our system is therefore:

\[\begin{aligned} L &= \dfrac{m\dot{s}^2}{2} - GMm\left[\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^{-1}-r_{\mathrm{summit}}^{-1}\right]. \end{aligned}\]

Non-conservative forces

If gravity cannot be assumed to be constant then:

\[\begin{aligned} g=\dfrac{GM}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2}. \end{aligned}\]
Substituting Equation (??) into Equation (13) yields:
\[\begin{align} F_r &= \dfrac{GMmC_{rr}\cos{\theta(s)}}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2} \tag{25} \end{align}\]

Computing Equation (16)

The conservative force term of the Euler-Lagrange equation is therefore:

\[\begin{align} \dfrac{\partial L}{\partial s} &= \dfrac{GMm\sin{\theta(s)}}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2}. \tag{26} \end{align}\]
Hence the functional derivative of \(S\) with respect to \(s\) is therefore:
\[\begin{aligned} \dfrac{\delta S}{\delta s} &= m\ddot{s} - \dfrac{GMm\sin{\theta(s)}}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2}. \end{aligned}\]
The time derivative of generalized momentum is the same as above. As for \(Q_s\) it is:
\[\begin{align} Q_s &= -\dfrac{GMmC_{rr}\cos{\theta(s)}}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2} - \dfrac{\rho C_D A \dot{s}^2}{2}. \tag{27} \end{align}\]
Substituting Equations (26) and (27) into Equation (16) yields:
\[\begin{aligned} m\ddot{s} - \dfrac{GMm\sin{\theta(s)}}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2} &= -\dfrac{GMmC_{rr}\cos{\theta(s)}}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2} - \dfrac{\rho C_D A\dot{s}^2}{2}. \end{aligned}\]
Rearranging and factorizing:
\[\begin{aligned} m\ddot{s} &= \dfrac{GMm}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2} \left[\sin{\theta(s)}-C_{rr}\cos{\theta(s)}\right] - \dfrac{\rho C_D A\dot{s}^2}{2}. \end{aligned}\]
Dividing by \(m\):
\[\begin{align} \ddot{s} &= \dfrac{GM}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2} \left[\sin{\theta(s)}-C_{rr}\cos{\theta(s)}\right] - \dfrac{\rho C_D A\dot{s}^2}{2m}. \tag{28} \end{align}\]

Simplification to first order

\(\ddot{s} = \dot{s} \dfrac{d\dot{s}}{ds}\) hence Equation (28) becomes:

\[\begin{aligned} \dot{s} \dfrac{d\dot{s}}{ds} &= \dfrac{GM}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2} \left[\sin{\theta(s)}-C_{rr}\cos{\theta(s)}\right] - \dfrac{\rho C_D A\dot{s}^2}{2m}. \end{aligned}\]
Letting \(u=\dot{s}^2\), then \(\dfrac{du}{ds} = 2\dot{s}\dfrac{d\dot{s}}{ds}\) and so:
\[\begin{aligned} \dfrac{1}{2}\dfrac{du}{ds} &= \dfrac{GM}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2} \left[\sin{\theta(s)}-C_{rr}\cos{\theta(s)}\right] - \dfrac{\rho C_D A u}{2m}. \end{aligned}\]
Multiplying both sides by 2 yields:
\[\begin{aligned} \dfrac{du}{ds} &= \dfrac{2GM}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2} \left[\sin{\theta(s)}-C_{rr}\cos{\theta(s)}\right] - \dfrac{\rho C_D A u}{m}. \end{aligned}\]
Adding the \(u\) term to the left-hand side:
\[\begin{align} \dfrac{du}{ds} + \dfrac{\rho C_D A}{m}u &= \dfrac{2GM}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2} \left[\sin{\theta(s)}-C_{rr}\cos{\theta(s)}\right]. \tag{29} \end{align}\]

Solution

We first seek an integration factor, \(I(s)\), so that we can re-write Equation (29) as:

\[\begin{aligned} I(s) \dfrac{du}{ds} + I'(s)\dfrac{du}{ds} &= I(s)\dfrac{2GM}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2} \left[\sin{\theta(s)}-C_{rr}\cos{\theta(s)}\right]. \end{aligned}\]
Hence \(I'(s)\) must equal \(I(s)\dfrac{\rho C_D A}{m}\), which therefore implies that
\[\begin{aligned} I(s)&=e^{\int_0^s \frac{\rho C_D A}{m}ds} \\ &=e^{\frac{\rho C_D As}{m}}. \end{aligned}\]
We can replace the left-hand side with \(\dfrac{d}{ds}\left[I(s)u(s)\right]\) hence:
\[\begin{aligned} \dfrac{d}{ds}\left[I(s)u(s)\right] &= I(s)\dfrac{2GM}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2} \left[\sin{\theta(s)}-C_{rr}\cos{\theta(s)}\right]. \end{aligned}\]
Therefore Equation (??) becomes:
\[\begin{align} \dfrac{d}{ds}\left[e^{\frac{\rho C_D As}{m}}u(s)\right] &= 2GMe^{\frac{\rho C_D As}{m}}\dfrac{\sin{\theta(s)}-C_{rr}\cos{\theta(s)}}{\left(r_{\mathrm{summit}} - \int_0^s \sin{\theta(\sigma)}d\sigma\right)^2}. \tag{30} \end{align}\]
Integrating both sides of Equation (30) from 0 to \(s\) with respect to \(s\) (calling it a new dummy variable \(\sigma\); \(\sigma\) in our denominator will be renamed \(\xi\)) yields:
\[\begin{align} e^{\frac{\rho C_D As}{m}}u(s)-e^0 u(0) &= 2GM\int_0^s e^{\frac{\rho C_D A\sigma}{m}}\dfrac{\sin{\theta(\sigma)}-C_{rr}\cos{\theta(\sigma)}}{\left(r_{\mathrm{summit}} - \int_0^{\sigma} \sin{\theta(\xi)}d\xi\right)^2} d\sigma. \tag{31} \end{align}\]
The trike's initial velocity is assumed to be zero, hence \(u(0)=0\):
\[\begin{aligned} e^{\frac{\rho C_D As}{m}}u(s) &= 2GM\int_0^s e^{\frac{\rho C_D A\sigma}{m}}\dfrac{\sin{\theta(\sigma)}-C_{rr}\cos{\theta(\sigma)}}{\left(r_{\mathrm{summit}} - \int_0^{\sigma} \sin{\theta(\xi)}d\xi\right)^2} d\sigma. \end{aligned}\]
Multiplying by \(e^{-\frac{\rho C_D As}{m}}\) yields:
\[\begin{aligned} u(s) &= 2GMe^{-\frac{\rho C_D As}{m}}\int_0^s e^{\frac{\rho C_D A\sigma}{m}}\dfrac{\sin{\theta(\sigma)}-C_{rr}\cos{\theta(\sigma)}}{\left(r_{\mathrm{summit}} - \int_0^{\sigma} \sin{\theta(\xi)}d\xi\right)^2} d\sigma. \end{aligned}\]
Square rooting \(u\) to obtain velocity yields:
\[\begin{align} v(s) &= \sqrt{2GMe^{-\frac{\rho C_D As}{m}}\int_0^s e^{\frac{\rho C_D A\sigma}{m}}\dfrac{\sin{\theta(\sigma)}-C_{rr} \cos{\theta(\sigma)}}{\left(r_{\mathrm{summit}}-\int_0^\sigma \sin{\theta(\xi)} d\xi\right)^2} d \sigma}. \tag{32} \end{align}\]
Below are the velocities achieved in the above model for various \(C_D A\) and \(C_{rr}\) values when descending Castle Hill. The simulation did not end at 0 metres above sea level; it ended at about 36 metres above sea level, which is approximately at the high end of Gregory Street.

Velocity while descending Castle Hill, assuming non-constant gravity.