<!-- Generated by book/tools/make-index.py from the book source. -->

> Hedengren, J. (Ed.) (2027). Chapter 3: Mechanics of Movement. In *Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data* (pp. 52–82). IRSRI Sports Research Institute. CC BY 4.0.

**Question.** How does a 70 kg athlete leave the ground, and what decides how high?

**Objectives.**
- Describe a movement with position, velocity, acceleration and joint angle, and compute them from samples.
- Compute a joint angle from three points, by hand and in code.
- Apply impulse and momentum to a jump, and projectile motion to a throw or a kick.
- Explain a muscle and a joint as a lever, and why a tendon can pull with several times body weight.
- Name the phases of the running stride and compute cadence, step length and duty factor.
- State what a single camera can and cannot measure.

# 3 Mechanics of Movement

Jordan is a 70 kg student, 1.75 m tall, who plays volleyball and runs a few times a week. In week 1 Jordan filmed a jump, as you did in Chapter 1, and the jump app's flight time gave a rise of 0.35 m. This chapter asks what happened in the quarter of a second before Jordan left the ground, and what would have to change for the next jump to go higher. The answer needs four ideas from mechanics: how to describe motion from a series of video frames, how force changes motion, how a body flies once it leaves the ground, and how muscles move bones through levers. Jordan's jump, Jordan's knee and Jordan's running stride carry the examples from start to finish.

The chapter is a crash course. If you have taken physics, the mechanics will be familiar and the anatomy and the sport will be new. If you have studied exercise science, the anatomy will be familiar and the step from video samples to numbers will be new. Each group gets its own boxes; the main text is written for both.

## 3.1 The Body as Linked Segments

Mechanics treats the body as a chain of rigid *segments*—foot, shank, thigh, trunk, upper arm, forearm, hand, head—joined at *joints*. The bones set each segment's length; the joints set how one segment may turn against the next; the muscles, through tendons, supply the turning. The model ignores that segments bend a little and that soft tissue wobbles, and for most sport questions that is a good trade. The bones, joints and major muscles are drawn in the body atlas, Appendix C, with the 17 keypoints a pose model reports marked on it. Keep it open beside this section.

> **Body science: Anatomical position and the names of movements.**
> 
> Anatomists describe every movement from one reference posture, the *anatomical position*: standing upright, feet forward, arms at the sides with the palms facing forward . Three planes cut the body in that posture. The *sagittal plane* divides it into right and left; the *frontal plane* (also called coronal) divides it into front and back; the *transverse plane* divides it into upper and lower parts. *Flexion* decreases the angle between two bones and *extension* increases it; *abduction* moves a limb away from the midline and *adduction* brings it back; *rotation* turns a segment about its own long axis; at the ankle, lifting the forefoot is *dorsiflexion* and pointing the toes is *plantar flexion* .

Each named movement happens mostly in one plane. Table 3.1 pairs the common ones with their plane and with the camera view that sees them face-on. The last column is the one that matters for this book. A camera records a flat picture. It measures a movement well when the movement's plane is parallel to the image, and badly when the movement turns toward or away from the lens.

*Table 3.1. Movements, their planes, and the camera view that sees each plane face-on.*

| Movement (example) | Plane | View that sees it |
|---|---|---|
| Knee flexion and extension (squat, running) | Sagittal | Side |
| Hip flexion (knee drive), trunk lean forward | Sagittal | Side |
| Ankle dorsiflexion and plantar flexion | Sagittal | Side |
| Hip abduction, arm raised sideways | Frontal | Front or behind |
| Pelvis dropping on one side, knee moving inward | Frontal | Front or behind |
| Trunk rotation (golf, throwing), forearm rotation | Transverse | Overhead (rarely possible) |

*Figure 3.1. The three anatomical planes. A side-view camera looks straight at the sagittal plane, which is why most of the apps ask for a side view.*

Two consequences follow, and the chapter returns to both in Section 3.9. First, most of what decides a jump, a sprint or a squat happens in the sagittal plane, so a side view sees most of it. Second, the transverse plane—the rotation of hips and shoulders in a throw or a golf swing—is almost never face-on to a phone, so rotation is the hardest thing for one camera to measure.

## 3.2 Describing Motion

*Kinematics* describes motion without asking what causes it: where a point is, how fast it moves, how fast that speed changes. Video gives you the first of these directly and the other two only by calculation.

### 3.2.1 Position, velocity and acceleration from samples

A pose model returns, for each frame, the position of each keypoint in pixels. With a scale (pixels per meter, Chapter 8) the positions become meters. The frames arrive at a fixed spacing $\Delta t = 1/f$, where $f$ is the capture frame rate: 16.7 ms at 60 fps. So the data are a list $x_0, x_1, x_2, \dots$ at times $0, \Delta t, 2\Delta t, \dots$, not a smooth curve.

*Velocity* is the rate of change of position, and *acceleration* the rate of change of velocity. From samples you estimate them with differences. The *central difference* uses the frames on either side:

$$v_i \approx \frac{x_{i+1}-x_{i-1}}{2\,\Delta t},\qquad
  a_i \approx \frac{x_{i+1}-2x_i+x_{i-1}}{\Delta t^2}.$$

The jump app computes the vertical velocity of the hips in exactly this way, a difference of the positions on either side divided by the time between them (`jump/src/lib/metrics.ts`, function `differentiate`).

> **Engineer's note: Why the central difference.**
> 
> Expand $x(t\pm\Delta t)$ in a Taylor series: $x(t\pm\Delta t)=x\pm\dot x\,\Delta t+\tfrac12\ddot x\,\Delta t^2\pm\tfrac16\dddot x\,\Delta t^3+\dots$. Subtracting the two cancels the even terms, so $[x(t+\Delta t)-x(t-\Delta t)]/2\Delta t=\dot x+\tfrac16\dddot x\,\Delta t^2+\dots$: the error shrinks with $\Delta t^2$. The one-sided difference $[x(t+\Delta t)-x(t)]/\Delta t$ keeps an error proportional to $\Delta t$. Adding the two expansions gives the second difference for acceleration in Equation \eqref{ch03-mechanics:eq:diff}.

One warning belongs here, before any numbers. In an image, the $y$ coordinate counts *down* from the top edge. A hip that rises has a falling $y$. Code that forgets this reports an upward takeoff velocity as negative; the jump app flips the sign on purpose (the `invertSign` argument of `differentiate`). Angles between segments, which come next, do not care which way $y$ points.

### 3.2.2 The angle from three points

A joint angle needs three keypoints: one on each segment and one at the joint. For the knee, take hip $A$, knee $B$ and ankle $C$. Form the two vectors that leave the joint, $\vec{u}=A-B$ toward the hip and $\vec{w}=C-B$ toward the ankle. The dot product $\vec u\cdot\vec w=|\vec u|\,|\vec w|\cos\theta$ gives the *included angle* $\theta$ at $B$:

$$\theta=\arccos\!\left(\frac{u_xw_x+u_yw_y}{\sqrt{u_x^2+u_y^2}\,\sqrt{w_x^2+w_y^2}}\right).$$

A straight leg gives 180 °; a deep squat gives a small angle. Clinicians usually report *flexion* instead, $180^\circ-\theta$, which is zero for a straight leg. Both are correct; always say which one you mean.

*Figure 3.2. The knee angle from three points in image coordinates, with $y$ counting down. The vectors $ u$ and $ w$ leave the knee toward the hip and the ankle; $$ is the included angle between them.*

**Example 3.1: Jordan's knee angle by hand.**
\label{ch03-mechanics:ex:knee}
In one frame of Jordan's jump, the pose model puts the hip at $(0.50, 0.40)$, the knee at $(0.55, 0.60)$ and the ankle at $(0.48, 0.80)$, in units of the frame width (Figure~\ref{ch03-mechanics:fig:angle}). Then $\vec u=(0.50-0.55,\ 0.40-0.60)=(-0.05,-0.20)$ and $\vec w=(0.48-0.55,\ 0.80-0.60)=(-0.07,\ 0.20)$. The dot product is $(-0.05)(-0.07)+(-0.20)(0.20)=0.0035-0.0400=-0.0365$. The lengths are $|\vec u|=\sqrt{0.0025+0.04}=0.2062$ and $|\vec w|=\sqrt{0.0049+0.04}=0.2119$. So $\cos\theta=-0.0365/(0.2062\times0.2119)=-0.8356$ and $\theta=\SI{146.7}{\degree}$: a flexion of \SI{33.3}{\degree}. The units of the points do not matter, because the lengths divide out; the same frame in pixels gives the same angle.

> **Try it in the app: Confirm it in the canvas app.**
> 
> Open the canvas app, load any side-view clip, and select *New calculation*. Type `angle(left_hip, left_knee, left_ankle)`. The app evaluates the same arccos of the normalized dot product, Equation \eqref{ch03-mechanics:eq:angle} (`canvas/src/lib/formula.ts`). Fed Jordan's three points, it returns 146.7 °. It marks the result “2D projection-sensitive”, a warning this chapter explains in Section 3.9.
> 
> 
> https://apopt.com/canvas/

The same calculation is five lines of Python. Listing~\ref{ch03-mechanics:lst:angle} is the function the rest of the book reuses.

**Listing 3.1.** The angle from three points (`code/angle.py`). (`code/angle.py`)

```python
import numpy as np

def angle(a, b, c):
    """Included angle at b (degrees) between the segments b->a and b->c."""
    ba = np.asarray(a, float) - np.asarray(b, float)
    bc = np.asarray(c, float) - np.asarray(b, float)
    cos = ba @ bc / (np.linalg.norm(ba) * np.linalg.norm(bc))
    return np.degrees(np.arccos(np.clip(cos, -1.0, 1.0)))

if __name__ == "__main__":
    hip, knee, ankle = (0.50, 0.40), (0.55, 0.60), (0.48, 0.80)
    k = angle(hip, knee, ankle)
    print(f"knee included angle {k:.1f} deg, flexion {180 - k:.1f} deg")
    print(f"straight leg {angle((0, 0), (0, 1), (0, 2)):.1f} deg")
    print(f"same points in pixels {angle((500, 400), (550, 600), (480, 800)):.1f} deg")
```

```text
knee included angle 146.7 deg, flexion 33.3 deg
straight leg 180.0 deg
same points in pixels 146.7 deg
```

The \texttt{np.clip} line is not decoration. Rounding can push the cosine of a straight leg to $1.0000000000000002$, and the arccos of that is \emph{not a number}. Every app in the course clamps the cosine the same way.

### 3.2.3 Angular velocity

The \term{angular velocity} of a joint is the rate of change of its angle, $\omega=\Delta\theta/\Delta t$, in degrees or radians per second. If Jordan's knee opens from \SI{90}{\degree} at the bottom of the dip to \SI{170}{\degree} at takeoff in \SI{0.25}{\second}, the mean angular velocity is $80/0.25=\SI{320}{\degree\per\second}$, or \SI{5.6}{\radian\per\second}. A segment of length $r$ turning at $\omega$ (in radians per second) moves its far end at speed $v=\omega r$, the link between turning joints and a moving body.

### 3.2.4 What noise does to a derivative
\label{ch03-mechanics:sec:noise}

A pose model never puts a keypoint in exactly the right place. From frame to frame the dot jitters by a few pixels even when the athlete is still. Differentiation magnifies that jitter, and it magnifies it more the faster you film.

Here is why. Suppose each position carries an independent error with standard deviation $\sigma$. The central difference subtracts two such errors, whose difference has standard deviation $\sqrt2\,\sigma$, and divides by $2\Delta t$:

$$\sigma_v=\frac{\sqrt2 \sigma}{2 \Delta t}=\frac{\sigma}{\sqrt2 \Delta t},\sigma_a=\frac{\sqrt{1+4+1}\;\sigma}{\Delta t^2}=\frac{\sqrt6 \sigma}{\Delta t^2}.$$

At \SI{60}{\fps} with $\sigma=\SI{5}{\milli\metre}$, the velocity noise is \SI{0.21}{\metre\per\second} and the acceleration noise is \SI{44}{\metre\per\second\squared}: four and a half times the acceleration of gravity, made of nothing. Doubling the frame rate halves $\Delta t$, which doubles the velocity noise and quadruples the acceleration noise. Faster filming times events better (\chref{ch08-pose}) and differentiates worse, unless you smooth.

Listing~\ref{ch03-mechanics:lst:noise} tests this on a case with a known answer: the hips of Jordan's jump in free flight, where the only acceleration is gravity, \SI{-9.81}{\metre\per\second\squared}.

**Listing 3.2.** Noise amplification in numerical derivatives (`code/derivative_noise.py`). (`code/derivative_noise.py`)

```python
import numpy as np
from scipy.signal import savgol_filter

g, v0, fps, sigma = 9.81, 2.62, 60.0, 0.005      # sigma: 5 mm of keypoint jitter
dt = 1 / fps
t = np.arange(0, 2 * v0 / g, dt)                  # one flight, 60 samples a second
y_true = v0 * t - 0.5 * g * t**2
rng = np.random.default_rng(3)
y = y_true + rng.normal(0, sigma, t.size)

v = (y[2:] - y[:-2]) / (2 * dt)                   # central difference
a = (y[2:] - 2 * y[1:-1] + y[:-2]) / dt**2        # second difference
v_err = v - (v0 - g * t[1:-1])
print(f"{t.size} samples; position noise {sigma*1000:.0f} mm")
print(f"velocity noise {v_err.std():.2f} m/s (theory {sigma/(np.sqrt(2)*dt):.2f})")
print(f"acceleration noise {a.std():.0f} m/s^2 (theory {sigma*np.sqrt(6)/dt**2:.0f}),"
      f" mean {a.mean():.1f}")

a_sg = savgol_filter(y, window_length=11, polyorder=2, deriv=2, delta=dt)
print(f"Savitzky-Golay (11 points): acceleration {a_sg.mean():.2f} m/s^2,"
      f" spread {a_sg.std():.2f}")
c = np.polyfit(t, y, 2)                            # one parabola for the whole flight
print(f"parabola fit: acceleration {2 * c[0]:.2f} m/s^2")
```

```text
33 samples; position noise 5 mm
velocity noise 0.22 m/s (theory 0.21)
acceleration noise 50 m/s^2 (theory 44), mean -6.5
Savitzky-Golay (11 points): acceleration -9.46 m/s^2, spread 1.54
parabola fit: acceleration -9.82 m/s^2
```

The raw second difference swings by \SI{50}{\metre\per\second\squared} around a mean that is not even close to gravity. A \term{Savitzky--Golay filter} fits a short polynomial to each window of 11 samples and differentiates the polynomial instead of the data~\cite{ch03-mechanics:savitzky1964smoothing}; it recovers \SI{-9.46}{\metre\per\second\squared} with a spread of \SI{1.5}{\metre\per\second\squared}. Fitting one parabola to the whole flight, which uses the physics as well as the data, recovers \SI{-9.82}{\metre\per\second\squared}. Figure~\ref{ch03-mechanics:fig:noise} shows the same story. The lesson is standard in biomechanics texts: filter, or fit a model, before you differentiate~\cite{ch03-mechanics:winter2009biomechanics}. The apps smooth their keypoints before they differentiate them, and \chref{ch04-python} shows you how to choose a filter.

*Figure 3.3. Velocity and acceleration of the hips during one flight, from positions with 5 mm of noise at 60 fps. The velocity is usable; the raw acceleration is not. Data: `data/noise_flight.csv`, made by `code/make_data.py`.*

## 3.3 Force and Impulse
\label{ch03-mechanics:sec:force}

\term{Kinetics} asks what causes motion. The answer is force, and three laws written by Newton carry almost the whole of sport mechanics.

- A body keeps its velocity unless a net force acts on it. In flight, nothing but gravity acts on Jordan (air drag on a jumper is negligible), so nothing Jordan does in the air can change the path of Jordan's center of mass.

- The net force equals mass times acceleration, $F_\text{net}=ma$. Force is measured in newtons: one newton accelerates one kilogram by \SI{1}{\metre\per\second\squared}.

- Forces come in pairs. When Jordan's feet push down and back on the floor, the floor pushes up and forward on Jordan with an equal force. That push is the \term{ground reaction force}, and it is the only external force besides gravity that can lift Jordan.

Body weight is the force of gravity on the body, $mg$. For Jordan it is $70\times9.81=\SI{687}{\newton}$. Standing still, the floor pushes up with \SI{687}{\newton} and the net force is zero. To accelerate upward, the floor must push with \emph{more} than body weight. Sport scientists often divide ground force by body weight and quote it in \term{body weights}: \SI{1420}{\newton} on Jordan is \num{2.07} body weights.

### 3.3.1 Impulse and the change of momentum

\term{Momentum} is mass times velocity, $p=mv$. Newton's second law can be read over a time interval instead of an instant: the net force multiplied by the time it acts, the \term{impulse}, equals the change of momentum,

$$\int (F-mg) dt = m v_takeoff-m v_start.$$

This is how a force platform measures a jump: integrate the measured force minus body weight over the push, and the result is the takeoff momentum~\cite{ch03-mechanics:linthorne2001analysis}. Without a force platform you can run the relation backward. The rise in flight tells you the takeoff speed; the duration of the push tells you the mean force.

**Example 3.2: How hard did Jordan push?.**
\label{ch03-mechanics:ex:force}
Jordan's center of mass rose $h=\SI{0.35}{\metre}$. In flight the body rises against gravity alone, so the takeoff speed obeys $\tfrac12mv^2=mgh$:

$$v=\sqrt{2gh}=\sqrt{2×9.81×0.35}=2.62 m/s.$$

From the video, the upward push---from the lowest point of the dip to takeoff---lasted $t=\SI{0.25}{\second}$, starting from rest. By Equation~\eqref{ch03-mechanics:eq:impulse} the mean ground force over the push is

$$\bar F=\frac{mv}{t}+mg=\frac{70×2.62}{0.25}+70×9.81=734+687=1420 N,$$

or $1420/687=\num{2.07}$ body weights. About half of the force holds Jordan up; the other half accelerates Jordan.

Two readings of this example matter for training. First, height depends on takeoff speed squared, $h=v^2/2g$, so a \SI{10}{\percent} faster takeoff gives a \SI{21}{\percent} higher jump. Second, takeoff speed equals impulse divided by mass. More force, a longer push, or less mass each raise it; which one a given athlete can change is a coaching question, not a physics one. The mean force is a mean: the real force rises and falls during the push, and its peak is higher.

### 3.3.2 Work, energy and power

\term{Work} is force times the distance moved in the direction of the force, $W=Fd$, in joules. It changes the body's \term{kinetic energy} $\tfrac12mv^2$ and its \term{potential energy} $mgh$. \term{Power} is work per unit time, $P=W/t$, in watts.

If Jordan's \SI{1420}{\newton} were steady, the center of mass would accelerate uniformly from rest to \SI{2.62}{\metre\per\second}, covering $d=\tfrac12vt=\SI{0.328}{\metre}$ during the push. The legs then do $W=1420\times0.328=\SI{465}{\joule}$ of work. The energy books balance: \SI{240}{\joule} became kinetic energy and \SI{225}{\joule} lifted the body \SI{0.328}{\metre} before takeoff. The mean power over the push is $465/0.25=\SI{1861}{\watt}$. Listing~\ref{ch03-mechanics:lst:jump} repeats the arithmetic.

**Listing 3.3.** Takeoff speed, mean force, work and power (`code/jump_impulse.py`). (`code/jump_impulse.py`)

```python
import math
g, m = 9.81, 70.0          # m/s^2, kg
h, t_push = 0.35, 0.25     # jump height (m), push duration (s)

v = math.sqrt(2 * g * h)               # takeoff speed from the rise
t_flight = 2 * v / g                   # up and down, same posture
F = m * v / t_push + m * g             # mean ground force over the push
d = v * t_push / 2                     # push distance if the force were steady
W = F * d                              # work done by the legs
print(f"takeoff speed {v:.2f} m/s, flight {t_flight:.3f} s")
print(f"mean force {F:.0f} N = {F / (m * g):.2f} body weights")
print(f"push distance {d:.3f} m, work {W:.0f} J, mean power {W / t_push:.0f} W")
print(f"check: kinetic {0.5 * m * v**2:.0f} J + potential {m * g * d:.0f} J")
```

```text
takeoff speed 2.62 m/s, flight 0.534 s
mean force 1420 N = 2.07 body weights
push distance 0.328 m, work 465 J, mean power 1861 W
check: kinetic 240 J + potential 225 J
```

> **Body science: Why a countermovement helps.**
> 
> Jordan dipped before jumping. The dip stretches the active knee and hip extensors and the Achilles tendon just before they shorten, the stretch–shortening cycle of Chapter 2. Force is already high when the upward push begins, so the impulse over the push is larger. Comparing a jump with a dip to a jump from a held squat (Chapter 10) shows how much the dip adds for you.

## 3.4 Flight
\label{ch03-mechanics:sec:flight}

Once the feet leave the ground, the athlete, the shot, the ball and the javelin all obey the same rule: horizontal velocity stays constant, and vertical velocity falls by $g=\SI{9.81}{\metre\per\second\squared}$ every second. The path is a \term{parabola}. Air drag bends it a little for a ball and a great deal for a javelin or a discus, which also generate lift; for a body or a shot the parabola is close.

### 3.4.1 Flight of the body: height from flight time

If the body leaves and returns to the ground in the same posture, the rise takes half the flight time $t$, and $h=\tfrac12g(t/2)^2$:

$$h=\frac{g t^2}{8}.$$

Jordan's \SI{2.62}{\metre\per\second} takeoff gives a flight of $2v/g=\SI{0.534}{\second}$, and Equation~\eqref{ch03-mechanics:eq:flight} returns the \SI{0.35}{\metre}. The jump app uses this formula with the standard gravity \SI{9.80665}{\metre\per\second\squared}, in the function \texttt{jumpHeightFromFlight} of \texttt{jump/src/lib/flight-time.ts}. Feeding it a flight of \SI{0.5343}{\second} returns \SI{0.350}{\metre}; a flight of \SI{0.50}{\second} returns \SI{0.306}{\metre}, where $g=9.81$ gives \SI{0.307}{\metre}. With its default pose model, which has no toe points, the app times takeoff and touchdown where the ankle's motion breaks sharply; with a model that has toes, it counts the feet as airborne only once they clear the floor by \SI{4}{\centi\metre} and corrects the observed flight for that clearance ; \chref{ch10-skill} works through the correction.

> **Check it by hand: Count the frames.**
> 
> At 60 fps, a 0.534 s flight is $0.534\times60=32$ frames. Step through your own clip, count the frames between the last frame with a foot on the floor and the first frame with a foot back on it, divide by the capture frame rate, and put the result in Equation \eqref{ch03-mechanics:eq:flight}. One frame of error at 60 fps changes a 0.534 s flight by 3 % and the height by twice that, 6 %.

### 3.4.2 Flight of a ball

