img.latex_eq { padding: 0; margin: 0; border: 0; }
Showing posts with label maths. Show all posts
Showing posts with label maths. Show all posts

Thursday, 1 May 2008

'Oxbridge'

This post is for the Nonbelieving Literati; I'm afraid it may be less comprehensible if you haven't read the book. We've been reading 'A Room of One's Own' by Virginia Woolf.

I have been there.

I have been there, and they did not refuse me entrance to the library but bade me enter and write my name in a red book, as Newton once did. They gave me a room of my own with a desk and a bed and filled my mind to bursting six mornings a week.

Once a week I'd make my way to formal dinners, to sit with gowned humanities students getting drunk on nearly-free alcohol and discussing everything from politics to philosophy to pornography. We'd stay out late and optimistically propose meeting in Hall for breakfast the next morning.

They never did meet me, of course. Breakfast closes at 9am, no matter what day of the week it is. Nobody gets up for breakfast before 9am when they've been out drinking the night before. Nobody but me, innocently without a hangover, gazing out the window after the alarm had gone off and getting fired up on morningness like a child who has never seen the world before. I'd walk, run, dance through the garden, across the road, down the Avenue. I'd step with carefree possessiveness through those arches, into the nearly deserted Hall at breakfast on Saturday morning, and eat my fried eggs across from whichever portrait on the wall took my fancy.

There are no women on the walls.

I swapped Emmy Noether stories with another young woman one night. Did you know her father tried to stop her? And have you heard the quote about "Emmy is the centre of co-ordinates . . ."? And of course you know what Hilbert said, gosh but that was a good one.

We cling to Emmy Noether, just a little, we young algebraists and theoretical physicists. There are no women on the walls, but once upon a time in another place there was Emmy Noether . . .

Yet when I see the shallow layers worn away on the steps, worn down by the shoes of students -- those shoes are mine. Though they were all men, or most of them, their shoes are mine and my feet step in their footprints and they belong to me and I to them. Once this place was barred to us but we have found our way inside and the men who once lived here belong to us now, too. Their legacy is ours.

Our legacy will be yours, some day.

EDIT: The next book is my choice, and will be 'Zadig', by Voltaire. You can get it from Amazon or from a library, of course -- or if you don't mind reading it off a screen you can get it here for free.

Saturday, 5 January 2008

One of my favourite questions

(On the off chance that you don't understand a word of this but would quite like to, I've got half an explanation in the post below).

I always rather liked tutoring. It's definitely one of the better privileges of being a good maths student: small job, decent pay, not bad on a CV, and, best of all, regular opportunities to talk about mathematics. The best part of tutoring is definitely the questions people ask. One year, I had the lecturer's son in my tutorial group and he'd have a different question every week, guaranteed to be perceptive and usually quite hard to answer. That was fun. But you don't have to be a brilliant student to ask the question I'm about to explain here. You just have to be halfway interested and struggling with one of the trickier aspects of multivariate calculus.

The chain rule in the univariate case is fairly simple:



Because of the notation, it looks like a simple fraction cancellation, is easy to remember, and quickly becomes second nature. Moreover, you don't have too many variables to keep track of. You have y=f(x), x=g(t), and if you want to get really complicated you could note that y as a function of t would be written y=f(g(t)), and define f(g(t)) as being equal to some other, single function h(t), and that would be about it.

In the multivariate case, you have z=f(x,y), and then sooner or later you're going to be dealing with one of those 'change of variables' problems where you look at what z would be in terms of some other variables u and v instead. You have a problem like

and you'll be asked to figure out by first calculating , , and and then using the multivariate chain rule. So you look up the multivariate chain rule (or maybe you've got used to it by this stage) and it tells you nice and obviously that

and now you've got to work out and , which is a bummer, because you have u and v written as expressions in x and y, but what you need, in order to work out those partial derivatives, is the opposite. You're going to have to solve a simultaneous equation problem to get expressions that tell you x and y in terms of u and v.

Not everybody likes simultaneous equations, you know, especially when you have pesky 'u's and 'v's floating around instead of comfortable obvious numbers. At some point -- it always happens -- somebody is going to try to short cut.

