Teaching and Learning: Sample Activities and Pseudocode
Designing learning activities
Effective activities in Specialist Mathematics move students from procedural fluency to conceptual connection. Sample activities include: investigating families of functions with a slider (transformations), constructing vectors geometrically and algebraically, exploring matrix transformations on the plane, and modelling projectile motion with parameters. Each activity should end with a reflection question that forces students to articulate the underlying structure.
Pseudocode in the classroom
Pseudocode describes algorithms without syntax. Students must be able to trace pseudocode (follow variable values), interpret it (state what it computes), and write simple pseudocode (e.g. Newton's method, Euler's method, bisection). Traps: confusing assignment (←) with equality; failing to update variables inside a loop; mis-tracking a counter.
Worked example: tracing Euler's method
Given $\frac{dy}{dx}=x+y$, $y(0)=1$, step $h=0.1$, find $y(0.2)$.
x ← 0
y ← 1
h ← 0.1
repeat 2 times:
y ← y + h*(x + y)
x ← x + h
Trace: iteration 1: $y \leftarrow 1 + 0.1(0+1)=1.1$, $x=0.1$. Iteration 2: $y \leftarrow 1.1 + 0.1(0.1+1.1)=1.1+0.12=1.22$, $x=0.2$. Answer $y(0.2)\approx1.22$.
Common traps
- Order of updates: update $y$ using the old $x$, then update $x$. Reversing the order changes the answer.
- Loop count: "repeat $n$ times" means exactly $n$ iterations, not $n+1$.
- Initial conditions: always state them before tracing.
Rule of thumb
Trace pseudocode in a table with columns for each variable and a row per iteration. Never trace in your head.