Skip to main content
HL AA Paper 3 · Practice

HL AA Paper 3 Practice

Two extended, investigation-style questions in the style of the 2026 Paper 3 exam. Each has 5–7 linked sub-parts. Attempt each part first, then click Reveal worked solution.

Total: 55 marks · Recommended time: 60 minutes · Calculator permitted

Question 1 · The doubling map and chaotic dynamics

Topics: functions, iteration, sequences, logarithms · 28 marks

Define the doubling map $T: [0,1) \to [0,1)$ by

$T(x) = 2x \bmod 1 = \begin{cases} 2x & \text{if } 0 \le x < \tfrac{1}{2} \\ 2x - 1 & \text{if } \tfrac{1}{2} \le x < 1 \end{cases}$

The orbit of a starting point $x_0$ is the sequence $x_0, x_1, x_2, \ldots$ where $x_{n+1} = T(x_n)$. Throughout this question you may express numbers in binary using the notation $0.b_1 b_2 b_3 \ldots_2$ where each $b_i \in \{0,1\}$.

(a) [3 marks]

Compute the first five terms of the orbit starting at $x_0 = \tfrac{1}{3}$.

Reveal worked solution

Step 1. Apply $T$ repeatedly.

$x_1 = T(\tfrac{1}{3}) = \tfrac{2}{3}$ (since $\tfrac{1}{3} < \tfrac{1}{2}$)
$x_2 = T(\tfrac{2}{3}) = 2 \cdot \tfrac{2}{3} - 1 = \tfrac{1}{3}$
$x_3 = T(\tfrac{1}{3}) = \tfrac{2}{3}, \quad x_4 = \tfrac{1}{3}$

Observation: the orbit is a period-2 cycle $\tfrac{1}{3} \to \tfrac{2}{3} \to \tfrac{1}{3} \to \ldots$ (A1 · A1 · A1)

(b) [4 marks]

Let $x_0 = 0.b_1 b_2 b_3 \ldots_2$ be a binary expansion. Prove that $x_1 = T(x_0) = 0.b_2 b_3 b_4 \ldots_2$.

Reveal worked solution

Setup. By definition, $x_0 = \sum_{i=1}^{\infty} b_i \, 2^{-i}$.

$2 x_0 = \sum_{i=1}^{\infty} b_i \, 2^{-(i-1)} = b_1 + \sum_{i=2}^{\infty} b_i \, 2^{-(i-1)} = b_1 + 0.b_2 b_3 \ldots_2$

Case split.

  • If $b_1 = 0$: $x_0 < \tfrac12$, so $x_1 = 2x_0 = 0.b_2 b_3 \ldots_2$. (M1)
  • If $b_1 = 1$: $x_0 \ge \tfrac12$, so $x_1 = 2x_0 - 1 = b_1 + 0.b_2 b_3 \ldots_2 - 1 = 0.b_2 b_3 \ldots_2$. (M1)

In both cases $x_1 = 0.b_2 b_3 b_4 \ldots_2$ — the doubling map is a binary shift. (R1 · AG1)

(c) [3 marks]

Deduce that every rational $x_0 \in (0,1)$ has an eventually periodic orbit.

Reveal worked solution

Argument. A rational has a binary expansion that is either terminating or eventually periodic. (R1)

By part (b), $T$ shifts this expansion left by one bit each step, so after finitely many applications the tail is purely periodic; the orbit then repeats every $p$ steps where $p$ is the binary period. (R1 · A1)

(d) [5 marks]

Two starting points $x_0 = 0.0101\overline{01}_2$ and $y_0 = 0.0101\overline{10}_2$ differ from the 5th binary digit onwards. Prove that after $n$ applications of $T$, $|x_n - y_n| \le 2^{-(4-n)}$ for $n \le 4$, and that the orbits diverge to be at least $\tfrac{1}{4}$ apart by step 4.

Reveal worked solution

Setup. Because the doubling map is a binary shift (part b), the difference in the first surviving bit is what matters after $n$ shifts.

Initial difference: agreeing on bits 1–4, differing at bit 5. So $|x_0 - y_0| \le 2^{-4}$. (M1)

After $n$ applications of $T$, the leading disagreeing bit is at position $5 - n$. In general, $|x_n - y_n|$ can double each step (approximately). (M1)

  • $n=1$: bits 4 disagree ⇒ $|x_1 - y_1| \le 2^{-3} = \tfrac{1}{8}$
  • $n=2$: bits 3 disagree ⇒ $|x_2 - y_2| \le 2^{-2} = \tfrac{1}{4}$
  • $n=3$: bits 2 disagree ⇒ $|x_3 - y_3| \le \tfrac{1}{2}$
  • $n=4$: bits 1 disagree; the numbers are macroscopically apart. (A1 · A1)

Sensitivity to initial conditions: tiny changes in the starting point ($\le 2^{-4}$) grow to differences of $\ge \tfrac{1}{4}$ within 4 steps — a signature of chaos. (R1)