"Look," they'll say...
"
"so
"
"and now I'll differentiate to get
".
"We're taking a partial derivative with respect to u so we hold everything else constant so we just treat x like a constant, right?"

Wrong.

The simplest way to point this out is to say "Look, x depends on u. It's equal to some function of u and v. So it's not constant as u changes and you can't take the partial derivative with respect to u and expect it to behave like a constant."

The conversation usually continues like this:

"So what do I have to do then?"
"Solve a simultaneous equation for x and y in terms of u and v. Get an expression for y that is only in terms of u and v, with no x terms, and then work out the derivative."
"Sigh."

Sometimes that's the end of it. Sometimes the student will probe further. It happens when you're talking to a student who bothers to think about things. Maybe it's the guy who discusses the problems he's working on with his friends and tries to work the tricky stuff out together. Or it'll be the young woman who always does her homework (all of it), and makes you feel embarrassed because you were never that dutiful, who abandons her usual meekness and asks, with a note of frustration in her voice,

"But why? Why can't I just do it the other way? I mean, I've got u, right, and I differentiate with respect to y holding the other stuff constant. Why does it matter whether the other stuff in the equation is x or v or whatever? I'm still basically taking the derivative of u in the y direction, right?"

I really like this question. I never asked it when I took that course and then I got really confused by basically the same issue when I started learning how to solve partial differential equations.

Remember, back in our univariate case, we had a function f that took you from x to y, a function g that took you from t to x, and a function h (equal to taking g, then f) that would take you straight from t to y. Now, it doesn't make sense to just talk about the derivative of y. There's a derivative of y with respect to x, and a derivative of y with respect to t. More to the point, though, the derivative basically depends on whether we are getting to y via the function f or via the function h.

It's the function we're using that counts. The derivative of y isn't a number associated with some numerical value of y, it's a number associated with how we pass through some point (x,y). We get that information about how we're passing through a particular point from the overall form of the function around that point. We call it "the derivative of y", but actually we're taking the derivative of a function that happens to be equal to y.

So, back up there, if you're taking "the derivative of y with respect to u", it matters whether the function that takes you from u to y includes x terms or if it's all in terms of u and v. It matters because you're changing the form of the function, and it's really the function that you take the derivative of.

You can also look at it this way. We say we're taking the derivative "in the u direction". In actual fact, though, the "u direction" really depends more on v that it does on u. The u direction is "the direction of increasing u", right? But there are lots of directions that increase u.



We could travel along any of those red lines and u would be increasing. But "the u direction" is the direction along which u increases without affecting v. And if the other variable that we're holding constant isn't v, if it's some other weird variable x that depends on a combination of u and v, then "the u direction" isn't "the direction of constant v" any more. It's "the direction of constant x". And that's different, so we get a different answer.

Make sense?

Lightning-Run Calculus: The Derivative

Bad news, oh ye who tremble in the presence of mathematical symbols! I had this cool idea for a maths post. And then I realised it involved multivariate calculus. And I didn't want to leave anybody out, so I thought I'd make a lightning-run post so that those who don't know any calculus and want to sort of have an idea of what I'm talking about should at least be able to get some of the ideas into your head.

I know that nobody who knows nothing of calculus is going to be able to pick up all the ideas presented in this post, all at once. I also know I'm not quite telling you everything you need to know to understand my post above. However, I figure that if you thought you vaguely understood something in the post I'm about to make after this one, you might be able to check in this post to see if you were thinking along the right lines.

At the bottom line, I just like having this stuff here for completeness.

I'm not quite sure if I can help anyone who is too afraid of algebra to understand the following:

Let m be the number of biscuits Mary ate. Let n be the number of biscuits Nathan ate. Between then, Mary and Nathan ate 12 biscuits in total. Therefore, m + n = 12.

You don't have to be able to figure out whan m and n are. In fact, in case you haven't noticed, you can't, because I haven't given you enough information. But I'm going to be working on the level of "getting the basic idea" rather than actually being able to calculate things, and I'm going to assume that you get the basic idea of how letters substitute for numbers in algebra. I'm also going to assume that you sort of get how we make a graph of a function like, say, . I mean, you might not be able to draw it off the top of your head, but I'm hoping you'd have a rough idea of what sort of a picture we're talking about, and you'd know that points on the curvy line drawn by the graph correspond to values of y, as calculated by that function, for given values of x.

