Showing posts with label mathemagical. Show all posts
Showing posts with label mathemagical. Show all posts

Friday, September 5, 2014

QFT is (not) hard

Yesterday was our faculty's postgrad symposium, where science students of all descriptions attempted (usually with some measure of success) to explain to science students of all other descriptions what their research is all about. This necessitates some creativity and has left me thinking (not for the first time) about whether or not QFT is indeed inexplicable. It seems worth writing up a few thoughts here.

QFT is hard.

There's a reason that nobody less than four years out of high school gets QFT (for an approximate value of nobody and allowing 'gets' to be ill-defined) and nobody with less than six years of tertiary education has actually used it in any practical way. (Again, generalisation, but I don't think it's far off the mark.) QFT is a very abstract, mathematical theory and divorcing it from the mathematics is like trying to explain swimming without water. If you want to understand QFT, come back when you have a degree's worth of mathematics. This is perhaps a little too depressing, so let's try another tack. 

QFT is not hard

Sure, the scientists who do QFT research need lots of training and deal with scary equations all day, every day, but that's not the heart of what they're doing. They're actually doing calculations on "god particles" and quarks, which are basically very small marbles glued to elastic bands which are other particles called gluons and the gluon is massless which means it's like a fish that can swim through the god particle molasses slickly, unlike the other particles, which are like whales because they have masses.

Now, I will admit that our building houses not just the physics department, but also the oceanography department and the Marine Research Institute, but we are separate departments. A quark or a Z boson is nothing at all like a whale. In fact, the work I do on a day-to-day basis involves talking about mathematical abstractions that can be experimentally tested using the ideas of such particles, but doesn't really talk about particles at all. So while I do think that non-specialists should be able to get an idea of what's going on in QFT, I'm not convinced that these analogies do much more than make people think they know what's going on. Which is perhaps worth something, but seems suboptimal.

QFT is (not) hard

QFT is an abstract theory based on abstract mathematics. If you want a genuine feeling for how it behaves, you need a genuine feeling for how maths behaves. To reuse an analogy (since I've decided they're not all bad), you can't understand swimming if you don't know what water is. QFT is related to abstract maths just as intimately and shying away from it doesn't help. But what I think we miss is that all you need is a "genuine feeling for how maths behaves". I say 'all', but of course such a feeling can be hard to come by. However, it's an awful lot easier to come by than a degree in mathematics. It almost has to be.

I don't think you need to be able to calculate a commutator to get a feel for what's going on in QFT. I do think you need to know that sometimes in maths, as in life, order matters. 2 + 3 = 3 + 2. I don't care whether you put on your hat and then scarf or you scarf and then hat. But pq is not the same as qp and you should put on your socks before you put on your shoes, unless perhaps you're going to a fancy dress party.*

For some reason we don't seem to want to explain QFT this way. Perhaps it's because we've all learned in school that maths is terrifying. Perhaps it feels like it takes us too far off topic. (I feel this every time I try to give a talk about QFT, but I find there's nothing to say if I take out the maths.) Perhaps we just haven't thought about it enough. (We almost certainly don't think about science communication enough.) Perhaps it is happening, but I'm not aware of it (and neither are my scientist friends, which would mean it needs way more publicity).

I'm still working out where  this leaves me. It means that when I talk about QFT for a general audience, I don't shy away from the maths. Maybe it means I need to write and/or talk about these ideas more often (she said, guiltily writing her first blog post in months). Maybe it's enough to be aware of it and to talk about. Maybe I need to pick fights about it. Maybe (definitely) it's not all a problem for me to solve, all on my own, today. But it's a topic that deserves some thought, in the midst of marking and debugging and trying to put in those six years you need to learn to use QFT. We'll see.

____
* I feel like a cheat putting in mathematics without explaining the physical significance. The p and q here are representing the tools we use to measure the position and momentum (which gives us the speed) of a particle respectively. The maths tells us that the order in which me measure them matters, because pq ≠ qp. This means that making one measurement must somehow corrupt the other (it doesn't tell us how that happens, sadly). This in turn means that if we measure the position correctly, we can't measure the momentum and vice versa. This is Heisenberg's Uncertainty Principle (which is one of the most obvious and well known consequences of order mattering, although not the only one). You can talk about thought experiments, like the Heisenberg microscope, to make it seem more intuitive, but it comes from the fact that if we choose maths that gives us the right answers, order matters when you write down p and q.

Monday, July 14, 2014

Definitions and Discoveries

At first glance it seems that it would be rather silly to mix up the ideas of a definition and a discovery, but at least in maths (and perhaps especially theoretical physics) it's surprisingly easy to do. Both processes produce rules that allow us to go on and derive new rules and descriptions -- the big difference is where they come from.

Might require a change of maths.
Suppose, for instance, that I want to construct a rule using the word "good". Then I would work out what the word "good" means for the rule by seeing how it works in the world -- I would discover it, rather than defining it. (There might be situations where you would choose to define it differently from how it works in the rest of the world, but you would have to be clear that you were doing something funny then.) This is rather like how we decide to write the description of gravity as pulling things together. Mathematically you could write about it as a force that pushes things apart, but that wouldn't describe the gravity we experience. Likewise, if you want to describe arithmetic as we know it, you can't decide whether 2+3 and 3+2 are the same thing. You discover that you don't get the expected results unless they are. (One might decide to define it differently anyway, but then one would no longer be talking about ordinary arithmetic.)

Things get more complicated if I have a procedure that involves putting "un" at the beginning of words. I can't go out and discover the meaning of "ungood", because it's not a word you can find in the world. Nothing about the way people talk changes if I interpret "ungood" as meaning "butterfly" or "convenient" or "pirouetting", because people don't say "ungood" in the first place. Situations like this tend to crop up in the intermediate mathematical steps of a physics problem. I've translated the situation into equations and now I want to solve them. Solving equations doesn't mean anything physically, although the solutions should be something we can translate back. That means there aren't clear physical requirements on what is or isn't allowed in trying to solve the equation. 

If I want to be able to use the "un" procedure, I have to come up with a meaning for "ungood". There's nothing stopping me from picking any definition I like -- but some will be more useful than others. I'd like to pick a definition that means the "un" procedure does the same thing it does to other rules. "Decided" becomes "undecided", "expected" becomes "unexpected" and "forgettable" becomes "unforgettable", all of which do mean things already. It makes sense that when "good" becomes "ungood", it means the opposite of "good". We might define "ungood" to mean "bad".

We don't have to define it that way, though. We could go by similar phonetics instead and define "ungood" to mean "unguent". The "un" rule wouldn't work as expected any more, of course. But if I were writing a speech-to-text program, say, that might be less important than the phonetics. Besides, it's not like the "un" rule is infallible anyway -- look at how "til" becomes "until". It's only if I want the definition to work in a system where the "un" rule always produces opposites that defining "ungood" to mean "unguent" would be inconsistent.

The same thing happens mathematically. If something doesn't exactly match up to some physical observable, we need to define what it means. Some definitions make more sense than others when it comes to translating back and those are the ones we choose. But unlike making a discovery, it is a choice. We decide that we want certain rules and procedures to do what they do elsewhere and choose to define things accordingly. The definition isn't forced upon us by the way the world works. 

Why do I care about such a subtle difference? If you just want to apply the rules, it doesn't really matter. But if you want to understand where they come from and what makes physics tick, you need to know what's required to describe the world and what's just a helpful way of thinking about intermediate maths. And that's why I'm quite sure I'm neither the first nor the last physics student to say "Oh is that just a definition? It all makes sense now..."



Savo 'lass a lalaith.

Tuesday, June 17, 2014

Of spin and other nonsense


From the Oxford English Dictionary:

spin:

noun 1 A rapid turning or whirling motion
 ...
1.4 Physics The intrinsic angular momentum of a subatomic particle.
...
noun 3 [in singular] The presentation of information in a particular way; a slant, especially a favourable one

I was going to write something about covering groups, which I've been reading about today, but one of the applications of covering groups in theoretical physics is in linking quantum spin to rotations. Spin is fascinating and weird. I got sidetracked.

I suspect that spin is not really all that weird, if one thinks about it properly. But in the process of discovering what exactly holds the world together, one doesn't always come across ideas in contexts that make it easy to think about them properly. Such is the case with (quantum) spin, which, despite the name, does not involve any rapid twirling or whirling motions. In fact, all the talk about twirling and whirling could probably be classified as spin in the third sense "presentation of information in a particular way; a slant, especially a favourable one" (but not necessarily an accurate one).

Spin is just a property of a particle (I'll disagree with the OED on its technically needing to be a subatomic particle, but admittedly that's overwhelmingly the context where we talk about spin.) It's easy enough to imagine a particle having a position. It can have a mass, which we tend to think about in terms of how much it weighs -- although the ideas aren't quite the same. We're happy to think about a particle having a speed. Other things are harder to imagine.

We know that there's a thing called electric charge. It's what makes lightbulbs shine and computers compute. It's the reason you can rub a plastic ruler on your head and use it to pick up scraps of paper; and the cause of thunder and lightning. It certainly seems to exist. But what exactly is it? Well, it's electric charge. If we describe it as being like something easier to imagine then we're describing it as being something different from itself.
 
There's another thing called spin. People sometimes try to describe it as whirling and twirling, because that's easy to imagine and the context in which it was first noticed. In fact, it can be linked very closely -- but not identically -- to the idea of rotations using the mathematics of covering groups. However, spin is not about twirling and whirling, so we end up describing it as something other than itself when we take that route. It tends not to end well.

Low-pressure sodium lamp 700-350nm widened
There are two yellow lines in the sodium spectrum, not just one.

Spin is a thing that means splitting the light from a sodium lamp with a prism produces two yellow lines, instead of just one. There's a yellow line for each kind of spin. Spin is the thing that means if you fire a stream of particles into a magnetic field, some will go up and some will go down. It means electron energies are arranged twice as efficiently as you might expect. Like electric charge, spin has noticeable effects. Even if we can't exactly imagine it, it makes sense to talk about it.

That's where the maths comes in handy, of course -- it gives us a way to talk about things like spin, even when we don't have a convenient way to imagine what they 'actually' are.

Savo 'lass a lalaith.

Wednesday, June 11, 2014

I should be debugging

, but the server's down and sometimes it's good to step off the hamster wheel. I think. Maybe. It's okay to step off the hamster wheel, right? Are we allowed to admit that there is a hamster wheel?

I'm not complaining, mind you. I love my work. Really, laugh-out-loud, love theoretical physics and seeing how ridiculously, beautifully abstract mathematics can describe the real world and how things actually happen. I love C++ debugging somewhat less, but I can accept that it's part of the package. Which isn't to say it's not a bit of a hamster wheel.

On Saturday at a workshop on science communication I told an auditoriumful of people that I was infatuated with Grassman algebras. That isn't a hamster wheel. It's something to remember and savour. It's a reason to get on the hamster wheel when the wheel needs to be turned, even if I don't seem to be going anywhere.

Grassman algebras are very neat. See, ordinary numbers commute. That means you get equations like

ab - ba = 0
which is to say

ab = ba.
Five times three is the same as three times five, and for most of the things we want to use maths for, that's awfully convenient. If I switch the length and breadth of a room, I don't want the area to change! But sometimes switching things around does change things. Putting on my shoes and then my socks is not the same as putting on my socks and then my shoes.

It turns out that in particle physics there's a family of particles -- called fermions -- that behave like this. If fermion the first and fermion the second are identical (for instance, they might both be electrons), it still matters which order I put them in. No, that's not intuitive, but it does seem to be the way nature works. If I switch fermion one and fermion two, so that instead I'm looking at fermion two and fermion one, the mathematics I'm using needs to have a minus sign attached. And that's where Grassman numbers (the things you use in Grassman algebras) come in. Grassman numbers don't commute, they anticommute:

ab + ba = 0 

which is to say

ab = -ba.

In fact, Grassman numbers behave just the way fermions seem to. That means that while I might describe the length and breadth of a room using ordinary ("real") numbers, it's more convenient to describe fermions using Grassman numbers. I have to modify the rules of maths slightly to make sure that they anticommute, but otherwise I can carry on just as before. The kind of number I'm using does most of the work and I don't have to keep accounting for the odd behaviour of fermions. The fact that they do strange things when you swap them around is built in.

 I think that's pretty. Just about pretty enough that I might muster the willpower to go and ask C++ why it insists that the solution to my equation is infinity. (The solution is not infinity. Unless I've given it the wrong equation. Or the wrong method for solving the equation. Or I accidentally typed +∞ before printing the answer. Maybe I'll go check that last one.)
-----
Savo 'lass a lalaith.

Monday, March 3, 2014

Patterns

 Some correlations without much thought on the mechanisms behind them. Things I've noticed. 


Three participants at the Cape Town heats of the FameLab science communication competition prepared their talks for both regional rounds before the day. (The others prepared the second talk during lunch break.)
//
The same three participants were the three sent through to the national stages.

(Did they [we] do better because they [we] were more prepared, is there something that affects both or is it just chance?)


Researchers are evaluated not by what they understand (which is hardly measurable), but by "research output" or publications.
//
Students are told that it's more important to understand the topic than to worry about the grades.

(This is partly to do with what we can measure and partly to do with how we look at things and definitely a question that goes much deeper than what I've written here.)





If I get to  bed early, I'm much more capable of being productive in my work the next day.
//
A lot of fun-sounding events are run in the late evening.
//
There's a stereotype about scientists not having social lives.

(Even the most obvious way of linking these doesn't involve social awkwardness. One might argue that it implies it, I suppose.)


Mathematica is probably* the most expensive and widely-used symbolic programming language out there.
//
It also has the best pattern matching capabilities.*

(My supervisor likes to point out that, even so, it's a terrible stand-in for your brain.)



*I've heard so and it sounds plausible, but I haven't looked it up for myself.

Wednesday, February 12, 2014

What exactly counts as open?

I'm currently writing a paper for a journal that accepts submissions only in .doc format. That doesn't sound like a problem – everyone uses Microsoft office anyway, right? Well, no, I don't. Because MS Office doesn't run under Linux, which I'm using. And even if it did, there are places I'd prefer to throw my resources, given a choice. But aren't there open source alternatives that can produce those files? Well – kind of. LibreOffice will produce a .doc file alright. And if it contains straightforwardly formatted text with the occasional picture, MS Word would handle that file fine. However. I need equations. And while both LibreOffice and MS Word have equation editor functions, they're not entirely compatible. Nor are they particularly fun to use. Why can't I just use LaTeX?

Well, okay, I know why I can't. It's a general science journal, and unless you're doing fairly mathematical science, the LaTeX learning curve may not seem or be worth the (relative) ease of use. (And, I suppose, not allowing LaTeX forces me to consider if I really need to include that obscure equation in the paper.) LaTeX documents are not, for most people, as easy to read and edit as is a .doc file. It is free, though. Which MS Word is not.

It raises an interesting question about which method is really more "open". Requiring Microsoft formats means I need to buy – or, more realistically, borrow – an expensive piece of software to contribute to the journal. Requiring LaTeX formats forces contributors to pick up a non-trivial skill set before submitting. Neither of these is really entirely open. Perhaps simply offering a choice of format would be a reasonable workaround, although it does still feel like a workaround. Improving the compatibility of LibreOffice (or other open source office suites) with MS Office, while far beyond the reach of the journal, might be a slightly better fix. I think that will happen, but not until long after I've written this paper!

In the meantime, I'll be sulking in the corner because a side effect of using an office suite format is that I can't work in vi.

Friday, May 17, 2013

Friday Five

1. It's Sir-Laughs-a-Lots' birthday tomorrow. (Happy birthday!) We're going to do silly celebratory student things. No, not that kind. The kind where you realise you have the reading comprehension of a grad student and a pile of children's books and what are you waiting for? Yay.

2. Today I wrote my last test of semester, and our lectures are finished. Exams are looming only in a manageable couple of weeks, so tomorrow we're going to do silly celebratory student things . . .

3. The test I wrote today may be the last maths test I ever write. (I take all my courses from the physics department next semester, and if I'm lucky that could be the end of coursework.) It's kinda weird.

4. Do I sound like Hermione Granger if I say I want an analysis textbook for bedtime reading? We've touched on functional analysis in this PDE course and while I don't feel much need to do the proofs myself (though it would be fuuuuuun), but I think it's be interesting, useful and, relevantly, doable to get a sense of the terminology and what the results actually are. Maybe I could find an analysis for physicists book. Hmm.

5. Although while I don't want a full-of-detailed-proofs book, I kind of want a rigourous one. We can pretend that makes sense, right? It's like, I was talking to one of my lecturers about an applied physics course and he said "Well, for a pure mathematician like yourself [. . .]" Now, I'm certainly not much of a pure mathematician if I haven't even read much analysis (I do know a very little), but I guess I'm pickier than most about maths being done properly. As it should be.

And there's today's allocation of nerdery. If you know of a readable introductory source on analysis, I'd love to know, though I don't promise I'll actually get to reading it.

Savo 'lass a lalaith.

Sunday, March 10, 2013

Sunday Seven

I was going to write a Friday Five post, but I went to bed instead. Then I thought I'd replace it with Saturday Six, but, yeah, well, uh . . . Maybe I can get Sunday Seven to work.

1. My Wordless Wednesday post was all done on Wednesday, I promise. My phone just didn't feel like publishing it till this morning. I think I'll just call today an honourary Wednesday. That works, right?

2. Tomorrow I'm getting on a plane and flying to Grahamstown, where I'm going to sleep for a week. Except for the sleeping part, alas. I'm actually going to FameLab for a week, which is nearly as exciting a prospect.

3. The name "FameLab" makes me think of Harry Potter's first potions lesson, where Professor Snape tells his first years that he can teach them to "brew fame and bottle glory". Do you think I'd be allowed just a tiny sip of the Felix Felicitis potion before the final?

4. Yesterday Sir Laughs-a-Lot and I went to The Last Night of the (Maritzburg) Proms concert with the KZN Philharmonic Orchestra under Richard Cock. It was really awesome. Now I want to go to the opera. And learn to understand all - or at least more - of the technical musical stuff.

5. The concert was in the city hall, and while one might admire the clock tower as one drives down Commercial Road, that has nothing on the sense of being inside a work of art. Inside it! With a pipe organ the size of a small house! And ornamented everything! Oh my!

6. One of the topics I've been covering for my honours project is neural networks - a system that can be implemented on a computer and mimics the brain in learning to make accurate predictions. Neural networks are not awfully like human brains, really, but the way the technique was inspired, as well as the technique itself, is fascinating.

7. Neural networks are one of the topics I'm playing around with using in the FameLab finals. If I don't do that (or maybe even if I do), perhaps I should write up a similar kind of description to put on here. Because I won't, you know, be trying to frantically catch up with my lectures before the slew of pre-Easter break tests. It would be fun, though.

Savo 'lass a lalaith.

Saturday, March 2, 2013

FameLab

I missed my Wordless Wednesday post this week and then I missed my Friday Five too. And I've started reading The Return of the King without blogging about The Two Towers. I could probably blame my honours quantum mechanics course or my insistence on making the wraps we had for dinner from scratch, but I'm going to pin it on FameLab instead.

FameLab is an international event/competition that promotes young scientists "Talking Science" with the general public. Conversely, it promotes people hearing - and hopefully learning - about science, which is a Good Thing in my book. It's all done through the form of three minute presentations where PowerPoint slides and more props than you can carry are banned. This works really, really well, despite its simplicity.

For one thing, "Death by PowerPoint" and related maladies were almost entirely banished. For another, three minutes is barely long enough to get bored. The time limit was strictly enforced by vuvuzela (I assume other countries have equivalents) - although just the threat seemed enough for the people I watched. Regional heats were open to any (practising or studying) scientist in the 21-35 age range, which seems to have ensured that everyone had something worth saying - and not enough time to make it boring.

There was feedback from the judges after each presentation - I was impressed at how much this stayed positive, helpful and interesting to the audience. Presenting and being scrutinised was a little scary - the cameramen and microphones and masking tape squares on the floor didn't help - but an awesome experience.

A handful of us were invited back to regional finals - another three minute presentation a couple of hours later, taking into account the judges' feedback. The fact that it had to be a different presentation seems like a rather effective test of breadth. It felt like a test of improv skills too when we were suddenly called for on-camera interviews! It's surprisingly tricky to do that sit-sideways-and-smile-at-the-camera drill, never mind actually answering questions! Not that I'm complaining: it was all part of the excitement.

The regional finals were awesome. While some of the first round presentation were a bit rough, these were all fascinating. The kind of thing that would make for a great school field trip or the like, I thought. The scientific basis for the zombie apocalypse; a eulogy for coal; forensics and DNA testing. (You can see something of the impressive breadth the presentations covered there too.)

My nails probably owe their continued existence to all the interesting people I had to talk to while the judges deliberated, between the scientists and the competition staff. The compere seemed less friendly when she started stalling the results, though . . .

Three of us went through to the national finals. One of them was me! Um, what? I entered this thing just for kicks - the first round really is an experience in itself (next year I'll be telling everyone else to do it too). I'm just this girl who likes showing people how things work, not some kind of professional anything.

But apparently I'm going SciFest Africa in Grahamstown. I think. If I were dreaming I would've woken up by now, right? And it wouldn't have left me so ridiculously tired.

Friday, February 15, 2013

Friday Five

1. Lectures started this week! It's a bit odd only having nine hours of class time in a week, but there still seems to be plenty to do. I wonder how many of us are realistically putting in the other 3+ hours a week on project work.

2. Most of my project time this week has gone to watching video lectures on machine learning (via Coursera). One of the neatest techniques is an algorithm called gradient descent. For each iteration it considers each parameter A and a function J to minimise. Then it sets A to be A - c(dJ/dA) for a learning rate constant c. This means that at the top of a hollow, you move down the steep sides rapidly. As things shallow out towards the minimum, the steps get increasingly smaller. Awesome. (If you think of a derivative as the slope at a point, you can see this, as well as why the algorithm always moves towards the lowest point.)

3. Next week is going to be a toss up between machine learning videos and reading papers on things like Kalman filtering. Both are interesting and a little zombie-ish in that they tend to steal my brains.

4. I think students might be anti-zombies, since Statistical Physics, Quantum Mechanics and Partial Differential equations somehow have similar effects. Considering how many things are like that, it must be me, right? They can't all be zombie subjects.

5. Despite a bit of grumbling, this is totally what I signed up for and it's really great. Now I just need to get my brain into gear so I can stop confusing scalar products with scalar multiplication, which, despite the names, are not the same thing at all. Oops! I blame the zombies.

Friday, February 8, 2013

Friday Five

1. I made substantial progress in sorting out the direction of my honours project this week. It's really nice to have something worthwhile to direct my energy at, instead of worritting about admin. And the admin is slowly diminishing. Hurrah!

2. We played Settlers of Catan for the first time (except for one of the group) tonight. It was pretty awesome. I suspect some of the appeal is just in the newness of the system, but there's quite a bit of scope. I really enjoyed playing a strategy game that doesn't require attacking people. (Although the cutting off of other people's roads can get surprisingly intense.)

3. I think board games like Catan can be considered kind of nerdy, but do you know what would be even nerdier? Getting really frustrated that nine gets rolled more often than seven, which is not what the maths says should happen. Not that anyone I know did this. And it certainly didn't cause more upset than pretty much anything else in the whole game. Because we're not that nerdy. Oh, no!

4. My lectures start on Monday, except they don't, which is confusing. Depending on electives, we can end up with whole days free for project work (if you're disciplined) and other things (probably regardless). I don't have a timetable for my elective yet, so my actual first lecture is currently set for Wednesday. I'm finding that kind of weird.

5. The varsity notices today included a FameLab flyer. Now I'm wondering if coming up with a three minute talky thing about physics for the general public (and videoing it or driving a fair bit to actually speak in front of people) constitutes unnecessary stress. I think it's probably worth a shot, because it seems like there should be more fun than complicated, if there's some of both.

Savo 'lass a lalaith.

Friday, February 1, 2013

Friday Five

1. It turns out that running around varsity trying to perform multitudinous administrative tasks is more tiring than sitting at home doing interesting projects. In consequence I'm going to borrow some things other people have said (as well as I remember them) to make five.

2. While discussing shapes of trees that are good to climb: "a melting candle, which is like a squid."

3. Talking (initially) about time zones:
"I always get my pluses and minuses mixed up."
"Always? What's three minus four?"
"Seven."
"And four minus three?"
"Seven."
"So subtraction commutes! Is addition distributive then?"
"Yes."
"And multiplication."
"Yes, it's normal."
"Wait, the integers aren't a ring then."
"Nope, they're a helix."

4. Trying to work out if I can take PDEs as an elective:
"The lectures aren't timetabled; the students and lecturers will negotiate the times."
"Clashes shouldn't be a problem then."
"Well, that depends on your negotiating skills."

5. "Can I quote you on that?"
"Yes. In or out of context."

Wednesday, May 30, 2012

Thinking like a physicist

@mathematicsprof on Twitter recently tweeted a link to a page asking what it's like to understand advanced mathematics. There are a number of very interesting answers there, but one interested me particularly. I can't figure out if there's a way to link to it directly, but I'll quote it here:

 
A two part question to determine if you "think like a mathematician," from Prof. Eugene Luks, Bucknell University, circa 1979.

Part I: You're in a room that is empty except for a functioning stove and a tea kettle with tepid water in it sitting on the floor.  How do you make hot water for tea?
Answer to Part I: Put tea kettle on stove, turn on burner, heat until water boils.

Part II: Next, you're in another room that is empty except for a functioning stove and a tea kettle with tepid water in it sitting on a table.  How do you make hot water for tea?
Non-mathematician's answer to Part II: Put tea kettle on stove, turn on burner, heat until water boils.
Mathematician's answer to Part II: Put the tea kettle on the floor. 

Why?  Because a solution to any new problem is elegantly complete when it can be reduced to a previously demonstrated case.
 This might be why I'm studying physics more than maths. I can see why putting the kettle on the floor solves the problem rather elegantly - I think it's a nicer solution than the "non-mathematician's answer" up there - but it's not how I would solve the problem. Isn't it obvious that the table is negligible in this situation, so that Part II is reduced to Part I?

Mathematicians aren't, I think, supposed to say things are negligible. Assuming that the table is negligible isn't rigourous. It does, however, get to the right solution without (explicitly, at least) going via the floor. It's still elegant (if you can get over the idea of neglecting the table) and it takes less effort.

Perhaps it's related to the idea that physics is not so much about working out how to describe some given bit of the universe as it is about working out which bits of the universe we can describe and doing so. This is usually expressed in terms of finding symmetries, from what I've seen and heard. Here, I think the system is invariant under the introduction of the table, which is a symmetry.

There are probably other ways of solving the problem, too. I think it's a very interesting exercise in how people think!

Friday, May 11, 2012

I like bullet points

  • It's somehow less intimidating to write a bunch of not necessarily related points out of whatever vaguely interesting soup is floating around in my head than to pound out a nice set of linky paragraphs with a common theme. Let's not talk about why I might intimidate myself about posting to my own little blog in this corner of the internet. Test season and rationality do not have a high level of overlap.
  • Let's not talk about test season either. I'd rather tell you that I started listening to the Math/Maths podcast and it's really awesome. Also, it makes me feel like I should actually remember to write about mathsy physicsy stuff on here more often. I thin we can call that a double win. The podcast assumes you know a little bit about maths (or math, for the Americans), but it certainly doesn't expect you to be at research level in anything. I like listening to something with a bit of meat to it without feeling like I've bitten off more than I can chew!
  • I'm not sure whether or not that was a mixed metaphor.
  • I've finished the first two of my final year courses! Our computational physics courses are largely based around actually writing code, so there's no final theory exam. The general consensus is that continuous assessment is actually more work than otherwise (I write a three hour theory exam for my 16 credit theoretical courses; I wrote a four hour final practical test for an 8 credit computational course), but it's lovely to be finished already!
  • Hydrogen molecule ion orbitals.
    We get to make pretty pictures in comp. phys. too. Like this one, showing the electron orbitals (where the electron is most likely to occur) of a hydrogen molecule ion. This one was done in Mathematica, which is a wonderful tool for crunching through maths that's technically doable but not very much fun. Also, it draws pretty pictures.
    (I haven't taken the care with formatting that I would in a proper report, so if there's anything odd about the image, that's probably why! You can look up molecular orbitals or the linear combination of atomic orbitals model if you're really interested in seeing the science done properly.)
  • We spent some time yesterday trying to get Mathematica to draw rank two tensors for us, before realising that it was a rather silly idea. A rank zero tensor is just a scalar, or point on the number line, so it's pretty easy to understand. A rank one tensor is a vector (in R3), which you can visualise as an arrow in three dimensional space. A rank two tensor maps one three dimensional vector to another, which means, as far as I understand it, that you'd need a nine-dimensional blackboard to draw it out. Unfortunately (or perhaps fortunately), Mathematica doesn't have a Plot9D command. I can't imagine why not.
  • One of the best parts about getting this far into my degree is that as a class we both know each other well enough and are sufficiently interested in physics that between lectures we (sometimes!) do stuff like trying to draw (potentially impossible) things in Mathematica or work out the details of a proof we glossed over in class. See also: hitting 'random' repeatedly on xkcd, and looking at graphs showing that the exponential growth rate for yoghurt is higher than that of gingerbeer or sourdough by a ridiculous amount.
  • Are there physicsy versions of things like Math/Maths and Aperiodical? I can find stuff about science-in-general or maths-in-particular easily enough, perhaps because I already know where some of it is, but physics-in-particular doesn't seem to be very well represented. I don't know if maths gets more attention on it's own because it's sometimes excluded from 'science', if it's just considered more awesome than physics or if I just happen to have stumbled upon the online maths community and have yet to discover the physicsy* analogue.
  •  
    *I have now used 'physicsy' three times. This makes it a real word. To quote the estimable Lewis Carroll (in The Hunting of the Snark) "I have said it thrice: // What I tell you three times is true."

Wednesday, April 4, 2012

It turns out brick walls do exist

If you insist on verifying the existence of boundaries by repeatedly banging your head on them, you will end up bruised. That's just hearsay, of course. It's most certainly unrelated to the fact that I haven't found time to write here -- or 'most anywhere that's not a report to be handed in for marks -- in the last two months or so. Most certainly unrelated.

Having said that, I'm  sure it won't seem out of the way to ramble a little about how running out of time relates to number systems. I've been hooking a few ideas together and while none of this is rigourous or even necessarily true, I do think it's interesting. The thing about time is that it has to be continuous, kind of like the real numbers. If we allow it to be discrete -- like the integers, say -- we end up with Zeno's paradox:
Suppose Achilles is chasing a tortoise. In the first moment of his chase, we can say that he covers half the distance to the tortoise. In the next moment, he covers half the remaining distance. In the third moment, half of what is left then. Achilles always needs to cover half of the distance left before he can reach the tortoise, but he can continue like this indefinitely without actually catching up. So, says Zeno, it is impossible for Achilles to catch up with the tortoise.
The flaw in this argument is the assumption that time is discretised. It's modelled using integers: moment 1, moment 2, moment 3. We can get a better description of time by using real numbers: between time 3 and and time 4 is time 3.5. Between 3.5 and 4 is 3.75. Between 3.75 and 4 -- well, I could go on forever, which is how Achilles manages to catch the tortoise. (What he does with it next is still up for debate.) However, despite time's going on forever, I still can't manage to get everything I want done.

I can sort of explain that by looking at a mathematical kind of density. Suppose S is a set of numbers. If I can pick any two real numbers and find a third number that's between them and in the set S, then I can say that 'S is dense in the reals'. The rational numbers (numbers that can be written as fractions) are dense in the reals, for instance, but the integers are not. If I pick 1/2 and 1/4, I can't find an integer between them. I can find a rational number between them: 1/3 is perhaps the most obvious. (If you think about it, being dense in the reals actually implies that S has an infinite number of members between any two real numbers.) It seems to me that my perception, or perhaps my experience, is not dense in time. There may, in some sense, be an infinite amount of time between now and tomorrow morning, but I'm certainly not going to get an infinite amount of stuff done in it! In the same way, there are infinitely many (real) numbers between 0 and 100, but only 101 integers (or 99 on the open interval).

I guess I could link in things like response time here too or the fact that movies, which are obviously finite, give the impression of being continuous simply by being more densely packed than our perception. Or I could ditch the biology and go play Mouse Guard with the rest of the family. Mmm.

Wednesday, February 8, 2012

Numerical Analysis on a Calculator

Today in my differential equations class, we ended up trying to solve the equation x=cos x. And couldn't. Well, I'm not sure everyone was trying very hard, but I had scribbled trig identities all over my page without making any progress whatsoever. Eventually the lecturer took pity on us (or decided that giving us any longer was a waste of his time, perhaps!) and told us to take out our calculators. Oh! So all that analytical fiddling wasn't helpful. It's quite easy to solve the equation numerically on a pretty standard scientific calculator, though, and quite a pretty technique too, I think. I thought I'd share it.

Pick any number you like. If you pick it close to the right answer, the process will be a little quicker, but it doesn't really matter. From the picture below (drawn with Gnuplot), 1 seems like a reasonable starting point.



Now you put cos(1) into your calculator. You don't get 1 back out, so that's not your solution. But if you take cos of that answer, and then cos of that answer and so on for a little while (you can probably do something like just hitting '=' over and over) the answer eventually stops changing. You've found a value which - at least to the accuracy your calculator displays - is it's own cosine. That's the solution. Quite neat! (I think that method is the numerical form of Picard integration, but I could be quite wrong.)

Having started playing with Gnuplot, I don't want to stop, so before I go back to work, why don't I show you a picture of the probability densities we're calculating for the particle-in-a-box problem? It's pretty, at least.
Probabilities of finding an electron at different points in an infinite potential well for five different energy states. (I hope.)

Friday, January 20, 2012

Seven Quick Takes

7 quick takes sm1 Your 7 Quick Takes Toolkit!
One
  The thing about living in a UCT+2 timezone is that by the time I see people posting about Friday, it's well into Saturday for me. Or maybe it's just a problem because I follow a lot of international American blogs. Or maybe it's just that I'm not organised enough. At any rate, the last couple of weekends have seen me scrolling through my feedreader saying 'Oh, I guess it's too late to write one of those 7QT posts'. But it looks like I might've pulled it off this time.

Two
  It's not that I'm a perfectionist or anything. I completely accept that nothing will be done 100% right. I'd just like everything to be within a few standard deviations of correct. 3-sigma certainty, for example, is 99.7%. A 0.3% error in the posting time would give me, um, less than four and a half minutes into Saturday when I could post. See? Totally not perfectionist about stuff. Not whatsoever.

Three
  The holidays are too long. Now, people will object if I advocate for more term time, but I think it would be cool if we could take a couple of weeks from the long summer/winter holidays and tack them onto the ridiculously short mid-semester breaks. It might be nice to have a more balanced kind of year, but it would definitely be nice if I didn't have time to realise that the sensible thing to do with my curriculum might be to pick up Operations Research and Numerical Methods and drop Real Analysis and Algebraic Structure. I think it's worth struggling to take the courses I'll most enjoy, though.

Four
 It's not that the other modules are horrid, but it feels like switching waffles and ice-cream for macaroni and cheese. Macaroni cheese is yummy and good for you, but, well, it's not waffles and ice-cream.

Better than macaroni cheese? [Photo by Michael Kwan]
 It's kind of hard to justify that, though. The applied maths courses would probably open more doors for me in terms of postgrad studies and the fact that they don't clash with my required physics courses is probably also significant. The pure maths courses look like more fun. And given that I don't really know what I want to do next year, I can't base my decisions on that. But it's not worth stressing about till I'm back on campus. So really, the holidays should just be shorter.

Five
 When I'm trying not to stress (for whatever collection of reasons) I read. A lot. In the last few days I've read Northanger Abbey as well as all five books in Rick Riordan's Percy Jackson and the Lightning Thief series. Riordan is awesome, but I couldn't help noticing that Percy dreams an awful lot in those books. Dreams are used as a really cool plot device, but given the number of throwaway comments the guy makes about his past dreams, he must have way more non-plot-related dreams than plot related ones. But he says he dreams way more at camp (where the action happens) than elsewhere. The epistemo-temporal maths doesn't work out. (It's still better than Harry Potter, where there are forty kids per year, but six or seven hundred in the school . . .) Despite such things, I love the books.

Six
 No, I don't think epistemo-temporal is actually a word. But let's pretend and use our etymological detective skills, yes? Epistemo from the Greek word ἐπιστήμη (epistēmē), meaning "knowledge". Temporal from the Latin root tempor- meaning "time". That is, the knowledge Percy gains by dreaming doesn't seem to tie up with the amount of time he spends dreaming. And I feel totally justified in mixing Latin and Greek, since Riordan does it all the time, although we hardly noticed until it became the premise for the new Heroes of Olympus series.
Next on my (re)reading list (anyone who writes about classical mythology set today with a steampunk edge has to be pretty awesome, right?)
Seven
 There is a blog called Faraday's Cage is where you put Schroedinger's Cat.

 It reminds me of why engineering is awesome, as well as why it frustrated me. It makes me think it doesn't really matter that much which bunch of cool courses you take for your undergrad degree: you can still shift around a bit more later if you're willing to work. It's pretty cool if you're interested in stuff like Physics/Maths/Engineering/Science Education/Gifted Child Education/Homeschooling/Cute Fluffy Animals*. I saw it featured here and it's part of the reason The Lost Hero is still on the to-be-read list (rather than the currently-reading list).
___
*Actually, it's pretty cool even if you aren't, but you probably have to like some of them to enjoy it.

Sunday, January 15, 2012

Mathematics

I want to unpeel mathematics
and hand it to you
on a plate of curiosities.

I want to find the gravel
you brushed off your knees
three years ago and tell you
"These are seeds. We could
plant them together if you liked."

I want to fly
three hundred million metres per second
(that is, to be massless)
by exploiting the nature of
multidimensionality and

I want you to come with.



But my wings grow tired
just imagining
and I can't
find fertile soil.

When I curl into an armchair
with my maths book and tea,
saying, "You should try it sometime,"

I don't expect you to listen.





In general, I don't particularly like depressing/sad poetry. Sadness, it seems to me, is not an end in itself (which is not to say it's without value). Poems can successfully take sadness and use it to another end (this reflects life, I think), but I would propose
wallowing ≠ art.
This is rather wallow-y. However, I told myself very firmly when I started writing here that I was not to have expectations of art. So I argued with myself a bit:
   This is rubbish.
   It isn't! It's true!
   Well, it's certainly not factual and I don't see it uncovering the intrinsic nature of reality.
   Didn't you like the part about maths being like flying even a little?
   Okay, that wasn't too bad, but people won't get it.
   How do you know what people will get? You're not people. And the second part is also good. The emotion is universal, but the context is specific.
   Fine then. I'm not saying it's bad, but it's not good enough. You know that's not the whole story.
   Yeah, it's not the whole story, but you haven't lived the whole story yet. How do you expect to write it?
   You can't write it yet.
   Please?
   No.
   What if I guilt you about never writing blog posts?
   What?
   It's been five days since the last post. Can't I put this up?
   No.
   Oh come o-o-o-n.
   Fine then. Make a fool of yourself. But put up a disclaimer saying I had nothing to do with it.
And then I posted it, against my [better/worse] judgment, together with the transcript as a disclaimer.

Monday, January 2, 2012

The Axiom of Choice

I can't think of a single good reason to blog about this, except that it makes me happy. That's good enough, right?

So, axioms. Axioms, if you didn't know, are the basic statements that we accept without proof. Logically, maths starts with a handful of axioms which are used to prove everything else. Well, almost. Kurt Godel showed that some things can neither be proved or disproved, which is where things get interesting. No matter what axioms you start with, there will either be inconsistencies, or ideas that can't be shown to be true or false.

Mathematicians have used different sets of axioms over the course of history, getting more and more precise. (Round and edible is not an incorrect definition of an orange, but it describes an apple too; round, edible and citrus is better, but still includes lemons.) The system that's most often used currently used is the creation of mathematicians Zermelo and Fraenkel. Their original system is abbreviated ZF, but the one used now is called ZFC. That's Zermelo-Fraenkel plus the axiom of choice.

The axiom of the choice is one of those things that can't be proved either way using ZF (some very smart people did the work to show that it can't be shown to be true or untrue), and it's been added to the basic set of axioms, like I added 'citrus' to my list of things that describe an orange. I like seeing how maths grows like that. It's a simple enough idea: it says that if I have a bunch of identical things, I can pick one without specifying which one to pick. It seems intuitive enough, but it has some weird consequences.

Particularly, it leads to the Banach-Tarski theorem. The Banach-Tarski theorem is so weird that it's usually called the Banach-Tarski paradox. It says that if you have a ball, you can chop it up into a finite number of pieces and then reassemble those piece to form two balls, each the size of the original.


See? Weird. Despite that, the axiom of choice has survived controversy to become the kind of axiom that is assumed to be assumed. And that is the power of sheer awesome at work in a mathematics near you.

Also, there's a band called Axiom of Choice. That's cool.