A ball released with speed $v$ at angle $\theta$ above the horizontal has horizontal velocity $v_x=v\cos\theta$ and vertical velocity $v_y=v\sin\theta$. If it lands at the height it was released from, it is in the air for $2v_y/g$ and travels

$$R_0=\frac{2v_xv_y}{g}=\frac{v^2\sin2\theta}{g},$$

which is largest at $\theta=\SI{45}{\degree}$, where $\sin2\theta=1$.

**Example 3.3: A kicked ball.**
\label{ch03-mechanics:ex:kick}
A ball kicked from the ground at \SI{20}{\metre\per\second} and \SI{30}{\degree}, with no air drag, carries $20^2\times\sin60^\circ/9.81=400\times0.866/9.81=\SI{35.3}{\metre}$. At \SI{45}{\degree} it would carry \SI{40.8}{\metre}. A real ball carries less, because drag acts on it the whole way.

### 3.4.3 Why the best release angle is below 45 degrees

A shot-putter does not release from the ground. The shot leaves the hand about \SI{2}{\metre} up and lands on the ground. Released at height $h$ above the landing, the ball falls for longer than it rose, and the range becomes

$$R=\frac{v_x\left(v_y+\sqrt{v_y^2+2gh}\right)}{g}.$$

For $h=0$ this reduces to Equation~\eqref{ch03-mechanics:eq:range0}. For $h>0$ the best angle is no longer \SI{45}{\degree}. The extra fall time adds distance in proportion to the horizontal speed, so it pays to trade a little height of release angle for more horizontal speed. The optimum $\theta^*$ satisfies

$$\sin\theta^*=\frac{1}{\sqrt{2+2gh/v^2}},R^*=\frac{v^2}{g\tan\theta^*},$$

the answer to the problem Lichtenberg and Wills posed for the shot put~\cite{ch03-mechanics:lichtenberg1978maximizing}.

> **Engineer's note: Deriving the optimum angle.**
> 
> The path is $y=x\tan\theta-gx^2/(2v^2\cos^2\theta)$, and the ball lands where $y=-h$ at $x=R$. Differentiate this landing condition with respect to $\theta$, holding $R$ at its maximum (so $dR/d\theta=0$): $R\sec^2\theta-gR^2\tan\theta\sec^2\theta/v^2=0$, which gives $R=v^2/(g\tan\theta)$. Put that back into the landing condition: $v^2/g-v^2/(2g\sin^2\theta)=-h$. Rearranging, $\sin^2\theta=1/(2+2gh/v^2)$. When $h=0$, $\sin\theta=1/\sqrt2$ and $\theta=45 °$.

A formula derived by hand deserves a numerical check. Listing~\ref{ch03-mechanics:lst:release} searches every angle from \SI{20}{\degree} to \SI{60}{\degree} in steps of \SI{0.01}{\degree} and compares the best one with Equation~\eqref{ch03-mechanics:eq:optimum}.

**Listing 3.4.** The optimum release angle, by formula and by search (`code/release_angle.py`). (`code/release_angle.py`)

```python
import numpy as np
g = 9.81

def rng(v, theta_deg, h):
    """Horizontal range of a projectile released h metres above the landing."""
    th = np.radians(theta_deg)
    vx, vy = v * np.cos(th), v * np.sin(th)
    return vx * (vy + np.sqrt(vy**2 + 2 * g * h)) / g

def best_formula(v, h):          # sin(theta*) = 1 / sqrt(2 + 2 g h / v^2)
    return np.degrees(np.arcsin(1 / np.sqrt(2 + 2 * g * h / v**2)))

angles = np.arange(20, 60.001, 0.01)
for v, h in [(20, 0.0), (13, 2.1), (8, 2.0)]:
    R = rng(v, angles, h)
    i = R.argmax()
    print(f"v={v:4.1f} h={h:3.1f}: search {angles[i]:.2f} deg, R={R[i]:.2f} m; "
          f"formula {best_formula(v, h):.2f} deg; 45 deg gives {rng(v, 45, h):.2f} m")
print(f"kick 20 m/s at 30 deg from the ground: {rng(20, 30, 0):.1f} m")

# release speed that falls 1.7 (m/s) per radian above 30 degrees
v_th = 13 - 1.7 * np.radians(angles - 30)
R = rng(v_th, angles, 2.1)
print(f"speed falls with angle: best {angles[R.argmax()]:.1f} deg, R={R.max():.2f} m")
```

```text
v=20.0 h=0.0: search 45.00 deg, R=40.77 m; formula 45.00 deg; 45 deg gives 40.77 m
v=13.0 h=2.1: search 41.88 deg, R=19.21 m; formula 41.88 deg; 45 deg gives 19.12 m
v= 8.0 h=2.0: search 38.22 deg, R=8.29 m; formula 38.22 deg; 45 deg gives 8.13 m
kick 20 m/s at 30 deg from the ground: 35.3 m
speed falls with angle: best 37.5 deg, R=18.46 m
```

The search and the formula agree to the hundredth of a degree. For a shot released at \SI{13}{\metre\per\second} from \SI{2.1}{\metre}, the geometry alone moves the optimum from \SI{45}{\degree} to \SI{41.9}{\degree}. The slower the release, the larger the height counts and the lower the optimum: at \SI{8}{\metre\per\second} from \SI{2.0}{\metre} it is \SI{38.2}{\degree}.

The bigger effect comes from the athlete, not from the geometry. Measurements on shot-putters show that achievable release speed falls as the release angle rises, by about \SI{1.7}{\metre\per\second} per radian~\cite{ch03-mechanics:hubbard2001dependence}: the body is stronger pushing forward than pushing up. The last line of Listing~\ref{ch03-mechanics:lst:release} builds that in, starting from \SI{13}{\metre\per\second} at \SI{30}{\degree}, and the optimum falls to \SI{37.5}{\degree}. Linthorne combined the range equation with each athlete's own speed--angle relation in this way and found the calculated optimum close to the angle each shot-putter preferred~\cite{ch03-mechanics:linthorne2001optimum}; the same method explains long-jump takeoff angles, where take-off speed falls steeply as the angle rises~\cite{ch03-mechanics:linthorne2005optimum}. Figure~\ref{ch03-mechanics:fig:range} shows all three curves. Notice how flat the tops are: a few degrees either side of the optimum cost only centimeters, so a coach chasing the ``perfect angle'' is usually chasing the wrong number. Release speed is worth far more.

*Figure 3.4. Range of a shot released at 13 m/s, without drag. Squares mark the optimum of each curve: 45 °, 41.9 ° and 37.5 °. Data: `data/range_vs_angle.csv`.*

### 3.4.4 Predicting the whole arc
\label{ch03-mechanics:sec:arc}

Flight time gives one number, the height. The takeoff velocity gives the whole path. Once the feet leave the ground, the center of mass moves as

$$x(t)=x_0+v_x t,y(t)=y_0+v_y t-\tfrac12 g t^2,$$

where $(x_0,y_0)$ is its position at takeoff and $(v_x,v_y)$ its velocity. You can get the velocity from the last frames before the feet leave (Section~\ref{ch03-mechanics:sec:kinematics}, with the noise that differencing brings) or from the push, as in Example~\ref{ch03-mechanics:ex:force}. Either way, you can write the prediction down \emph{before} you look at the tracked points, and then compare. That is the habit this section builds: predict, measure, compare, and explain the gap.

**Example 3.4: Jordan's arc, frame by frame.**
\label{ch03-mechanics:ex:arc}
Jordan leaves the floor straight up at $v_y=\SI{2.62}{\metre\per\second}$. The center of mass stops rising when $v_y-gt=0$, at $t=2.62/9.81=\SI{0.267}{\second}$, and it is then $v_y^2/2g=\SI{0.350}{\metre}$ above its takeoff height. It is back at that height at \SI{0.534}{\second}. At \SI{60}{\fps} the flight covers frames 0 to 32 and the top is frame 16. *Checkpoint:* {at every fourth frame the predicted heights are 0, 0.15, 0.26, 0.33, 0.35, 0.33, 0.26, 0.15 and \SI{0}{\metre}.} Listing~\ref{ch03-mechanics:lst:arc} prints them.

Now lay the prediction over the hip midpoint that a pose model tracks, frame by frame, and plot the difference. Expect a gap with a shape. The hip midpoint is not the center of mass (Section~\ref{ch03-mechanics:sec:com}). With the same segment fractions as Listing~\ref{ch03-mechanics:lst:com}, raising both straight arms overhead lifts the center of mass \SI{5.8}{\centi\metre} relative to the hips, and pulling the knees up toward the chest lifts it about \SI{9}{\centi\metre}. So if Jordan swings the arms up or tucks during the flight, the hips rise less than the predicted parabola and sag below it near the top, by about that much, and the gap closes again as the limbs come back for landing. The same posture change in every jump gives the same gap every time. A gap that changes shape from jump to jump is noise or a tracking fault. A gap that is the same in every jump is the body, and it tells you how much of the hip track is technique.

### 3.4.5 The horizontal jump
\label{ch03-mechanics:sec:hjump}

In a standing or running long jump the mark is measured from the takeoff line to the nearest mark in the landing area, so the distance has three parts:

$$d=d_takeoff+d_flight+d_landing.$$

At takeoff the body leans forward, so the center of mass is already ahead of the toes by $d_\text{takeoff}$. In flight it travels $d_\text{flight}$, given by Equation~\eqref{ch03-mechanics:eq:range} with $h$ the drop from its takeoff height to its height at touchdown. At touchdown the heels reach ahead of it by $d_\text{landing}$. The first and last parts are posture; the middle one is projectile motion.

The optimum-angle argument of Section~\ref{ch03-mechanics:sec:flight} carries over from the shot to the body, with one change of size. A jumper can push much harder along the run than straight up, so takeoff speed falls quickly as the takeoff angle rises. For long jumpers who took off at a range of angles on purpose, takeoff speed fell and takeoff height rose as the angle increased, and the optimum calculated from each athlete's own relations matched the angles they used in competition~\cite{ch03-mechanics:linthorne2005optimum}.

**Listing 3.5.** The arc of a jump, and a standing long jump with speed that falls as the angle rises (`code/arc_jump.py`). (`code/arc_jump.py`)

```python
# Predict the whole arc of a jump from its takeoff velocity (no drag).
import numpy as np
g, fps = 9.81, 60
v = 2.62                                  # Jordan's takeoff speed, straight up (m/s)
t = np.arange(0, 2 * v / g, 1 / fps)      # one sample per frame until landing
y = v * t - 0.5 * g * t**2                # center of mass above its takeoff height
k = np.argmax(y)
print(f"apex {v**2 / (2 * g):.3f} m at {v / g:.3f} s; flight {2 * v / g:.3f} s")
print(f"{len(t)} frames in the air; highest frame {k}, {y[k]:.3f} m")
print("height (m) every 4th frame:", np.round(y[::4], 2))

def distance(angle, v0=3.2, k=1.7, lean=0.30, reach=0.45, drop=0.35):
    a = np.radians(angle)
    s = v0 - k * (a - np.radians(30))     # assumed: speed falls as angle rises
    vx, vy = s * np.cos(a), s * np.sin(a)
    flight = vx * (vy + np.sqrt(vy**2 + 2 * g * drop)) / g
    return lean + flight + reach, flight, s

for angle in (20, 30, 45):
    d, f, s = distance(angle)
    print(f"{angle} deg: speed {s:.2f} m/s, flight {f:.2f} m, jump {d:.2f} m")
a = np.arange(5, 60, 0.01)
best = a[np.argmax(distance(a)[0])]
print(f"best {best:.1f} deg, jump {distance(best)[0]:.2f} m")
```

```text
apex 0.350 m at 0.267 s; flight 0.534 s
33 frames in the air; highest frame 16, 0.350 m
height (m) every 4th frame: [0.   0.15 0.26 0.33 0.35 0.33 0.26 0.15 0.  ]
20 deg: speed 3.50 m/s, flight 1.37 m, jump 2.12 m
30 deg: speed 3.20 m/s, flight 1.32 m, jump 2.07 m
45 deg: speed 2.75 m/s, flight 1.04 m, jump 1.79 m
best 21.6 deg, jump 2.12 m
```

The second half of Listing~\ref{ch03-mechanics:lst:arc} is a standing long jump with assumed numbers: a lean of \SI{0.30}{\metre}, a landing reach of \SI{0.45}{\metre}, a center of mass that drops \SI{0.35}{\metre} between takeoff and touchdown, and a takeoff speed of \SI{3.2}{\metre\per\second} at \SI{30}{\degree} that falls by \SI{1.7}{\metre\per\second} per radian of extra angle, the shot-putters' slope borrowed for illustration. The best angle comes out at \SI{21.6}{\degree}, far below \SI{45}{\degree}, and \SI{45}{\degree} costs \SI{33}{\centi\metre}. The slope is invented; the shape of the result is not. Lean and reach together are \SI{0.75}{\metre} of the \SI{2.07}{\metre} jump at \SI{30}{\degree}, which is why landing technique is coached at all.

## 3.5 Levers and Muscles
\label{ch03-mechanics:sec:levers}

A muscle pulls along a line; a joint turns. The bridge between them is the \term{moment}, or torque: a force $F$ whose line of action passes a distance $d$ from the joint center turns the segment with moment $M=Fd$. The distance $d$, measured perpendicular to the line of the force, is the \term{moment arm}. A door handle far from the hinge needs a small force; the same door pushed near the hinge needs a large one.

A segment is in rotational balance when the moments about the joint cancel. That simple statement explains a fact that surprises most engineers: tendons routinely carry several times body weight.

*Figure 3.5. The ankle as a lever during push-off. The ground pushes up under the forefoot at distance $d_G$ in front of the ankle; the Achilles tendon pulls up on the heel at a much shorter distance $d_T$ behind it.*

**Example 3.5: The Achilles tendon at push-off.**
\label{ch03-mechanics:ex:achilles}
Late in the stance of a run, Jordan is on the ball of one foot (Figure~\ref{ch03-mechanics:fig:lever}). Suppose the ground pushes up with $F_G=2.5$ body weights at $d_G=\SI{13}{\centi\metre}$ in front of the ankle, and the Achilles tendon attaches $d_T=\SI{5}{\centi\metre}$ behind it. Ignoring the small mass of the foot, the moments about the ankle balance: $F_Td_T=F_Gd_G$, so

$$F_T=F_G \frac{d_G}{d_T}=2.5×\frac{13}{5}=6.5 body weights=6.5×687=4.5 kN.$$

The ankle joint itself is squeezed by roughly the tendon force plus the ground force, about nine body weights. These are assumed round numbers, but the answer is of the size a model of real running found: peak Achilles tendon forces of 6.1 to 8.2 body weights and ankle compression of 10.3 to 14.1~\cite{ch03-mechanics:scott1990internal}.

The ankle in this example is a lever with a short input arm and a long output arm. It is at a mechanical disadvantage for force, by a factor $d_T/d_G=0.38$, and at a matching advantage for speed and range: when the tendon shortens by \SI{1}{\centi\metre}, the ball of the foot moves $13/5=2.6$ times as far. Most joints in the body are built this way. Muscles are strong and slow; segments are long and fast. The price is that muscle and tendon forces are large multiples of the external load, which is why a tendon's loading is a training question (\chref{ch02-system}). Moment arms also change as a joint turns, so the same muscle force produces a different moment at different joint angles, one reason strength depends on the angle at which it is tested.

> **Limits and cautions: A model, not a measurement.**
> 
> The moment-arm calculation estimates an internal force from an external one. It is a teaching model with assumed numbers. Nothing in this course measures tendon force, and no app result is evidence of a tendon's health.

## 3.6 Center of Mass
\label{ch03-mechanics:sec:com}

The \term{center of mass} is the point where the body's mass can be treated as concentrated: the mass-weighted mean position of all its parts. For a set of segments with masses $m_i$ and segment centers $\vec r_i$,

$$\vec r_CoM=\frac{\sum_i m_i \vec r_i}{\sum_i m_i}.$$

Newton's second law applies to the center of mass of the whole body as if all the mass were there and all the external forces acted on it. That is the reason Section~\ref{ch03-mechanics:sec:force} could treat Jordan as a single point.

To use Equation~\eqref{ch03-mechanics:eq:com} you need two numbers per segment: its share of body mass, and where its own center lies along its length. These come from cadaver and body-scanning studies. One widely used set, adjusted so the segment ends sit at joint centers, gives for young adult men: thigh \SI{14.16}{\percent} of body mass, with its center \SI{40.95}{\percent} of the way from hip to knee; shank \SI{4.33}{\percent}, \SI{43.95}{\percent} from knee to ankle; trunk \SI{43.46}{\percent}~\cite{ch03-mechanics:deleva1996adjustments}. The same study gives separate values for women. Listing~\ref{ch03-mechanics:lst:com} places each segment's center between two keypoints and averages them for a standing and a crouched posture.

**Listing 3.6.** Whole-body center of mass from keypoints (`code/body_com.py`). (`code/body_com.py`)

```python
import numpy as np
# (proximal, distal, mass share, CoM share from proximal); adult men, de Leva (1996)
SEG = [("shoulder", "hip", 0.4346, 0.4486), ("shoulder", "elbow", 2 * 0.0271, 0.5772),
       ("elbow", "wrist", 2 * 0.0162, 0.4574), ("hip", "knee", 2 * 0.1416, 0.4095),
       ("knee", "ankle", 2 * 0.0433, 0.4395), ("ankle", "toe", 2 * 0.0137, 0.4415)]
POINT = [("ear", 0.0694), ("wrist", 2 * 0.0061)]   # head and hands as point masses

def com(p):
    p = {k: np.asarray(v, float) for k, v in p.items()}
    parts = [(m, p[a] + f * (p[b] - p[a])) for a, b, m, f in SEG]
    parts += [(m, p[k]) for k, m in POINT]
    mass = sum(m for m, _ in parts)
    return sum(m * r for m, r in parts) / mass, mass

stand = dict(ear=(0, 1.62), shoulder=(0, 1.45), elbow=(0, 1.16), wrist=(0, 0.90),
             hip=(0, 0.95), knee=(0, 0.52), ankle=(0, 0.08), toe=(0.18, 0))
crouch = dict(ear=(0.40, 1.10), shoulder=(0.28, 0.98), elbow=(0, 0.95),
              wrist=(-0.24, 1.03), hip=(-0.08, 0.63), knee=(0.32, 0.45),
              ankle=(0.08, 0.08), toe=(0.26, 0))
for name, p in [("standing", stand), ("crouch", crouch)]:
    c, mass = com(p)
    h = p["hip"]
    print(f"{name:8s} CoM ({c[0]:+.2f}, {c[1]:.2f}) m; hip ({h[0]:+.2f}, {h[1]:.2f}) m;"
          f" masses sum to {mass:.3f}")
```

```text
standing CoM (+0.00, 1.01) m; hip (+0.00, 0.95) m; masses sum to 1.000
crouch   CoM (+0.13, 0.71) m; hip (-0.08, 0.63) m; masses sum to 1.000
```

Standing, the center of mass sits \SI{6}{\centi\metre} above the hip joints, at about \SI{58}{\percent} of Jordan's height. In the crouch with the trunk tipped forward and the arms swung back, it sits \SI{8}{\centi\metre} above and \SI{21}{\centi\metre} in front of the hip midpoint. The center of mass does not belong to any bone. It moves inside the body, and when the body bends far enough it can lie outside it, as it does for a high jumper arched over the bar.

The jump app uses the midpoint of the two hips as its center-of-mass proxy; its source sets \texttt{centerOfMass} to the \texttt{midpoint} of the left and right hip keypoints. That is a sound choice when the posture at the two moments being compared is the same, because the offset cancels. It is weaker when the posture changes between them: if the arms are overhead at the top of the jump and down at the start, the true center of mass rises a few centimeters more than the hips do.

> **Key idea.**
> 
> In flight, the center of mass follows a parabola, whatever the arms and legs do. Tucking the knees at the top of a jump raises the feet relative to the center of mass and makes the athlete look as if they hang in the air; the center of mass itself stays on its parabola. Only the ground can change it.

## 3.7 The Running Stride
\label{ch03-mechanics:sec:stride}

Running is a repeated series of small jumps from one leg to the other. A \term{stride} (or gait cycle) runs from one foot's contact with the ground to that same foot's next contact. It holds two \term{steps}, one for each foot. Each foot's cycle has a \term{stance} phase, when the foot is on the ground, and a \term{swing} phase, when it is in the air. In running, the two feet are both off the ground twice in each stride, the \term{flight} phases; walking never has flight and instead has two periods of \term{double support} when both feet are down~\cite{ch03-mechanics:novacheck1998biomechanics}.

The words matter because the numbers are built from them:

$$cadence  c &= \frac{60}{t_step} steps/min,step length  L = \frac{60 v}{c},

  duty factor  D &= \frac{t_contact}{t_stride},t_stride=2 t_step,t_flight=t_step-t_contact.$$

The running app computes these exactly this way: cadence as 60 over the step duration, step length as speed times 60 over cadence, and duty factor as contact time over stride time times 100, with a stride of $120/c$ seconds when strides cannot be timed directly (\texttt{form/src/lib/metrics.ts}).

**Example 3.6: Jordan's easy run.**
\label{ch03-mechanics:ex:stride}
Jordan runs at \SI{3.5}{\metre\per\second} with a cadence of \SI{172}{\spm} and a ground contact time of \SI{0.25}{\second}. The step time is $60/172=\SI{0.349}{\second}$. The step length is $3.5\times60/172=\SI{1.22}{\metre}$. The stride time is $2\times0.349=\SI{0.698}{\second}$, so the duty factor is $0.25/0.698=\SI{35.8}{\percent}$: each foot is on the ground for a bit more than a third of the cycle. The flight in each step lasts $0.349-0.25=\SI{0.099}{\second}$.

> **Check it by hand: Step length with a tape and a count.**
> 
> Tape a 20 m stretch, run through it at your easy pace, and count steps. Twenty meters in 16.4 steps is a step length of 1.22 m. The running app, given your speed and its measured cadence, should agree to within a few centimeters.

\term{Vertical oscillation} is the up-and-down range of the center of mass in each step. Part of it comes from the flight: in Jordan's \SI{0.099}{\second} of flight the center of mass falls $\tfrac12g(0.099/2)^2=\SI{1.2}{\centi\metre}$ from its peak before landing. The rest comes from the stance, where the leg compresses like a spring and the center of mass sinks to its lowest point near mid-stance before the leg pushes it back up. The running app reports vertical oscillation as the median, over sliding windows of \SI{2.5}{\second}, of the range of the hip-midpoint height, converted to centimeters with its scale (\texttt{form/src/lib/metrics.ts}, \texttt{calculateWindowedVerticalOscillationCm}).

*Figure 3.6. Stance (filled for the right foot, hatched for the left) across one stride. In running each foot is down for 35.8 % of the stride and there are two flight phases; in walking each foot is down for more than half the stride, so the stances overlap in two periods of double support.*