Ready?

Derivatives

The derivative of a function at a point is the slope of the tangent line at that point. Here's a nice picture:


Picture created with the help of a piece of open-source software available here.

The red line is the function; the green line is the tangent line for the point x=1.8 . It just touches the graph of the function at that point without actually crossing it. As a result, at that point x=1.8, the function and the tangent line seem to be travelling in the same direction momentarily. By contrast, further to the right at x = roughly 7.2ish, the lines touch and cross each other. The green line is not a tangent to the red line at that point.

For the sake of accuracy, I'm forced to inform you that the tangent line at a particular point can cross the function at that very point. However, when that happens, it looks nothing like the right hand touching point above where the two lines cross at an angle. It looks like this:



The basic idea is that the tangent line shows you what the function would do if it stopped bending at that point and just carried on in a straight line in the direction it was pointing at the time. It tells you what direction the function is going at that particular point. There's a perfectly specific and accurate way of defining it, but I'm not going to go there. That's not because it's all that terribly hard; I just don't want to overload you with too many concepts. If you want to understand more fully, find a calculus textbook and/or ask me enough questions in the comments section to convince me you're enthusiastic.

The slope of the tangent line is a number that measures how steep it is. A vertical line would have infinite slope; a horizontal line would have zero slope. If the slope of the tangent line is a big number (i.e. if the derivative is large) then both the function and its tangent line are travelling upwards very fast at that point. If the slope of the tangent line (= the derivative) is close to zero, then the function is nearly horizontal at that point. If it's a negative number, the function is travelling downwards. Got it? Don't worry, I won't be testing you later. You should still go through and check that you understand the idea here, though.

We write the derivative like this:

By which we mean:
"The derivative of y with respect to x"
or,
"What we get when we differentiate y with respect to x"
(Differentiation is the process that takes a function and gives you its derivative)
or, equivalently,
"How fast y changes as we increase x"

There is an explanation for this seemingly strange notation, but it would require me to go into the subject in greater depth than I intended for this post.

Why do we care about this? Well, any time we want to talk mathematically about how something is changing, derivatives are relevant. For example, if the exchange rate is rising fast, then the tangent line to the exchange rate will have a big slope. We can use the derivative of the exchange rate as a way of factoring changes in the exchange rate into an economic model. If we want to talk about how fast the position of an object is changing -- that is, if we want to talk about an object's speed -- then we need to look at the derivative of a graph of the object's position. If we want to talk about how fast the speed is changing -- that is, if we want to talk about acceleration -- we look at the derivative of the speed. That is, the derivative of the derivative of the position.

It's no coincidence that physics took off after Newton discovered calculus. There was a direct causal relationship (more than one causal relationship in more than one direction, perhaps). This is very useful maths. It's about as useful as mathematics could possibly get.

Partial derivatives

Sometimes, in multivariate calculus, you have a function that depends on more than one variable. For example, you might want a function that can tell you how much petrol a car will use based on how fast it is going and how much weight it is carrying. Or you might want to make a graph of altitude based on latitude and longitude. If you want some three-dimensional pictures of functions (graphed along the vertical z axis) that depend on two variables (graphed on the x and y axes), you can go here and type in some expressions in x and y into the box on the upper right that has 'z = ' to the left of it. Try looking at, you know, z = x^2+y^2+3*x^3 or something (That's computer keyboard speak for , in case you didn't know -- you use the * instead of an x for multiplication. I know I'm being really pedantic here but I'm trying to be cautious).

There are several ways of finding a derivative in this situation. The simplest way, or at least the one you learn first, is to introduce the idea of partial derivatives. First you ignore the fact that you can travel in the y direction and just try traveling in the x direction. The slope in that direction gives you the partial derivative of z with respect to x:



We use a curly 'd' so we know there are other things that could also cause the z value to vary, not just x.

You can also find the slope in the y direction, pretending x doesn't change and just seeing how fast z changes as you increase y. The two partial derivatives together can be used to give you general information about the slope of the function at that point in any given direction.

In the specific example of the car, we could see how the amount of petrol being used changes as the speed is varied, for a given weight carried, by taking the partial derivative of the amount of petrol being used with respect to changes in speed. Or if we wanted to know how fast the amount of petrol being used would change as we changed the weight carried, for a given speed, we'd take the partial derivative of petrol with respect to weight.

The Chain Rule

One last thing. The chain rule. In the ordinary case where you just have a function y that depends on a single variable x, it goes like this. Suppose x is also a function of some variable t. So for any given value of t, we can put that into a function to work out the value of x, and then we can put that x value into a different function to give us y.

t --> x --> y

The chain rule exists to deal with the following question. Suppose we know how fast x changes as t changes, and suppose we know how fast y changes as x changes. How fast does y change as t changes? The chain rule can tell us.

In the case where you have a function depending on two variables, it gets more complicated. You can have z depending on x and y, which both depend on t -- so for any given t value there will be x and y values which will then give you a specific value of z for that t value -- so there's a 'chain rule' to work out the derivative of z with respect to t based on the partial derivative of z with respect to x and y, and the derivatives of x and y with respect to t. Or it's not uncommon to have x and y both depending on the same pair of variables u and v. In that case, you might want to work out the partial derivative of z with respect to u or to v. The chain rule is easily adapted to let us use the partial derivatives of x and y with respect to u or v to tell us.

I haven't told you how to actually calculate any of this. (In keeping with that, I haven't told you in this post what the chain rule actually is!) Largely, I haven't told you that part of things because becoming proficient at the calculational side takes practice. This means you won't be able to understand the calculations in my post above. You might get an inkling of the concepts, though.

Saturday, 8 December 2007

Of Grief in Dusty Corners, Take 2

The abstract halls of mathematics rise
in cool, high-ceilinged arches, every line
a segment of infinity, which lies
precariously, perfectly inclined.

Yet once it was a garden made for lovers,
a cornucopia of odds and ends
and evens, where unsteadiness recovers,
secure between co-operating friends.

And when I step through theorems again,
I fear that, in this subtle space, the scent
of grief in dusty corners will remain
to catch me where I thought to be content.

It's still not as good as Penelope, but who cares? I'm a lot happier with this version.

Saturday, 6 October 2007

Carnival of Mathematics #18

Thanks to JD2718 for including my post 'A Sequence' in the 18th Carnival of Mathematics.

EDIT: Okay, now I'm actually reading the stuff that's up. There are so many funny ones! Did you know there's a whole blog called Rigorous Trivialities? Parallel parking in terms of Lie Groups is rather pretty, actually. Or look at this post ("and before long, you’ve learned the first few weeks’ material of a course in real analysis and all confusion has departed" ... actually, now I'm worried that might not have been a joke. Are there people for whom all confusion has departed after the first few weeks' material of a course in real analysis?).

Friday, 5 October 2007

A Sequence

Start with the number 1.

To get the next number in the sequence:
(1) Go to the nearest integer strictly greater than the number you're on.
(2) Subtract the fractional part of your original number. The fractional part is the part that would be a fraction if you wrote the number in the standard 'composite' fashion (rather than an 'improper fraction'). For example, the fractional part of three and a half is a half; the fractional part of one and seven eighths is seven eighths.
(3)Take the reciprocal. (The easiest way to do that, as anyone with any mathematical fluency will tell you, is to write it as an improper fraction and then 'flip' the fraction -- put the bottom number on the top and the top number on the bottom. For example, three and a half is equivalent to 7/2; the reciprocal is 2/7. If you don't know why three and a half is 7/2 then, um, I'll be happy to explain in the comments...)

There are several ways of writing this as a mathematical formula. If x is the current number, then one way of writing the next number is

1/[_x_ + 1 - frac(x)]

where frac(x) is the fractional part of x, and I'm using the underscore for a floor function, which takes the nearest integer less than or equal to the number (floor function plus one gives the nearest integer strictly greater than the number, as required by the description above). If you're trying to follow without much mathematical experience, I'll give you for free that one over a number is always the reciprocal.

That's not necessarily the neatest formula; tidy it as desired, if you like that sort of thing.

Now go play.