(e) [5 marks]

Prove by mathematical induction that for any $x_0 \in [0,1)$ whose binary expansion starts with $k$ zeros ($b_1 = b_2 = \ldots = b_k = 0$), $x_k = 2^k x_0$.

Reveal worked solution

Base case ($k = 0$): $x_0 = 2^0 x_0 = x_0$. Trivially true. (M1)

Inductive step. Assume $x_j = 2^j x_0$ for some $0 \le j < k$. Because bits $b_1, \ldots, b_k$ are all $0$, $x_j$ has its bit-$1$ position equal to $b_{j+1} = 0$, so $x_j < \tfrac12$. (M1)

Hence $x_{j+1} = T(x_j) = 2 x_j = 2 \cdot 2^j x_0 = 2^{j+1} x_0.$

Conclusion. By induction, $x_k = 2^k x_0$ for all $0 \le k \le$ (first non-zero bit position). (R1 · AG1 · A1)

(f) [4 marks]

The Lyapunov exponent of the doubling map at $x_0$ is defined as $\lambda(x_0) = \lim_{n \to \infty} \tfrac{1}{n} \sum_{i=0}^{n-1} \ln |T'(x_i)|$ wherever $T'$ exists. Show that $\lambda(x_0) = \ln 2$ for every $x_0$ where the derivative is defined.

Reveal worked solution

Compute $T'$. On each of $[0, \tfrac12)$ and $[\tfrac12, 1)$, $T(x)$ is linear with slope $2$. So $T'(x) = 2$ wherever it exists. (M1 · A1)

Apply the definition.

$\lambda(x_0) = \lim_{n \to \infty} \tfrac{1}{n} \sum_{i=0}^{n-1} \ln 2 = \lim_{n \to \infty} \tfrac{n \ln 2}{n} = \ln 2.$

Interpretation. A positive Lyapunov exponent ($\ln 2 \approx 0.693$) confirms the chaos observed in (d): nearby orbits diverge exponentially fast, doubling their separation each step. (R1 · AG1)

(g) [4 marks]

Explain, using parts (b) and (f), why despite being deterministic the doubling map is unpredictable in practice.

Reveal worked solution

Argument. By part (b), each application of $T$ discards one bit of the initial condition. After $n$ steps, the current state depends only on bits $b_{n+1}, b_{n+2}, \ldots$ of $x_0$. (R1)

In practice we know $x_0$ only to finite precision — say $B$ bits. After $B$ iterations, all known information about $x_0$ has been "shifted out"; the future orbit is determined by bits we never measured. (R1)

Equivalently, from part (f), errors grow by a factor of $2$ per step ($e^{\lambda} = 2$). Any starting-value uncertainty of $2^{-B}$ becomes $O(1)$ after $B$ steps. (R1 · A1)

Question 2 · Random walk on a triangle

Topics: probability, matrices, sequences, limits · 27 marks

A robot sits at one of three vertices of an equilateral triangle labelled $A$, $B$, $C$. At each step the robot moves to one of the other two vertices with probability $\tfrac12$ each, independently of past moves. Let $p_n$, $q_n$, $r_n$ denote the probability that the robot is at $A$, $B$, $C$ respectively after $n$ steps.

Let $\mathbf{v}_n = \begin{pmatrix} p_n \\ q_n \\ r_n \end{pmatrix}$ be the state vector at step $n$.

(a) [3 marks]

Write down the transition matrix $M$ such that $\mathbf{v}_{n+1} = M \mathbf{v}_n$.

Reveal worked solution

From each vertex the robot goes to the other two with probability $\tfrac12$, and to itself with probability $0$.

$M = \begin{pmatrix} 0 & \tfrac12 & \tfrac12 \\ \tfrac12 & 0 & \tfrac12 \\ \tfrac12 & \tfrac12 & 0 \end{pmatrix}$ (M1 · A1 · A1)

(b) [3 marks]

The robot starts at $A$: $\mathbf{v}_0 = (1, 0, 0)^{\mathrm T}$. Compute $\mathbf{v}_1$, $\mathbf{v}_2$ and $\mathbf{v}_3$.

Reveal worked solution
$\mathbf{v}_1 = M \mathbf{v}_0 = (0, \tfrac12, \tfrac12)^{\mathrm T}$
$\mathbf{v}_2 = M \mathbf{v}_1 = (\tfrac12, \tfrac14, \tfrac14)^{\mathrm T}$
$\mathbf{v}_3 = M \mathbf{v}_2 = (\tfrac14, \tfrac38, \tfrac38)^{\mathrm T}$ (A1 · A1 · A1)

(c) [4 marks]

By symmetry, $q_n = r_n$ for all $n \ge 1$. Show that $p_{n+1} = 1 - p_n - \tfrac{1}{2}(1 - p_n)$ and deduce the recurrence $p_{n+1} = \tfrac{1}{2}(1 - p_n)$.

Reveal worked solution

