17 April 2007

Graph magic!

Magic is a stage in the developmental history of science — a history which each of us retraces as we grow to intellectual maturity. Its study as such by eight-year olds was designed to meet criteria in cultural history and imaginative creation, but also as a context for strengthening critical faculties. The ability to rationally assess likely and implausible explanations of phenomena makes great strides at this age; separation of reality from model is central.

A link between mathematical models and spells, illustrated by Omnigraph, was well received and opened up a riot of speculative theorising. It also offered a new stage on which to parade the key concept of the algebraic “placeholder”.

Omnigraph is a graph processor, with facilities for investigating a number of mathematical areas up to very basic calculus. Equations or Cartesian coordinates, entered from keyboard or menus, are instantly reflected in curves, lines, points and shapes drawn in the graph window. Or, looked at another way, “spells” in the lower window produce magical results in the upper one - but rules can be deduced, even at this age, to predict the result of any given spell.

The mouse changes scaling, draws tangents, normals, areas, and the rest; curve drawing can be paused or abandoned, and in many cases the equation/spell is displayed as the mouse passes over a line.

A quadratic spell produces a passable model of the path followed by Harry Potter’s broomstick as he swoops to aid a Quidditch team-mate before returning to his normal altitude position. We can also play the part of the villainous Quirrel, interfering with the spell to alter Harry’s flight: alter one part of the spell (the m coefficient) to induce suicidal recklessness; change another (the constant c) to pull him out of the dive earlier - or cause him to crash!

If it looks like I’m getting carried away - well, perhaps I am. There is nothing more inspiring than watching young minds leap over their fears and years to grasp an idea. By the end of the morning, any member of the class could evaluate the value of y for any x, plotting the results on a graph paper Quidditch field. They could also deal implicitly with negative values for m and c, expressed as subtractions in a modified “spell”.

We assembled a tolerable Cartesian cartoon representation of Nearly Headless Nick, behind a transparent acetate screen overlay carrying a Hogwarts map. The pupils derived great amusement and insight from altering transformation matrix-spells to move Nick about the castle, expand him, shrink him, distort him in various ways…

Omnigraph is a simple, no frills program in its interaction with the user, which makes it very transparent in use. It is also well known; all the teachers involved had encountered it, if not used it, before. For more advanced work it could be replaced by Autograph; this would sacrifice instant usability in favour of added options. Both programs work well in conjunction with graphical calculators, for teaching at the levels where those are appropriate. Autograph offers stronger tools (eigenvalues, for instance), enhanced display options and statistical data plotting.

[originally posted on Scientific Computing World's education pages]

No comments: