I’m sure you’ve seen the Star Trek TNG Episode “Where No One Has Gone Before” where a mysterious traveler aboard the Enterprise helps Wesley learn how to operate the ship’s computer using his intuition. The first time I saw that episode was the moment my love for parametric equations was born.
Parametric equations are a way of defining a mathematical relationship using parameters. The set of coordinates on the curve, x and y, are represented as functions of a variable called t. For example, we describe a parabola as being y=x^2. Using parametric equations, we write: x=t and y=t^2, then we plot (x,y). This may seem confusing at first, but it’s worth learning. For one thing, it’s very useful in computer design because it makes it easier to rotate and scale.
I first came across the idea of parametric art in college, when my professor, Tommy Ratliff, gave us an assignment: first draw a picture, and then recreate that picture using parametric equations. We used the Maple software package, which is essentially the same as Mathematica. I started slowly. I had trouble figuring out which parameters to use and what a curve made of different combinations of equations would look like. However, the more I played with equations, the more I could predict the outcome. The process became intuitive much more quickly than I expected, and I was finally able to create an image of a seated Buddha that is now, sadly, lost to the ages. I have created a host of other images since then, such as this lovely bee.
This brilliant work of art required about 25 parametric equations, but as you can see, many of them were variations on the same equation that I scaled, moved around a bit, or flipped upside down.
If your kid is interested in math, art or programming and you want to get him or her interested in the other two, you can introduce parametric art. There are a few simple steps. First, you will need the proper software. Mathematica is the industry standard, but many choose to use Scilab, the free, open source version of Mathematica. It is available here for download: http://www.scilab.org/products/scilab/download
Once you have downloaded the software, you need to open a file and then you can begin. The first thing you need to do is create a parameter variable, then define some equations based on that variable. In Scilab, it will look like this:
Here, t is your parameter and it is generating points between negative 2 and positive two at an interval of 0.1. The equations you are creating, represented as atac and btac, can be combined in a variety of ways to create aspects of an image.
You can create parametric equations and view them by using the plot function, as such:
The first plot function uses atac as the x variable and btac as the y variable, and creates a semicircle. The second plot function creates a mirror image of the first, and these two functions combined form a circle.
Notice that you can make adjustments to atac and btac to create a variety of different shapes. Indeed, the whole picture (which I have dubbed Queen Elizabeth) was made with five equations: atac, btac, ctac, gtac, and ftac.
By making atac or btac negative, by reversing them, by raising them to higher powers, multiplying them, adding to them, etc, I made quite a few different curves of varying shapes and sizes.
Your kids can enjoy playing with the variables in the plot function where they will be able to immediately see the results of their work. If your kid enjoys hands-on learning, as most people do, and enjoys discovering and creating, then parametric art is the perfect introduction to math and computer science.
Below is the complete code used to create the face above. As you can see, I simply defined a few equations, then combined them and manipulated them in a variety of ways.
deff( ‘[ff]=f(t)’, ‘ff=t/2′)
//top of head