### 3.7.1 Walking as the contrast

Walking is not slow running. In walking the stance leg stays fairly straight and the body vaults over it like an \emph{inverted pendulum}: the center of mass is highest near mid-stance. In running the stance leg bends and rebounds like a spring, and the center of mass is lowest near mid-stance. Lee and Farley measured the difference directly: in the first half of stance, at speeds near the walk--run transition, the center of mass rose \SI{0.031}{\metre} in walking and fell \SI{0.073}{\metre} in running, even though the leg shortened by similar amounts in both (\SI{0.091}{\metre} and \SI{0.123}{\metre}); the larger angle the leg sweeps in walking, \SI{30.4}{\degree} against \SI{19.2}{\degree}, made the difference~\cite{ch03-mechanics:lee1998determinants}.

Walking numbers are built the same way. A walker with a \SI{1.3}{\metre} stride at \SI{110}{\spm} covers one stride every $120/110=\SI{1.09}{\second}$, a speed of $1.3\times110/120=\SI{1.19}{\metre\per\second}$. The walking app falls back on the same relation when it can neither track the walker's travel nor time single strides. \chref{ch09-gait} builds the detection of each foot contact from video; the \dde{BiomechanicRegression} module of the companion course uses ten such gait measures, cadence and contact time among them, to predict peak stride force from a treadmill dataset, which \chref{ch11-statistics} returns to.

### 3.7.2 Force from timing: one body weight on average
\label{ch03-mechanics:sec:forcetiming}

Contact and flight times also tell you how hard each foot pushes, with no force plate. The argument is the impulse of Section~\ref{ch03-mechanics:sec:force} applied to a whole step. At a steady speed on level ground, the center of mass ends each step at the same height and with the same vertical velocity it started with. Its vertical momentum does not change, so the net vertical impulse over the step is zero: the ground's upward impulse equals body weight times the step time. The ground can push only while a foot is on it, so averaged over the contact alone the force must be larger:

$$\frac{\bar F_contact}{mg}=\frac{t_step}{t_contact}=1+\frac{t_flight}{t_contact}.$$

The more of the step a runner spends in the air, the harder each contact must push. A runner with no flight at all, as in walking, could push with exactly one body weight on average.

To get a peak, you need a shape. If the force during contact rises and falls like half a sine wave, its peak is $\pi/2$ times its mean:

$$\frac{F_peak}{mg}=\frac{\pi}{2}\left(1+\frac{t_flight}{t_contact}\right).$$

This is the “sine-wave” model of Morin and colleagues, who used it to estimate leg stiffness from body mass, speed, leg length, flight time and contact time, and found stiffness within 0.67 to 6.93% of force-platform values from 3.33 m/s to maximal speed . On an instrumented treadmill with 29 runners at 8 to 14 km/h, the peak force from the timing equations did not differ significantly from the measured peak .

> **Engineer's note: Where the $/2$ comes from.**
> 
> Write the contact force as $F(t)=F_peak\sin(\pi t/t_c)$ for $0\le t\le t_c$. Its impulse is $\int_0^{t_c}F_peak\sin(\pi t/t_c)\,dt=2F_peakt_c/\pi$. Set that equal to $mg\,t_step$ and solve: $F_peak=(\pi/2)\,mg\,t_step/t_c$, which is Equation \eqref{ch03-mechanics:eq:fpeak}. The mean of a half sine over its own width is $2/\pi$ of its peak, which is Equation \eqref{ch03-mechanics:eq:fmean} again. Listing 3.7 checks the integral numerically.

**Example 3.7: The force of Jordan's foot plant.**

From Example 3.6, Jordan's step lasts 0.349 s and each contact 0.25 s. The mean force during contact is $0.349/0.25=\num{1.40}$ body weights, 958 N. The half-sine peak is $1.571\times1.40=\num{2.19}$ body weights, $2.19\times687\approx\SI{1510}{\newton}$. *Checkpoint:* {shorten the contact to 0.20 s at the same cadence and the peak rises to 2.74 body weights.}

**Listing 3.7.** Mean and peak force of a step from its timing (`code/stride_force.py`). (`code/stride_force.py`)

```python
# Force from timing: the half-sine model of one running step.
import numpy as np
m, g = 70.0, 9.81                    # Jordan: 70 kg, body weight 687 N
t_step, t_c = 60 / 172, 0.25         # step and contact time (s), the easy run
mean_bw = t_step / t_c               # mean vertical force during contact
peak_bw = np.pi / 2 * mean_bw        # peak of a half sine with that mean
print(f"flight {t_step - t_c:.3f} s of a {t_step:.3f} s step")
print(f"mean in contact {mean_bw:.2f} BW = {mean_bw * m * g:.0f} N")
print(f"half-sine peak  {peak_bw:.2f} BW = {peak_bw * m * g:.0f} N")

t = np.linspace(0, t_c, 10001)       # check: impulse over one step
F = peak_bw * np.sin(np.pi * t / t_c)
print(f"impulse / (body weight x step time) = {np.trapezoid(F, t) / t_step:.4f}")
for tc in (0.20, 0.25, 0.30):        # same step, shorter or longer contact
    print(f"contact {tc:.2f} s: mean {t_step / tc:.2f} BW,"
          f" peak {np.pi / 2 * t_step / tc:.2f} BW")
```

```text
flight 0.099 s of a 0.349 s step
mean in contact 1.40 BW = 958 N
half-sine peak  2.19 BW = 1505 N
impulse / (body weight x step time) = 1.0000
contact 0.20 s: mean 1.74 BW, peak 2.74 BW
contact 0.25 s: mean 1.40 BW, peak 2.19 BW
contact 0.30 s: mean 1.16 BW, peak 1.83 BW
```

The answer is of the right size: the treadmill data of Chapter 11 measured left-foot peak forces of 2.1 to 4.7 body weights over a ladder of speeds. Know what the model leaves out before you use it. It gives the vertical force only. It has no impact peak, the sharp spike just after a heel strikes, because a sine wave has none. It needs flight, so it does not apply to walking. It assumes each step ends with the same vertical velocity it began with, which holds for steady running but not for a takeoff into a jump or the first steps from a crouched start, when the body rises. Most important, the result is *modeled*, not measured, in the sense of Section 5.1: it is a function of two times, and it carries every error in those times. Chapter 9 applies it to each foot from video and works out what one frame does to it.

## 3.8 Science of the Sports

The mechanics above apply to every sport; what differs is which term decides the result. This section gives one page to each of six sports, as a map for Chapter 9 and Chapter 10. Each page names what decides performance, the governing relation, and what a phone can see of it.
Table 3.2 puts the six side by side.

*Table 3.2. What decides performance in six sports, in one line each.*

| Sport | Governing relation | What decides it | What a phone sees |
|---|---|---|---|
| Sprinting | speed $=$ step length $\times$ step rate | ground force, and its direction when accelerating | contact and flight times, steps, body lean |
| Distance running | speed $=$ sustainable oxygen uptake $/$ oxygen cost per km | aerobic capacity, threshold, economy | cadence, contact, oscillation, foot placement |
| Jumping | $h=v^2/2g$ , $v=$ impulse $/m$ | vertical impulse at takeoff | flight time, dip depth and timing, joint angles |
| Throwing | range from release speed, angle, height | release speed above all | release angle and speed, segment timing |
| Swimming | speed $=$ stroke rate $\times$ distance per cycle | propulsion against drag, efficiency | stroke rate, distance per cycle, body line |
| Cycling | power $=$ drag $+$ rolling $+$ climbing | aerodynamic drag at speed | cadence, joint angles, trunk angle |

### 3.8.1 Sprinting

Running speed is step length times step rate. A sprinter at top speed who covers 2.4 m per step at 4.6 steps a second is running $2.4\times4.6=\SI{11.0}{\metre\per\second}$. Which of the two factors separates fast sprinters from slower ones? The intuitive answer is “faster legs”. The measured answer is different. Weyand and colleagues measured 33 runners on a treadmill fitted with a force plate, whose top speeds ranged from 6.2 to 11.1 m/s. The time to swing the leg into position for the next step did not differ with top speed; the average vertical force during contact, in body weights, was 1.26 times greater for an 11.1 m/s runner than for a 6.2 m/s one . Fast runners push on the ground harder; they do not reposition their legs faster.

A sprint has three parts: acceleration from the start, a short phase near constant top speed, and deceleration . In acceleration the direction of the force matters more than its size. On an instrumented treadmill, Morin and colleagues found that 100-m performance was related to the share of the total ground force pointed horizontally, and to how well that share was kept as speed rose, but not to the total force itself . This is the impulse–momentum relation of Section 3.3 in a horizontal direction: only the horizontal impulse speeds the athlete up.

*What a phone sees.* From the side, at 120 fps or more: step length, step rate, contact and flight times, and the forward lean of the body at each step of the start. Forces are invisible, but contact time and the lean of the body line give a view of how they are applied. Chapter 10 works through the starts.

### 3.8.2 Distance running

In a race longer than a few minutes, the limit is the rate at which the athlete can supply energy aerobically and how much running each unit of energy buys. Three numbers carry it: maximal oxygen uptake, the lactate threshold (the fraction of that maximum that can be held) and economy, the oxygen cost of running at a given speed . Chapter 2 introduced all three. Among elite runners with similar maximal oxygen uptake, economy predicts performance better than the maximum does; economy is influenced by muscle and tendon stiffness and by mechanics that waste less energy on braking and on excessive vertical oscillation .

The arithmetic is simple. Suppose a runner can sustain an oxygen uptake of 50 mL/kg/min and needs 200 mL/kg of oxygen for each kilometer. Then the sustainable speed is $50/200=\SI{0.25}{\kilo\metre\per\minute}$, or 4.17 m/s. A runner 5 % more economical, needing 190 mL/kg/km, holds 4.39 m/s on the same engine.

*What a phone sees.* Economy itself needs a gas analyzer. A phone sees the mechanics thought to bear on it: cadence, contact time, duty factor, vertical oscillation and where the foot lands relative to the hips. The evidence linking each of these to economy is mixed and individual, which is why Chapter 9 presents the running app's targets as ranges to watch rather than rules.

### 3.8.3 Jumping

A vertical jump is decided at takeoff: height is $v^2/2g$, and takeoff speed is impulse over mass (Section 3.3). Everything before takeoff—the depth of the dip, the speed of the countermovement, the arm swing, the timing of hips, knees and ankles—matters only through what it does to the vertical impulse. The arm swing is a clear case. Swinging the arms up hard while the feet are still on the ground pushes the body down on the floor, raises the ground force and so the impulse, and the arms then carry extra momentum up with them.

Horizontal jumps add the trade-off of the previous section. A long jumper arrives fast and must convert some horizontal speed into vertical speed in one short contact. A higher takeoff angle costs takeoff speed, so the best angle is a compromise: in three experienced long jumpers who jumped over a wide range of angles, take-off speed fell as take-off angle rose, and the optimum calculated from each athlete's own relation matched their competition angles .

*What a phone sees.* Flight time to a frame, the depth and duration of the dip, joint angles at the bottom and at takeoff, and, with a scale, the rise of the hips. The jump app reports all of these.

### 3.8.4 Throwing

Release speed dominates every throw. In the drag-free range equation, distance grows with speed squared, and a 5 % faster release adds about 10 % of distance. Release angle and release height matter less, and the best angle is a compromise set by the athlete's own body (Section 3.4). Release speed is produced by a chain of segments, each one speeding up as the one before it slows: legs, hips, trunk, shoulder, elbow, wrist. The rotation of the hips ahead of the shoulders stretches the trunk muscles before they shorten, the stretch–shortening cycle of the jump turned on its side.