No, seriously. If you're an experienced mathsy type, try to prove that the sequence contains every possible positive fraction exactly once (yes, people, sequences like that are possible). I did it in four hours -- working with a friend who was obsessed with Fibonacci numbers :-). Another friend of mine got it by himself in three, but our proof was nicer. And the Fibonacci numbers may or may not be a clue.

If you need a reason to go play, look at the sequence:

1

1/2

2

1/3

3/2

2/3

3

1/4

4/3

3/5

5/2

2/5

5/3

3/4

4

...

It's just kinda cool. Any and all patterns may or may not be useful for proving you've got every fraction in there....

Friday, 9 March 2007

Carnival of Mathematics #3

The third Carnival of Mathematics is up on Michi's Blog, including a submission from yours truly.

Thursday, 1 March 2007

Time as the Fourth Dimension

I fully intend to go off on a lovely tangent about mathematics and intuition one of these days. Until then, though, Alon's reaction to my post about how mathematicians deal with more than three dimensions brings up a point that is interesting in light of the other thing people always ask when the subject of four dimensions comes up.

Alon points out that, once you start describing four dimensions in terms of four co-ordinates, the justification for calling your extra co-ordinate an extra dimension follows largely from the fact that you get some sort of four-dimensional geometry thereby. Most geometrical notions in two and three dimensions generalise in obvious ways to the case with four or more dimensions.

Length is defined using Pythagoras’s theorem, and angle is defined using inner products. Linear transformations are defined by the more easily generalized property that T(v1 + v2) = T(v1) + T(v2) and T(kv) = kT(v), which coincides with the more concrete definition in two dimensions.

Because of what I am about to say, I'm going to note here that "linear transformations" include particularly nice geometrical notions like rotations and reflections as well as things which bend, stretch and squash shapes in well-defined ways.

Now, The Question.

What's with relativity and that whole "time is the fourth dimension" thing?

Well, there's one obvious answer. If a particle is situated in a particular place at a particular time, you can write the particle's position in space and time using four co-ordinates (x, y, z, t). Four co-ordinates, four dimensions - but that's not all there is to it. After all, you could have written the particle's position using four co-ordinates in that fashion well before the special theory of relativity had ever been dreamed of. What is it about relativity that makes this viewpoint suddenly relevant?

The word "relativity" refers to the notion that the way we define our co-ordinates is relative. For example, I might say that the point (0, 0, 0) in the usual three-dimensional space refers to the lower left hand corner of my computer screen. You might, instead, choose to say that the point (0, 0, 0) refers to the lower left hand corner of your computer screen. It shouldn't matter whether we number our points with my system or your system - the geometry (or physics) is the same. Where we put the zero point is just a matter of how you describe it. Similarly, you might say that the x axis points directly in front of you - or you might say that the x axis points directly to your right. It doesn't matter which way you define it (ignore the fact that the rotation of the Earth is going to make your co-ordinate system rotate - in other circumstances we might want to avoid that, but this is just an example).

There are well-defined mathematical ways of getting from one co-ordinate system to another. Not coincidentally, they often involve linear transformations - for example, going from the system where the x axis points straight in front of you to the system where it points directly to your right involves a rotation.

Before special relativity, time was basically exempt from these sorts of co-ordinate changes. Oh, you could define the moment at which t = 0 in different ways, but that was about it. Rotating some of your space so that it points in the time direction would just be stupid - or so you would think. In special relativity, though, that is almost exactly what you do. Depending on how fast you are travelling, and in which direction, you get a bit of space in your time direction. The linear transformation involved isn't a rotation, though, so time is not just the same as all the other co-ordinates. Thus, special relativity does not allow you to turn your time all the way around so that it goes backwards, in the same way that you can rotate your x axis so that it points in the opposite direction. However, the similarity to co-ordinate changes in three-dimensional geometry is visible enough that the idea of time as the fourth dimension as a consequence of relativity has stuck.

Tuesday, 27 February 2007

"But if you can't picture it..."

The other day, I was talking to a couple of friends of mine - a literary theorist and a historian/political scientist - about the (apparently) recently proved Poincaré Conjecture. The Poincaré Conjecture involves a statement about the 3-sphere - that is to say, something like the usual sphere, but one dimension bigger. In order to visualise a 3-sphere, you would need to picture it in four dimensions, just as the usual sphere (2-sphere) is usually considered to be a two-dimensional surface, embedded in three-dimensional space. The idea of four dimensions can provoke puzzlement among humanities students of a sort to startle a blasé mathematician for whom such things are second nature. My friend the student of history and politics asked, with a slightly concerned look on his face,