Use symmetry. Since $q_n = r_n$ and $p_n + q_n + r_n = 1$, we have $q_n = r_n = \tfrac{1-p_n}{2}$. (M1)

Compute $p_{n+1}$. The robot arrives at $A$ from $B$ or $C$ with probability $\tfrac12$ each:

$p_{n+1} = \tfrac12 q_n + \tfrac12 r_n = q_n = \tfrac{1 - p_n}{2}.$

Hence $p_{n+1} = \tfrac12(1 - p_n)$. (M1 · A1 · AG1)

(d) [6 marks]

Solve the recurrence $p_{n+1} = \tfrac12(1 - p_n)$ with $p_0 = 1$ to obtain a closed form for $p_n$.

Reveal worked solution

Find the fixed point. Setting $p^* = \tfrac12(1 - p^*)$ gives $p^* = \tfrac13$. (M1)

Substitute $u_n = p_n - \tfrac13$.

$u_{n+1} = p_{n+1} - \tfrac13 = \tfrac12(1 - p_n) - \tfrac13 = \tfrac12 - \tfrac12 p_n - \tfrac13 = \tfrac16 - \tfrac12 p_n$
$= -\tfrac12(p_n - \tfrac13) = -\tfrac12 u_n.$

So $u_n$ is geometric with ratio $-\tfrac12$ and $u_0 = 1 - \tfrac13 = \tfrac23$. (M1 · A1)

Closed form.

$u_n = \tfrac23 \left(-\tfrac12\right)^n \implies p_n = \tfrac13 + \tfrac23 \left(-\tfrac12\right)^n.$ (M1 · A1 · AG1)

(e) [3 marks]

Deduce $\lim_{n \to \infty} \mathbf{v}_n$ and interpret it.

Reveal worked solution

$\left(-\tfrac12\right)^n \to 0$ as $n \to \infty$, so $p_n \to \tfrac13$ and by symmetry $q_n, r_n \to \tfrac13$. (M1)

$\lim_{n \to \infty} \mathbf{v}_n = \left(\tfrac13, \tfrac13, \tfrac13\right)^{\mathrm T}$ — the stationary distribution. (A1)

Interpretation: in the long run the robot is equally likely to be at any vertex, regardless of where it started. (R1)

(f) [4 marks]

The matrix $M$ has eigenvalues $\lambda_1 = 1$ and $\lambda_2 = \lambda_3 = -\tfrac12$. Explain — without diagonalising $M$ — how the eigenvalues predict both the long-run limit in (e) and the geometric decay rate in (d).

Reveal worked solution

Eigenvalue interpretation. Any state vector can be decomposed as a linear combination of eigenvectors: one along the $\lambda = 1$ eigenspace (the stationary distribution $(\tfrac13, \tfrac13, \tfrac13)^{\mathrm T}$), the rest along the $\lambda = -\tfrac12$ eigenspace. (R1)

After $n$ applications of $M$, the $\lambda = 1$ component is unchanged, and the transient components are multiplied by $(-\tfrac12)^n$. (R1)

  • Long-run limit: as $n \to \infty$, $(-\tfrac12)^n \to 0$, leaving only the stationary distribution — matches (e). (A1)
  • Decay rate: convergence is geometric with ratio $|\lambda_2| = \tfrac12$ — matches the closed form in (d), where the transient term $\tfrac23(-\tfrac12)^n$ decays by exactly a factor of $\tfrac12$ each step. (A1)

(g) [4 marks]

A biased robot now stays put with probability $b \in [0,1)$ and moves to each other vertex with probability $\tfrac{1-b}{2}$. Predict the new dominant transient eigenvalue as a function of $b$, and hence how many steps roughly are needed for the state to be within $10^{-3}$ of the stationary distribution when $b = 0.9$.

Reveal worked solution

New transition matrix.

$M_b = b\, I + (1-b)\, M$

Since $M$ has eigenvalues $1, -\tfrac12, -\tfrac12$, $M_b$ has eigenvalues $b + (1-b)\lambda$ — so $1$ (unchanged, since $b + (1-b)\cdot 1 = 1$) and $b - \tfrac{1-b}{2} = \tfrac{3b - 1}{2}$ (transient). (M1 · A1)

Decay to $10^{-3}$. Require $|\tfrac{3b-1}{2}|^n < 10^{-3}$. With $b = 0.9$, transient eigenvalue is $\tfrac{1.7}{2} = 0.85$:

$0.85^n < 10^{-3} \iff n > \tfrac{-3 \ln 10}{\ln 0.85} \approx \tfrac{6.908}{0.1625} \approx 42.5$

So about $43$ steps. Compare with the unbiased robot ($b = 0$, transient eigenvalue $\tfrac12$): $0.5^n < 10^{-3} \Rightarrow n \ge 10$. The bias dramatically slows convergence. (M1 · A1)

Want unlimited Paper 3 practice targeted at your weakest sub-topics?

Order a Personalised Paper 3 set — €5 for one, delivered as a PDF within 48 hours.