The javelin and the discus fly far enough, and are shaped so, that aerodynamic lift and drag change the best angle again; the shot is heavy and slow enough that the drag-free model works well. In the shot the speed–angle trade-off is strong: release speed falls by about 1.7 m/s for every radian of extra release angle , and the calculated optimum agrees with what throwers choose .

*What a phone sees.* Release angle and an estimate of release speed from two or three frames of the implement, release height, stride length, and the timing of the segments. The hip–shoulder separation is a transverse-plane rotation, the hardest thing for one camera to measure (Section 3.9); Chapter 10 shows how the throwing apps estimate it and what bias the estimate carries.

### 3.8.5 Swimming

Swimming speed is stroke rate times distance per stroke cycle. A swimmer at 48 cycles a minute who travels 2.0 m per cycle is swimming $48\times2.0/60=\SI{1.6}{\metre\per\second}$. When swimmers go faster, they raise stroke rate and give up some distance per stroke; in front crawl, the fastest swimmers had the longest distance per stroke at slow stroke rates .

Water is about 800 times denser than air, so drag dominates. At steady speed, propulsion equals drag, and drag rises roughly with the square of speed; power, drag times speed, rises with the cube. Swimming 5 % faster then needs $1.05^3=1.158$, or 16 % more mechanical power. Performance rests on producing propulsive force while reducing resistance, on the swimmer's power output, and on *propelling efficiency*, the share of that power that pushes the swimmer forward rather than stirring the water: it was much higher in elite swimmers (61 %) than in triathletes (44 %), and distance per stroke gives a fair indication of it .

*What a phone sees.* Stroke rate from the timing of the arms, distance per cycle and speed when the pool provides a scale, body line, and the symmetry of the stroke. Water hides the hands and refracts the view; Chapter 9 says which measures survive.

### 3.8.6 Cycling

On a bicycle the athlete supplies power and the road and the air take it away. A model with aerodynamic drag, rolling resistance, bearing friction and the changes of kinetic and potential energy predicted the power measured on the road with $R^2=0.97$ and a standard error of 2.7 W . On flat ground at racing speed the air dominates. Aerodynamic power is $P_\text{aero}=\tfrac12\rho\,C_dA\,v^3$, where $\rho$ is air density and $C_dA$ the drag area of rider and bicycle. With $\rho=\SI{1.2}{\kilo\gram\per\metre\cubed}$, an assumed $C_dA=\SI{0.30}{\metre\squared}$ and $v=\SI{11}{\metre\per\second}$, that is 240 W; rolling resistance with an assumed coefficient of 0.004 for an 80 kg rider and bicycle adds $0.004\times80\times9.81\times11=\SI{35}{\watt}$. The cube is the hard part: going 10 % faster costs 33 % more aerodynamic power, which is why riders work so hard on a lower, narrower position.

Cadence is the pedaling rate, in revolutions a minute. For maximal sprint power there is an optimum: with cranks from 120  to 220 mm long, trained cyclists produced their peak power at pedaling rates from 136 rpm down to 110 rpm .

*What a phone sees.* From the side, cadence from the motion of the feet, the knee and hip angles at the top and bottom of the pedal stroke (which reflect saddle height and position), and the angle of the trunk, which governs much of the drag area. From behind, the tracking of the knees. Chapter 9 uses the bicycle's own geometry as a ruler.

## 3.9 What One Camera Sees

Every number from a phone video is a measurement in the image plane. A joint angle in the image is the angle between two lines drawn on a flat picture. A joint angle in the body is the angle between two bones in space. They agree only when both bones lie in a plane parallel to the image.

### 3.9.1 Image-plane angles are not joint angles

Turn the camera away from a true side view and the image foreshortens every forward–backward distance by the cosine of the turn. Vertical distances keep their length. The included angle then changes even though the knee did not move. Listing 3.8 turns the camera around a knee bent to 116 °.

**Listing 3.8.** Apparent knee angle as the camera turns away from a side view (`code/camera_view.py`). (`code/camera_view.py`)

```python
import numpy as np
from angle import angle

# knee in the sagittal plane, metres: x forward, y up, z toward the camera side
hip, knee, ankle = np.array([[0.0, 0.9, 0], [0.25, 0.5, 0], [0.0, 0.1, 0]])
print(f"true included angle {angle(hip[:2], knee[:2], ankle[:2]):.1f} deg")

for yaw in [0, 15, 30, 45, 60]:        # camera turned away from a true side view
    c, s = np.cos(np.radians(yaw)), np.sin(np.radians(yaw))
    img = lambda p: (p[0] * c + p[2] * s, p[1])  # orthographic image of the point
    seen = angle(img(hip), img(knee), img(ankle))
    print(f"yaw {yaw:2d} deg: image angle {seen:.1f} deg")

Z, depth_gap = 4.0, 0.20               # camera 4 m away; far leg 0.20 m deeper
print(f"near leg drawn {100 * ((Z + depth_gap) / Z - 1):.1f}% larger than the far leg")
```

```text
true included angle 116.0 deg
yaw  0 deg: image angle 116.0 deg
yaw 15 deg: image angle 117.8 deg
yaw 30 deg: image angle 123.1 deg
yaw 45 deg: image angle 132.3 deg
yaw 60 deg: image angle 145.3 deg
near leg drawn 5.0% larger than the far leg
```

A camera 15 ° off square adds 1.8 °, smaller than the scatter of the pose model. At 30 ° the error is 7 °; at 45 °, 16 °, and the knee looks much straighter than it is (Figure 3.7). The same happens when the athlete turns rather than the camera: a runner who drifts across the frame, a thrower who rotates, a squatter whose knees move inward. That is what the canvas app's “2D projection-sensitive” label means, and why its instructions tell you to keep the camera “fixed and perpendicular to the movement plane”.

*Figure 3.7. A knee bent to 116 ° seen by a camera turned away from the side. Small turns cost little; large turns make the knee look straight. Data: `data/yaw_angle.csv`.*

### 3.9.2 Perspective and depth

A phone is a pinhole camera: an object's size in the image is its true size divided by its distance from the lens. Two consequences matter in sport. First, a scale set in one plane holds only in that plane. With the camera 4 m away, the near leg of a side-view runner, about 20 cm closer than the far leg, is drawn 5 % larger; a step length measured with a scale set on the far side of the body is 5 % off. Second, motion toward or away from the camera changes size, not position, so a pose model sees it badly or not at all. Standing farther back and zooming in reduces the first problem, because the depth differences become a smaller fraction of the distance.

### 3.9.3 How good is the number?

What does all this add up to for a careful side-view clip? Stenum and colleagues compared a pose model run on ordinary two-dimensional video with simultaneous three-dimensional motion capture of people walking. Timing was excellent: the mean absolute error was 0.02 s for step, stance and swing times on single steps, and 0.01 s for each person's average. Step length was within 0.049 m on single steps and 0.018 m on averages. Sagittal joint angles had mean absolute errors of 4.0 ° at the hip, 5.6 ° at the knee and 7.4 ° at the ankle . Those are numbers from a well-set-up laboratory camera; a phone held at an angle will do worse.

*Table 3.3. What one side-view camera measures well, and what it does not.*

| Measures well | Measures poorly or not at all |
|---|---|
| Timing: contact, flight, release, cadence (limited by frame rate) | Forces and torques (estimated only through models) |
| Sagittal-plane angles when the camera is square | Rotation in the transverse plane |
| Distances in the calibrated plane | Distances toward or away from the camera |
| Changes within one athlete, filmed the same way | Small differences between athletes filmed differently |

Table 3.3 is the honest summary. Timing is the camera's strength: it needs no scale and no depth. Angles in the plane facing the camera are good to a few degrees. Anything about force is an inference through the mechanics of this chapter, and anything about rotation toward the camera is a guess. Comparisons of one athlete with themselves, filmed the same way each time, are worth much more than comparisons with someone else.

## 3.10 Build Step B-3: Click Three Points, Read an Angle

This week's step adds geometry to your app from week 2. The page loads a photo, lets you click three points on it, draws the two segments, and prints the included angle at the middle point. It is Equation \eqref{ch03-mechanics:eq:angle} with a mouse.

Split the work into two files, so that the arithmetic can be tested without a browser. `geometry.js` holds one function, the JavaScript twin of Listing 3.1:

**Listing 3.9.** The angle function (`code/b3/geometry.js`). (`code/b3/geometry.js`)

```javascript
// geometry.js -- the included angle at b, in degrees, from three points {x, y}
export function angleDeg(a, b, c) {
  const u = { x: a.x - b.x, y: a.y - b.y }, v = { x: c.x - b.x, y: c.y - b.y };
  const cos = (u.x * v.x + u.y * v.y) / (Math.hypot(u.x, u.y) * Math.hypot(v.x, v.y));
  return Math.acos(Math.min(1, Math.max(-1, cos))) * 180 / Math.PI;
}
```

`main.js` handles the image and the clicks. The one subtle line converts a click from screen pixels to image pixels: the canvas is shown shrunk to fit the phone, but the points must be in the photo's own pixels, or the angle is computed on a squashed picture.

**Listing 3.10.** The page logic (`code/b3/main.js`). (`code/b3/main.js`)

```javascript
// main.js -- load a photo, click three points, read the angle at the middle one
import { angleDeg } from './geometry.js';
const canvas = document.querySelector('#view');
const ctx = canvas.getContext('2d');
const out = document.querySelector('#angle');
let img = null, pts = [];

document.querySelector('#file').addEventListener('change', async (e) => {
  img = await createImageBitmap(e.target.files[0]);
  canvas.width = img.width; canvas.height = img.height; pts = []; draw();
});
canvas.addEventListener('click', (e) => {
  const r = canvas.getBoundingClientRect();         // screen pixels -> image pixels
  const p = { x: (e.clientX - r.left) * canvas.width / r.width,
              y: (e.clientY - r.top) * canvas.height / r.height };
  pts = pts.length === 3 ? [p] : [...pts, p]; draw();
});
function draw() {
  if (img) ctx.drawImage(img, 0, 0);
  ctx.strokeStyle = 'yellow'; ctx.lineWidth = 4; ctx.beginPath();
  pts.forEach((p, i) => (i ? ctx.lineTo(p.x, p.y) : ctx.moveTo(p.x, p.y)));
  ctx.stroke();
  out.textContent = pts.length === 3 ? `${angleDeg(...pts).toFixed(1)} degrees`
                                     : `click point ${pts.length + 1} of 3`;
}
```

The page needs a file input with `id="file"`, a paragraph with `id="angle"` and a canvas with `id="view"`, and loads `main.js` as a module. Before you trust it, test the function against the hand answer of Example 3.1: `angleDeg` on the points $(500,400)$, $(550,600)$, $(480,800)$ must return 146.7 °. The test file `code/b3/geometry.test.mjs` does this in one line and prints `146.7 PASS`. Then photograph a printed protractor, click its arms, and check the page against the printed scale.

## 3.11 Telling the Athlete

Jordan asks what the knee angle in the jump means. Here are two answers to the same frame.

> **Coach's translation: A poor answer.**
> 
> “Your knee included angle at the bottom of the countermovement was 146.7 °, which is 33.3 ° of flexion, well short of the \SIrange{75}{115}{\degree} target range, so your eccentric loading is insufficient and you're leaving force production on the table.”

> **Coach's translation: A better answer.**
> 
> “In this frame you are only a little way into your dip: your knee is bent about as much as when you stand on a curb and get ready to step down. At the very bottom of your dip, most good jumpers bend about as far as sitting on a high stool. Try one set where you sink a little deeper before you push, and we'll film it from the same spot to see whether you go higher. The camera can be a few degrees out, so we're looking for a clear change, not a small one.”

The first answer is accurate and useless. It uses three terms Jordan has not met, quotes a target meant for the bottom of the dip against a frame that was not the bottom, and gives no action. The second translates the angle into a posture Jordan can feel, compares like with like, suggests one change, names the check, and states the uncertainty, the five lines of the course's communication rubric.

## Summary

- The body is a chain of segments. Movements are named in three planes; a side view sees the sagittal plane, where most of running, jumping and squatting happens.

- Velocity and acceleration from video are differences of samples. Differentiation amplifies keypoint noise, in proportion to the frame rate for velocity and its square for acceleration: smooth or fit a model first.

- A joint angle is the arccos of the normalized dot product of the two vectors leaving the joint. Say whether you report the included angle or flexion.

- Impulse equals the change of momentum. A 0.35 m jump needs a 2.62 m/s takeoff; for 70 kg over a 0.25 s push, that is a mean force of 1420 N, 2.07 body weights.

- In flight the center of mass follows a parabola whatever the limbs do. Released above the landing, the best angle is below 45 °, and lower still because release speed falls as the angle rises.

- Joints are levers with short muscle moment arms, so tendon forces are several times the external load.

- Running has stance, swing and flight; walking has double support instead of flight. Cadence, step length and duty factor follow from step and contact times.

- Predict before you measure: the takeoff velocity fixes the whole arc, and the gap between the arc and the hip track shows posture. Over a running step the ground's vertical force averages one body weight, so contact and flight times give a modeled mean and peak force.

- One camera measures timing well, in-plane angles to a few degrees, and force and rotation toward the lens not at all.

*Table 3.4. Formulas of the chapter.*

| Quantity | Formula |
|---|---|
| Central-difference velocity, acceleration | $v_i\approx(x_{i+1}-x_{i-1})/2\Delta t$ ; $a_i\approx(x_{i+1}-2x_i+x_{i-1})/\Delta t^2$ |
| Noise in the derivatives | $\sigma_v=\sigma/(\sqrt2\,\Delta t)$ ; $\sigma_a=\sqrt6\,\sigma/\Delta t^2$ |
| Angle at $B$ from $A$ , $B$ , $C$ | $\theta=\arccos\big(\vec u\cdot\vec w/(\|\vec u\|\,\|\vec w\|)\big)$ , $\vec u=A-B$ , $\vec w=C-B$ |
| Impulse and momentum | $\int(F-mg)\,dt=m\,\Delta v$ ; $\bar F=mv/t+mg$ |
| Work, power | $W=Fd$ ; $P=W/t$ |
| Takeoff speed, height from flight | $v=\sqrt{2gh}$ ; $h=gt^2/8$ |
| Range released $h$ above landing | $R=v_x\big(v_y+\sqrt{v_y^2+2gh}\big)/g$ |
| Optimum release angle | $\sin\theta^*=1/\sqrt{2+2gh/v^2}$ |
| Moment, tendon force | $M=Fd$ ; $F_T=F_G\,d_G/d_T$ |
| Center of mass | $\vec r=\sum m_i\vec r_i/\sum m_i$ |
| Cadence, step length, duty factor | $c=60/t_\text{step}$ ; $L=60v/c$ ; $D=t_\text{contact}/(2t_\text{step})$ |
| Path in flight | $x=x_0+v_xt$ ; $y=y_0+v_yt-\tfrac12gt^2$ |
| Force from timing (half sine) | $\bar F/mg=t_\text{step}/t_\text{contact}$ ; $F_\text{peak}/mg=(\pi/2)\,t_\text{step}/t_\text{contact}$ |

**New glossary terms.** anatomical position; sagittal, frontal and transverse planes; flexion, extension, abduction, adduction, rotation; kinematics; kinetics; central difference; included angle; angular velocity; Savitzky–Golay filter; ground reaction force; body weights (unit); momentum; impulse; work; power; moment arm; center of mass; stride; step; stance; swing; flight; double support; cadence; step length; duty factor; vertical oscillation; image plane; foreshortening.

**Track it:** your takeoff speed, $\sqrt{2gh}$ from the flight time of each `cmj` jump (Appendix J).

## Exercises

> **Course use: Week 3.**
> 
> **H06** (due Class 6, *Measure*): 3.1, 3.2, 3.5, 3.9, 3.18; about 70 minutes.
> 
> **H07** (due Class 7, *Model and tell*): 3.11, 3.19, 3.20, 3.21, 3.22; about 155 minutes. A case-file exercise may be done on your own data instead. The full map is in the Course Guide.

**Exercise 3.1** (Concept check · Foundation · 1 min · CORE)

A side-view camera films a runner. The knee bends mainly in one anatomical plane, and that plane is face-on to this camera. Which plane is it?

(a) The frontal plane
(b) The transverse plane
(c) The sagittal plane
(d) All three planes equally

**Exercise 3.2** (Concept check · Foundation · 2 min · CORE)

At the top of a jump, a volleyball player pulls both knees up to the chest. What happens to the path of the player's center of mass?

(a) Nothing: it stays on the same parabola it was on at takeoff
(b) It rises, because the legs moved up
(c) It falls, because pulling the knees up pushes the body down
(d) It stops for a moment, which is why the player seems to hang

**Exercise 3.3** (Concept check · Core · 2 min)

You film the same jump at 120 fps instead of 60 fps. The pose model's keypoint jitter, in meters, is the same at both rates. What happens to the noise in a central-difference velocity?

(a) It halves
(b) It does not change
(c) It grows by $\sqrt2$
(d) It doubles

**Exercise 3.4** (Concept check · Core · 2 min)

A shot is released 2 m above the ground. Which statement about the best release angle is correct, ignoring air drag?

(a) It is 45 °, as for any projectile
(b) It is a little below 45 ° for a fixed release speed, and lower still because a real thrower releases more slowly at higher angles
(c) It is above 45 °, because the shot has to climb before it falls
(d) It depends only on the release speed, not on the height

**Exercise 3.5** (Hand calculation · Foundation · 8 min · CORE)

In one frame of a squat filmed from the side, the pose model gives hip $A=(0.42, 0.35)$, knee $B=(0.50, 0.58)$ and ankle $C=(0.43, 0.80)$, in units of the frame width, with $y$ counting down.

- Write the vectors $\vec u=A-B$ and $\vec w=C-B$. *Checkpoint:* {$\vec u=(-0.08,-0.23)$, $\vec w=(-0.07,0.22)$.}

- Compute $\vec u\cdot\vec w$, $|\vec u|$ and $|\vec w|$. *Checkpoint:* {$-0.0450$; $0.2435$; $0.2309$.}

- Compute the included angle and the flexion. *Checkpoint:* {143.2 °; 36.8 °.}

- Confirm the angle with Listing 3.1 or with `angle(hip, knee, ankle)` in the canvas app's *New calculation*. Tolerance 0.1 °.

**Exercise 3.6** (Hand calculation · Core · 10 min)

A 65 kg athlete jumps and the center of mass rises 0.42 m. The push from the bottom of the dip to takeoff lasts 0.28 s, starting from rest. Use $g=\SI{9.81}{\metre\per\second\squared}$.

- Takeoff speed and flight time. *Checkpoint:* {2.87 m/s; 0.585 s.}

- Mean ground force over the push, in newtons and body weights. *Checkpoint:* {1304 N; 2.05 body weights.}

- The push distance if the force were steady, the work done, and the mean power. *Checkpoint:* {0.402 m; 524 J; 1872 W.}

- Confirm (a) and (b) with Listing 3.3 after changing its three inputs.

**Exercise 3.7** (Hand calculation · Core · 8 min)

A runner moves at 4.0 m/s with a cadence of 180 steps/min and a ground contact time of 0.22 s.

- Step time and step length. *Checkpoint:* {0.333 s; 1.33 m.}

- Stride time and duty factor. *Checkpoint:* {0.667 s; 33.0 %.}

- Flight time in each step. *Checkpoint:* {0.113 s.}

- Is this a run or a walk? Give the reason from your numbers.

**Exercise 3.8** (Hand calculation · Extension · 12 min)

A thrower releases a shot at 12 m/s from 2.0 m above the ground. Ignore air drag.

- Compute $2gh/v^2$ and the optimum angle from Equation \eqref{ch03-mechanics:eq:optimum}. *Checkpoint:* {0.2725; 41.6 °.}

- Compute the range at the optimum, using $R^*=v^2/(g\tan\theta^*)$, and at 45 ° using Equation \eqref{ch03-mechanics:eq:range}. *Checkpoint:* {16.56 m; 16.46 m.}

- Compute the range at 35 °. How much does missing the optimum by about 7 ° cost? *Checkpoint:* {16.22 m; about 0.34 m.}

- Compare with the range at 45 ° from the ground ($h=0$), and explain the difference in one sentence.

**Exercise 3.9** (App lab · Core · 20 min · CORE)