"Can mathematicians actually picture four dimensional space?"

"Roger Penrose says he did it - briefly - once," I said, grinning [1].

"No, but are there people out there who can actually..."

"Not that I know of."

My historian friend was relieved. My literary theorist friend was confused. "If you can't picture it," he asked, "how could you have any intuition about it? I mean, you could just say whatever you wanted about it and no-one would be able to refute you."

The first way that students of mathematics start dealing with four (or more) dimensions is fairly simple. If you're in two dimensions, you can describe any point with, say, an x co-ordinate and a y co-ordinate.


To go to three dimensions, you need a third co-ordinate in, say, the z-direction (use the previous picture but imagine the third axis coming out of the screen towards you.). To go to four dimensions, add a fourth number, and there you have a way of describing four dimensional (flat/Euclidean) space.

It gets more complicated when you start dealing with curved surfaces, but the idea is similar. If, earlier, you wondered why we consider the surface of a sphere to be two-dimensional, think of it this way. The Earth is approximately a sphere. We can describe positions on the Earth's surface with two co-ordinates: latitude and longitude. Two co-ordinates, two dimensions. Exact definitions might worry about the poles, where there is no real longitude to speak of - it could be anything - but there are fairly simple ways of getting around that which need not concern us here.

Besides the question of four dimensions, there is a broader principle raised by my friend's comment. The extent to which intuition plays any role at all in the basic system of mathematical proof is arguable. This is a fascinating topic in its own right that deserves a post of its own, so for now I shall simply promise to address it later.

[1] He says it in The Emperor's New Mind.

Friday, 9 February 2007

Carnival of Mathematics

Alon Levy at Abstract Nonsense has put together the inaugural Carnival of Mathematics. I suppose I really ought to try to get something together to help the gender balance along for next time...

Sunday, 4 February 2007

Counting on your Fingers

In my post on bases of number systems I asked, rhetorically, "Why ten?" Why do we use base ten rather than another base? It's worth noting that this is not just a cultural thing - most cultures use 5, 10, or 20 as a base for their way of counting. The obvious answer is that we have five fingers on each hand; ten fingers total; twenty fingers and toes. This is supported by the fact that, in some cultures, the word for 'five' is related to the word for 'hand'. Indeed, in English, the word 'digit' can also mean 'finger'. People have been counting on their fingers for a long time.

The only exception that I know of, off the top of my head, is the Babylonians. Their system was essentially in base 60. There is an advantage to this.

Why is the five times table easy? 5, 10, 15, 20, 25... it's a nice pattern. The reason the pattern exists is because 5 x 2 = 10. As a direct result of this, every element in the sequence of multiples of five has the same final digit as the element two steps back. Similarly, every element in the sequence of multiples of two has the same final digit as the element five steps back (check this if it doesn't seem immediately obvious). Times tables are easier for numbers which are factors of the base you are using. Indeed, multiplication in general is easier for numbers which are factors of the base you are using. For instance, a quick way of multiplying by five is to multiply by ten and then divide by 2. And fractions? 1/5 = 0.2 and 1/2 = 0.5, but if you want to divide by three or seven or nine - by anything which is not a multiple of 2 or 5 - you're going to end up with an infinite (recurring) decimal expansion. In fact, six is a multiple of 2 but 1/6 still has an infinite decimal expansion because the fact that it is also a multiple of 3 mucks things up.

I hope you can see that using a base that had a large number of factors would give you considerable advantages. Ten is pretty useless in this regard actually. Short of using a prime number (which has no factors apart from the obvious factorisation into one times the number itself) we really couldn't have done much worse. Sixty, on the other hand... sixty is rather large, but let me show you why the Babylonians liked it:

60
= 2 x 30
= 3 x 10
= 4 x 15
= 5 x 12
= 6 x 10

2, 3, 4, 5 and 6 all go nicely into 60, and bring some other numbers along for the ride. That's why the Babylonians used it.

Closer to our usual ten, twelve would have been pretty good:

12
= 2 x 6
= 3 x 4

2, 3, 4, and 6. For a small number like 12, that's about as good as you could hope for. Why couldn't we have had six fingers?

Actually...

There's a lot to be said for counting on your fingers in base six! Look at it this way. In base 10 we have 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. On our hands, we have only five fingers, but we can also make a zero by putting up no fingers. So we have 'digits' 0, 1, 2, 3, 4, 5, representable by holding up that number of fingers on a single hand. We count like this:

ONE: hold up one finger (on the right hand, say)
TWO: hold up two fingers on the right hand
THREE: three fingers on the right hand
...
FIVE: five fingers on the right hand
SIX: zero fingers on the right hand, one finger on the left

Can you see how this works? In order to recover the original number, we multiply the number of fingers on the left hand by six, and add that to the number of fingers on the right hand (multiplied by one). This is similar to the way 23 is equal to the digit on the left multiplied by ten, added to the digit on the right (multiplied by one). We are in base six rather than base ten. We continue:

SEVEN: one finger on the right hand, one finger on the left
EIGHT: two fingers on the right hand, one finger on the left
...
TWELVE: zero fingers on the right hand, two fingers on the left

The highest number possible has five fingers on both hands. That's five times six, plus five = 35. 6 x 6 = 36 plays a similar role in this system to the one played by 10 x 10 = 100 in the usual one. We would need a third hand ("digit") to represent it.

Base 6 would be better than base 10 in some ways. 6 is smaller than 10, but it has the same number of factors. The only number less than 6 that isn't a multiple of a factor of 6 is 5. Maybe we were created by a being that knew more about maths than about how to create people that would be good enough at maths to notice from the first that 6 is a good base to use for counting on your fingers. I am obliged to confess that I had been counting on my fingers in base five for years before a friend of mine pointed out that six would be more sensible!

Saturday, 3 February 2007

Bases of Number Systems

Take a number. Take 462, for example. That's 4 x 10^2 + 6 x 10^1 + 2 x 10^0. Yes?

Or take 43.5. That's 4 x 10^1 + 3 x 10^0 + 5 x 10^(-1).

If your knowledge of raising things to a power is a little rusty and you think that having something to the power of zero or negative one looks strange, think about it this way. Ten cubed is 1000, right? Divide by ten and you get ten squared. Divide that by ten and you get ten to the power of one. Divide that by ten and you get... ten to the power of zero (which equals one). Divide by ten again to see that 1/10 = 10^(-1).

The point is, this is the way we choose to write our numbers: the first digit to the left of the decimal point takes its value multiplied by one, the next one along to the left adds its value multiplied by 10, the next digit adds its value numtiplied by ten squared, and so on. If we proceed to the right of the decimal point the digits start adding their values multiplied by 1/10, 1/100 and so on. A number system which uses powers of ten in this way is said to be in base 10.

Why do we use ten? Theoretically, it doesn't have to be ten. It can be two. This is called base 2, or binary. There are only two possible digits, zero and one. If you want to write the number two, you have to remember that the digit which is second to the left of the decimal point now takes its value multiplied by two. So we write:

10 = 1 x (two)^(one) + 0 x (two)^(zero) = two

I have chosen not to write two as '2' in the above because this symbol is part of the base 10 system, and it could cause confusion in the above if the left of the equation is written in base 2 and the right of the equation is written in base 10.

What if you want to write three?

11 = 1 x (two)^(one) + 1 x (two)^(zero) = three

Four?

100 = 1 x (two)^(two) + 0 x (two)^(one) + 0 x (two)^(zero) = four

And so on.

You can use any natural number greater than one as a base. If you want to use the number thirteen, the fact that it is greater than ten will mean you will need to come up with new digits to represent 10, 11 and 12.

Writing a number in a different base doesn't change any of its arithmetic properties (unless those properties involve something like adding up the digits, of course!) Two plus two is four whether you write that as 2 + 2 = 4 or 10 + 10 = 100. Two times three equals six whether you write that as 2 x 3 = 6 or 10 x 11 = 110 (work out that last one: 1 x (two)^(two) + 1 x (two)^ (one) ).

It's just a question of how you choose to write it.