Unscheduled Post: No Science without Fancy

March 30, 2009

A great post from Scott Aaronson on Shtetl-Optimized talking about rational literature, with the wonderful point that in many works that do mention science:

the juvenile humor at the core of how science works will be absent, replaced by a wooden earnestness more in line with the writer’s preconceptions.

However I do think that Scott is a little harsh on literature.  The world is complicated, it cannot be simplified in general.  The magic of science is that it finds things that can be simplified ways that things can be put into simple rules and mathematical rules.  In a similar manner but with different methods most authors strive to find ways of making everything fit together.  His top five are an excellent start for those who have also understood something of science in their work.  I would like to add five of my own:

J L Borges

The commentators on the article got there before me, but he deserves repeating.  What other writer would think to put a library in the universal cover of a 3-torus.

Georges Perec

If you want silly games leading to deep thought Perec is your man.  In his masterwork
using jigsaws, graeco-roman squares and permutations to describe how perfection is impossible and the greatest scheme cannot help but be flawed in some way.

Jan Potocki

The Manuscript Found in Saragossa
 includes accurate renditions of cutting edge mathematics, in the work of the Bernouills.  That was of course cutting edge in the eighteenth century.

Terry Pratchett

The Unseen University parodies to a T the pomposity, silliness and brilliance present in most universities.  It is a deeply sympathetic portrait of the wizards who normally in the end and often not in the way they intended manage to save the day.  

Vladimir Nabokov

Nabokov was a published scientist, doing worthy work in the study of butterflies, probably not at the same level as his writing.  His famous quote sums up the point I want to make and provide the title for this:

There is no science without fancy and no art without fact.

I could go on, it was hard enough to bring it down to five, I left out Neal Stephenson to get it to five as he had been added to the comments several times.  The original list was interested in the puncturing of pomposity, rather than a simple understanding of science.  However of my five the three P s Pratchett, Perec and Potocki tackle definately pomposity both outside and within science.


Surfaces 2: Algebraic Surfaces

March 29, 2009

There is a boring intro, pictures below…OK, here’s a taster…

cayley

Consider the history of numbers, it starts, of course, with the whole numbers, starting from one.  The numbers we use to count things, to a mathematician the Natural Numbers.  Subtraction however is a very useful operation but it has a problem 5-7 seems like a reasonable thing to do, but the answer is not a natural number.  After a surprisingly long time people accepted that it was worth including negative numbers and zero.  This gives a system in which we can add and subtract freely without coming across new numbers, we can say that this new system the Integers is closed under addition and subtraction.

God gave us the integers; the rest is the work of Man.
Leopold Kronecker

The next step is to use multiplication.  The integers are closed under multiplication.  However consider the following equation: 3*x = 6.  In this case we can see that the only possible value for x is 2, as 3*2 = 6.  To calculate this we need an additional operation: division, so we have 2 = 6/3.  Once again we are faced with a problem.  Division needs new numbers, as the only solution of 5*x = 6 is 6/5.  The solution is simply to include these numbers in our system.  We now have the collection of all fractions.  The Rational numbers.  

Continuing this process we can now consider a sequence of multiplications and additions together and ask for solutions.  For example taking a number, multiplying it by itself, and then asking when this is equal to the original number plus one.  This gives a polynomial: x^2 = x + 1 , which is the same as x^2 - x - 1 = 0 .  By convention polynomials are written with 0 on one side of the equation.  Finding solutions to such equations has a long history in early mathematics, and the general case was only understood in the nineteenth century, involving Complex numbers and the elegant insights of Galois.  

What happens when we allow more than one unknown in the equation? The answer is that instead of getting a small number of points in many cases we get a line.  For example consider the equation x^2+y^2-1 = 0.  The points (x,y) that satisfy this equation are the points on a circle of radius 1.  By changing the -1 we get circles of different radii. When this value is 0we no longer have a line the only possible point is (0,0), that is the circle of radius 0, as both x^2 and y^2 must have positive values.  Similarly if this value is positive there are no solutions with real numbers (I will avoid complex numbers for this post).  

A different way of looking at this is to consider the function f(x,y) = x^2 + y^2 this attaches a value to every point on the plane.  We then want to consider the set of points with a particular value.  In the first example this is 1.  

Lets now go to three unknowns.  We now start to get very interesting as the sets of solutions move from lines to surfaces.  As a first example we can try the generalisation of the equation for the circle above to three variables x^2 + y^2 +z^2 = 1.  Perhaps unsurprisingly we get a sphere:

sphere

x^2+y^2+z^2-1

So what else can we get from these equations.  In fact a very wide collection of things, and I encourage you to play around using some of the software available to draw arbitrary equations.  For the images in this post I used surfex, a front end for surf, but this is a little bit of a meal to set up, also it does not produce three dimensional models.   There are easier options on the web,  the Liverpool surface modelling package can be used to generate models online and it has an online front endend to play with.

So have you been away to play?  That is a far easier way to gain intuition than trying to decypher my cryptic comments.  However a some point one moves from being willing to simply try random equations to wanting to put some control on the process.  So here is some guidance as to how you might do that.  Yes, this is part of the plot to generate unlimited numbers of maths based logos, that I mentioned in the last post.

To design I will work with the idea of genus introduced in the last post.  This is the number of holes through the surface.  The definite cheat of google can home straight in on equations for the Torus/donut with genus one.

torus

(x^2+y^2+z^2+.5)^2 - 4(x^2+y^2)

We will therefore start by trying genus two.  As two dimensions are easier to work with, what can we do on the plane.  A little playing comes up with x^2 - y^2 - x^4 = 0 that gives a figure of eight.  For consistency I will draw this in three dimensions.  If we do not include z in the polynomial then this direction does not change where the zeroes lie so we get a cylinder with cross section given by the curve in two dimensions.  

figure_of_8

x^4 -x^2 +y^2

So how can we use this curve to give a surface?  We have to make it change with z, and when we cut through for some value of z we will see two curves.  Lets get two curves close to this one therefore.  To do this we can first square the function (x^4 -x^2 +y^2)^2 this does not change the set of zeroes, but when we consider the function on all space it makes all values positive.  If we look at the points which have a small value therefore we will get two curves close to the figure of eight:

curves_round_8

(x^4 -x^2 +y^2)^2 - 0.1

Now we need to get the small value to change with z being negative in a small range, zero at two points, so the surface closes up and positive elsewhere.  If the value is positive then there are clearly no zeroes, as (x^4 -x^2 +y^2)^2 is always positive itself.  We have already seen how to get this, using z^2.  Adjusting numbers a little to improve the image gets the desired surface with two holes:

genus2

(x^2-y^2-x^4+0.159)^2+(z^2-0.043)

One technique that we used here was to square the function so that every point in space was given a number greater than or equal to zero.  This suggests a second method to make holes.  If we take a function that only gives positive values and add a second function, then the surface of zeroes for the sum must lie in the negative region of the second function.  In other words it cannot cross the zeroes for the second function.  Furthermore, as 0 + 0 = 0 the new surface will touch the surface for the second function on a curve in the zeroes of the first.  Its easier to see a picture.  Take the sphere as defined above x^2 +y^2 +z^2 - 1 = 0, square the function to get (x^2 +y^2 +z^2 - 1) ^2= 0 and now add a second function, x perhaps, giving (x^2 +y^2 +z^2 - 1)^2 + x = 0.  This can be zero only if x is positive, so we have:

(x^2+y^2+z^2-1)^2+x

(x^2+y^2+z^2-1)^2+x

The sphere now bows back in touching but not going through the plane x = 0.  We can do a lot with this trick to create holes.  For example, sticking with the sphere, let us use one of the functions from above to cut four holes in it:

punctures sphere

(x^2+y^2+z^2-2)^2+.01*(x^2-y^2-x^4-.01) given by x^2-y^2-x^4-.01 cutting through the sphere.

As a quiz, what is the genus of this surface?

A final more complicated example uses the function x^4 + y^4 + z^4 = 0, this defines a rounded off cube, that cuts through the sphere in an interesting way, to give an interesting surface:

cube_sphere

Clockwise from upper left: round cube x^4+y^4+z^4-1, round cube and sphere, sphere and (x^2+y^2+z^2-2)^2+.1(x^4+y^4+z^4-2), sphere cut away by round cube: (x^2+y^2+z^2-2)^2+.1(x^4+y^4+z^4-2)

To finish the surface I began with, this is a Cayley surface, with four singularities (the places the surface comes to a point).  Up to some non-trivial transforms of surfaces this is the unique cubic surface with this property, a cubic surface is a surface where  no more than three of x, y and z are multiplied together, so x^3 and xyz are possible but x^4 or $x^2y^2$ are not.  This surface is the same as the model I showed in my previous post.

cayley

5(x^2y+x^2z+y^2x+y^2z+z^2y+z^2x)-2(xy+xz+yz)


WoW 1: Perspective Carpark

March 26, 2009

Without further ado, the first winner:

Images of the Eureka Tower carpark in Melbourne. Axel Peemöller uses perspective drawing to create directions that are very large, yet only readable from the directions in which they make sense:

Maxwell Demon: Website of the week

A new feature! I am going to start handing out awards, the imaginatively titled “Maxwell’s Demon” website of the week:

wowThere is even a prize, £50.  Though I am lazy so the conditions of this are that the winner:

1) Realises they have won.

2) Contacts me.

3) Puts the logo on their site.

Of course 3 is hard to enforce so you could probably take the money and remove the graphical mess.  I will therefore claim that 3 is to ensure that you are indeed the winner.


Unscheduled Post: Faster than the speed of wind

March 24, 2009

Terence Tao has a beautiful analysis of sailing, in particular:

One of the more unintuitive facts about sailing is that it is possible to harness the power of the wind to sail in a direction against that of the wind or to sail with a speed faster than the wind itself, even when the water itself is calm.

Using his model he shows that:

…one could in principle reach arbitrarily large speeds and directions…I do not know however if one could actually implement such a strategy with a physical sailing vessel.


Follow

Get every new post delivered to your Inbox.

Join 203 other followers