*Analyze yourself in the jump app* (https://apopt.com/jump/jump.php). Follow the five-step pattern of the course.

- Film one countermovement jump from the side, whole body in frame from the start to the landing, phone still on a tripod or a stack of books at about waist height. Film at 60 fps or more; a clip of 3 to 5 s is enough. If you film in slow motion, note the rate the camera recorded at.

- Run the app in Basic mode, set the frame rate to the rate you recorded at, and save the PDF and the text result.

- Pick the flight time. Confirm it by hand: step through the clip, count the frames from the last frame with a foot on the floor to the first frame with a foot back on it, divide by the capture rate, and apply $h=gt^2/8$.

- Open Advanced mode. Find the knee angle at the bottom of the dip and the concentric time (the push from the bottom of the dip to takeoff), and say whether either changes your reading of the jump.

- Write half a page: what you measured, what it shows, how sure you are (one frame of error is how many centimeters?), what you would change, and when you would retest.

**Exercise 3.10** (App lab · Foundation · 15 min)

*A knee angle in the canvas app* (https://apopt.com/canvas/). Ask a teammate (with their agreement) to film you from the side, camera square to you at knee height, while you hold a half squat for three seconds next to a printed protractor taped to the wall. Use 30 fps or more and a clip of about 5 s.

- Load the clip and select *Analyze selected timeline*. Then add a *New calculation* with the formula `angle(left_hip, left_knee, left_ankle)`, or the right side if it faces the camera.

- Pause on one frame of the hold and read the angle. Then export the per-frame CSV, read the three keypoints' pixel positions for the same frame (columns such as `left_hip_x_px` and `left_hip_y_px`; there $y$ counts up, which does not change the angle), and compute the angle by hand or with Listing 3.1.

- Film the hold again with the camera turned about 45 ° toward your front. Compare the two angles with Figure 3.7.

Save the per-frame CSV and the chart PNG.

**Exercise 3.11** (Python analysis · Foundation · 20 min · CORE)

Four frames of a jump, filmed at 60 fps, give these keypoints in pixels. The ankle does not move: $(420, 900)$ in every frame.
| Frame | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| Hip | (400, 500) | (400, 490) | (400, 478) | (400, 465) |
| Knee | (470, 700) | (468, 695) | (465, 690) | (460, 686) |

- Before writing code, compute the knee angle in frame 0 by hand. *Checkpoint:* {146.7 °.}

- With an AI assistant, write a script that uses the `angle` function of Listing 3.1 to compute the angle in all four frames. Check frame 0 against (a). *Checkpoint:* {146.7, 148.5, 150.9, 154.2.}

- Compute the angular velocity in frames 1 and 2 by central difference. *Checkpoint:* {126 °/s, 173 °/s.}

- Is the knee flexing or extending? Explain from the sign.

**Exercise 3.12** (Python analysis · Extension · 30 min)

Extend Listing 3.2 to the frame rates 30, 60, 120 and 240 fps, with the same 5 mm position noise. For each rate, average the noise of the central-difference velocity and of the second-difference acceleration over 200 random seeds.

- Predict both noise levels at each rate from Equation \eqref{ch03-mechanics:eq:noise} before running. *Checkpoint:* {velocity 0.106, 0.212, 0.424, 0.849 m/s; acceleration 11, 44, 176, 705 m/s².}

- Run the simulation and compare. *Checkpoint:* {within about 4 % of the predictions.}

- At 240 fps, how wide a Savitzky–Golay window (in samples) gives the same time span as the 11-sample window at 60 fps? Try it and report the mean acceleration.

- In two sentences, say why a fast frame rate helps timing but hurts derivatives, and what to do about it.

**Exercise 3.13** (Python analysis · Extension · 25 min)

A shot-putter releases at 13 m/s when the release angle is 30 °, from 2.1 m, and loses $k$ meters per second of release speed for every radian of extra angle.

- Write a function that returns the best angle and the range for a given $k$, by searching angles from 20 to 50 ° in steps of 0.01 °. Test it with $k=0$ against Equation \eqref{ch03-mechanics:eq:optimum}. *Checkpoint:* {41.9 °, 19.21 m.}

- Report the best angle for $k=1$, 1.7 and 3. *Checkpoint:* {39.3 °, 37.5 °, 34.3 °.}

- For $k=1.7$, how much range does a thrower lose by releasing at 45 °? *Checkpoint:* {0.51 m.}

**Exercise 3.14** (Body science · Foundation · 5 min)

Name the movement and its plane, from anatomical position: (a) the descent of a squat, at the knee; (b) raising the arm out to the side to shoulder height; (c) turning the head to look over the shoulder; (d) rising onto the toes; (e) the swing of a soccer kick at the hip, as the thigh comes forward.

**Exercise 3.15** (Body science · Core · 8 min)

During the landing of a jump, the ground pushes up with 2.5 body weights, along a line 10 cm behind the knee joint center. The patellar tendon, which straightens the knee, has a moment arm of 4 cm.

- Estimate the patellar tendon force in body weights and in newtons for a 70 kg athlete. *Checkpoint:* {6.25 body weights; 4.29 kN.}

- In two or three sentences for a reader with no engineering, explain why a tendon can pull with several times body weight when the athlete weighs only one.

**Exercise 3.16** (Science of the sport · Foundation · 5 min)

A teammate says: “Sprinters are fast because they move their legs faster.” Using the evidence in Section 3.8.1, write three or four sentences that correct or refine the claim, and name one thing you could see in a side-view video that bears on it.

**Exercise 3.17** (Science of the sport · Extension · 12 min)

- A cyclist rides at 12 m/s instead of 11 m/s, with $\rho=\SI{1.2}{\kilo\gram\per\metre\cubed}$ and $C_dA=\SI{0.30}{\metre\squared}$. Compute the aerodynamic power at both speeds. *Checkpoint:* {240 W; 311 W.}

- By what factor must aerodynamic power rise for a 10 % faster ride? *Checkpoint:* {1.331.}

- A swimmer wants to go 3 % faster. If drag rises with the square of speed, by how much must the power that overcomes drag rise? *Checkpoint:* {9.3 %.}

- The same swimmer holds 48 cycles a minute at 2.0 m per cycle. Give two different ways to reach the 3 % gain using $v=\text{rate}\times\text{distance per cycle}$, and say which the evidence suggests separates faster swimmers.

**Exercise 3.18** (Field collection · Foundation · 40 min · CORE)

*One jump, three frame rates, one tape measure.* Work with a partner.

- Consent: if you film a partner, get their written consent first (the Appendix E form); under 18, a parent or guardian also signs and the partner gives their own assent. They may stop at any time, and the clips stay on your own devices; no image of a minor leaves the team. You may film yourself instead.

- Safety: warm up for five minutes (easy jogging, ten body-weight squats, five small hops). Jump on a dry, non-slip floor with room around you. Stop if anything hurts. No one is required to jump maximally.

- Equipment: a phone with slow motion, a tripod or a stack of books, masking tape, a tape measure, chalk or a sticky note.

- Stand side-on to a wall. Reach up with one hand, flat-footed, and mark the highest point. Tape a 1.00 m strip on the wall, vertical, near the jumper, as a scale.

- Set the phone \SIrange{3}{4}{\metre} away, square to the wall, at waist height. Film three countermovement jumps at 30 fps, three at 60 fps (or 120 fps), and three at the highest slow-motion rate the phone offers. At the top of each jump, touch the wall with chalk on your fingers (or press a sticky note) as high as you can.

- Measure each jump's reach height with the tape and subtract the standing reach.

- For each clip, count flight frames and convert to height with $h=gt^2/8$, using the rate the camera *recorded* at.

Record in a table: clip, recorded frame rate, flight frames, flight time, height from flight, height from the wall. Keep the clips for Chapter 8.

**Exercise 3.19** (Build · Core · 60 min · CORE)

*Build step B-3.* Add the three-point angle page of Section 3.10 to your app.

- Specify first: write, in three lines, the input (a photo and three clicks), the output (the included angle at the second click, to 0.1 °) and one test with a hand answer.

- With an AI assistant, generate the two files `geometry.js` and `main.js`. Then run the test file `geometry.test.mjs`, which must print `146.7 PASS`.

- Photograph a printed protractor set at 60 ° and at 120 °, click its arms, and record the page's readings.

- Open the page on a phone, where the canvas is shown smaller than the photo. Explain why clicking still gives the right angle, pointing to the line of code responsible.

- Deploy it beside your week 2 page and submit the link.

**Exercise 3.20** (Communicate · Foundation · 20 min · CORE)

Jordan's jump app report says “Knee Angle 146.7 deg” for a frame partway into the dip. Write a message of 60 to 100 words that tells Jordan what this means without using degrees, the word “flexion” or any other technical term, and that gives one thing to try. Then list how your message meets each of the five rubric lines: accurate, plain, one recommendation, uncertainty stated, within scope.

**Exercise 3.21** (Check the AI · Core · 8 min)

A student asks an AI assistant to analyze a 60 fps jump clip. The assistant replies: “From the hip keypoints I computed vertical acceleration by second differences. Peak acceleration during the flight phase is 51 m/s², over 5 g, which suggests a very powerful athlete.” Find the flaw, show with a number from this chapter why the result cannot be right, and say what the assistant should have done.

**Exercise 3.22** (Python analysis · Core · 45 min)

Case file: the sprint-start study in the case data films the same starts at
30  and 120 fps, with the times of the start's events marked by hand
on each clip. The question: does the lower frame rate change the answer?

- Check the clock. Multiply each hand-marked time by its clip's capture
rate. *Checkpoint:* {Every product lies within 0.01 of a whole frame. If the
120 fps times sit on a grid of $1/30$ second instead, they were marked
at the stored rate of a slow-motion file (Chapter 8); fix that first.}

- Compare durations, not clock times: two clips need not start together.
For each start, compute the time between pairs of events (for example, first
movement to the first foot leaving the ground) at both rates, and the
difference $d = d_{30} - d_{120}$. Report $n$, the mean of $d$ (the bias), its
standard deviation and the largest $|d|$. *Checkpoint:* {Rounding each event to a
frame alone gives $d$ a standard deviation of about 14 ms, and
$|d|$ up to one 30 fps frame, 33 ms. Much less than
that: check that you did not compare a clip with itself. Much more: the person
placing the events disagreed with themselves.}

- Which event pair disagrees most? Give one reason from the frames
themselves.

- Differentiate a keypoint track. Make the hip's horizontal position frame
by frame on one start at each rate (a pose model, as in Chapter 8, or
clicks on every frame). First test your central difference,
Equation \eqref{ch03-mechanics:eq:diff}, on $x = 2t^2$ sampled at each rate.
*Checkpoint:* {It returns $4t$ to rounding error, because the central difference
is exact for a parabola.} Then compute the hip's velocity at both rates, raw
and after a Savitzky–Golay filter of the same span in seconds (about
0.17 s) at each rate. *Checkpoint:* {The running sum of velocity
times $\Delta t$ gives back the displacement to a few millimeters (or pixels).}

- From Equation \eqref{ch03-mechanics:eq:noise}, which rate gives the
noisier raw velocity, and by what factor? Does your data agree?

**Exercise 3.23** (Communicate · Core · 20 min)

Case file: the sprint coach who filmed the starts asks, “Can we keep filming
at 30, or do we need 120?” Using your results from the previous exercise,
write at most 120 words for the coach, and add one plot of the difference
$d$ for each start with a caption that states what it shows. Include one
number in milliseconds, how sure you are, and one recommendation.

**Exercise 3.24** (Hand calculation · Core · 15 min)

Predict before you measure (Section 3.4.4). Use
$g=\SI{9.81}{\metre\per\second\squared}$ and no drag.

- A volleyball player leaves the floor straight up at
3.0 m/s. When is the center of mass highest, how high
does it rise, and how long is the flight? *Checkpoint:* {0.306 s.}

- The clip was filmed at 120 fps. About how many frames is the
flight, and at which frame after takeoff is the top?

- The player swings both arms from the sides to overhead during the
flight, which lifts the center of mass 5.8 cm relative to the
hips. How high do the hips rise? Which number is the jump?

- A standing long jump: the center of mass leaves 0.25 m ahead
of the toes at 3.0 m/s and 35 °, drops
0.30 m between takeoff and touchdown, and the heels land
0.40 m ahead of it. Find the flight distance and the jump.
*Checkpoint:* {the flight is 1.18 m.}

**Exercise 3.25** (Python analysis · Extension · 25 min)

In Listing 3.5 the takeoff speed falls by
$k=\SI{1.7}{\metre\per\second}$ per radian of extra angle. That slope was
borrowed from shot-putters. Rerun the search for the best angle with
$k=0$, 1.0, 1.7 and 2.5 m/s per radian, keeping the other
inputs. For each, print the best angle, the best jump and the jump at
45 °.

- Why is the best angle below 45 ° even when $k=0$?

- How does the cost of taking off at 45 ° change with $k$?

- What would you have to measure on a real athlete to replace the
assumed $k$, and how (Section 3.4.5)?

**Exercise 3.26** (Hand calculation · Core · 12 min)

A 60 kg runner has a cadence of 180 steps/min and a contact time
of 0.22 s (Section 3.7.2).

- Find the step time, the flight time, the mean force during contact and
the half-sine peak, in body weights and in newtons.
*Checkpoint:* {the mean is 1.52 body weights.}

- The contact was timed on video and read one frame too short. Recompute
the peak at 30 fps and at 60 fps, keeping the step time fixed.
By what percentage does each frame rate inflate the peak?

**Exercise 3.27** (Concept check · Core · 3 min)

In the half-sine model, a runner keeps the same cadence but spends less of
each step on the ground (shorter contact, longer flight). Which statement is
correct?

(a) The mean force over the whole step rises, because the runner pushes
harder
(b) The peak force falls, because the foot is on the ground for less
time
(c) Nothing changes, because the step time is the same
(d) The mean force over the whole step stays at one body weight, so the mean
and the peak during contact both rise
