Archive for the mathematics Category

Remembering Omar Khayyam

Posted in mathematics, Poetry, The Universe and Stuff with tags , , on December 4, 2022 by telescoper

I was reminded today that 4th December is the anniversary of the death, in 1131, of the Persian astronomer, mathematician and poet Omar Khayyam. That in turn reminded me that just over year ago I received a gift of a sumptuously illustrated multi-lingual edition of the Rubáiyát of Omar Khayyám:

Edward Fitzgerald‘s famous English translation of these verses is very familiar, but it seems there’s a more of Fitzgerald than Khayyam in many of the poems and the attribution of many of the original texts to Khayyam is dubious in any case.  Whatever you think about this collection, I think it’s a bit unfortunate that Khayyam is not more widely recognized for his scientific work, which you can read about in more detail here.

Anyway, as we approach the end of 2022 many of us will be remembering people we have lost during the year so here is a sequence of three quatrains (XXII-XXIV) with an appropriately elegiac theme:

For some we loved, the loveliest and the best
That from his Vintage rolling Time hath pressed,
    Have drunk their Cup a Round or two before,
And one by one crept silently to rest.

And we, that now make merry in the Room
They left, and Summer dresses in new bloom,
    Ourselves must we beneath the Couch of Earth
Descend–ourselves to make a Couch–for whom?

Ah, make the most of what we yet may spend,
Before we too into the Dust descend;
    Dust into Dust, and under Dust to lie,
Sans Wine, sans Song, sans Singer, and–sans End!

Another Riddle in Mathematics

Posted in Books, mathematics on December 3, 2022 by telescoper

The little paradox in probability that I posted earlier in the week seemed to go down quite well so I thought I’d try a different paradox on a different topic from the same book of paradoxes, which is this one:

It’s quite old. I have the first edition, published in 1945, but many of the “riddles” are still interesting.

Here is one which you might describe as being about “knot theory”…

It’s probably best not to ask why, but the two gentlemen in the picture, A and B, are tied together in the following way: one end of a piece of rope is tied about A’s right wrist, the other about his left wrist. A second rope is passed around the first and its ends are tied to B’s wrists.

Can A and B free each other without cutting either rope, performing amputations,  or untying the knots at either person’s wrists?

If so, how?

Teaching and Fourier Series

Posted in Education, mathematics, The Universe and Stuff with tags , , , , on December 1, 2022 by telescoper

Now as we approach the last fortnight of term, I am nearing the end of both my modules, MP110 Mechanics 1 and Special Relativity and MP201 Vector Calculus and Fourier Series, and in each case am about to start the bit following the “and”…

In particular, having covered just about everything I need to do on Vector Calculus for MP201, tomorrow I start doing a block of lectures on Fourier Series. I have to wait until Monday to start doing Special Relativity with the first years.

As I have observed periodically, the two topics mentioned in the title of the module MP201 (Vector Calculs and Fourier Series) are not disconnected, but are linked via the heat equation, the solution of which led Joseph Fourier to devise his series in Mémoire sur la propagation de la chaleur dans les corps solides (1807), a truly remarkable work for its time that inspired so many subsequent developments.

Anyway I was looking for nice demonstrations of Fourier series to help my class get to grips with them when I remembered this little video recommended to me some time ago by esteemed Professor George Ellis. It’s a nice illustration of the principles of Fourier series, by which any periodic function can be decomposed into a series of sine and cosine functions.

This reminds me of a point I’ve made a few times in popular talks about astronomy. It’s a common view that Kepler’s laws of planetary motion according to which which the planets move in elliptical motion around the Sun, is a completely different formulation from the previous Ptolemaic system which involved epicycles and deferents and which is generally held to have been much more complicated.

The video demonstrates however that epicycles and deferents can be viewed as the elements used in the construction of a Fourier series. Since elliptical orbits are periodic, it is perfectly valid to present them in the form a Fourier series. Therefore, in a sense, there’s nothing so very wrong with epicycles. I admit, however, that a closed-form expression for such an orbit is considerably more compact and elegant than a Fourier representation, and also encapsulates a deeper level of physical understanding. What makes for a good physical theory is, in my view, largely a matter of economy: if two theories have equal predictive power, the one that takes less chalk to write it on a blackboard is the better one!

A Paradox in Probability

Posted in Cute Problems, mathematics with tags , on November 29, 2022 by telescoper

I just came across this paradox in an old book of mathematical recreations and thought it was cute so I’d share it here:

Here are two possible solutions to pick from:

Since we are now in the era of precision cosmology, an uncertainty of a factor of 400 is not acceptable so which answer is correct? Or are they both wrong?

A Question of Distributions and Entropies

Posted in mathematics with tags , , on November 28, 2022 by telescoper

I thought I’d use the medium of this blog to pick the brains of my readers about some general questions I have about probability and entropy as described on the chalkboard above in order to help me with my homework.

Imagine that px(x) and py(y) are one-point probability density functions and pxy(x,y) is a two-point (joint) probability density function defined so that its marginal distributions are px(x) and py(y) and shown on the left-hand side of the board. These functions are all non-negative definite and integrate to unity as shown.

Note that, unless x and y are independent, in which case pxy(x,y) = px(x) py(y), the joint probability cannot be determined from the marginals alone.

On the right we have Sx, Sy and Sxy defined by integrating plogp for the two univariate distributions and the bivariate distributions respectively as shown on the right-hand side of the board. These would be proportional to the Gibbs entropy of the distributions concerned but that isn’t directly relevant.

My question is: what can be said in general terms (i.e. without making any further assumptions about the distributions involved) about the relationship between Sx, Sy and Sxy ?

Answers on a postcard through the comments block please!

Sizes, Shapes and Minkowski Functionals

Posted in mathematics, The Universe and Stuff with tags , , , , on August 27, 2022 by telescoper

Before I forget I thought I would do a brief post on the subject of Minkowski Functionals, as used in the paper we recently published in the Open Journal of Astrophysics. As as has been pointed out, the Wikipedia page on Minkowski Functionals is somewhat abstract and impenetrable so here is a much simplified summary of their application in a cosmological setting.

One of things we want to do with a cosmological data set to characterize its statistical properties to compare theoretical predictions with observations. One interesting way of doing this is to study the morphology of the patterns involved using quantitative measures based on topology.

The approach normally used deals with Excursion Sets, i.e. regions where a field exceeds a certain level usually given in terms of the rms fluctuation or defined by the fraction of space above the threshold. The field could, for example, be the temperature field on the CMB Sky or the density field traced by galaxies. In general the excursion set will consist of a number of disjoint pieces which may be simply or multiply connected. As the threshold is raised, the connectivity of the excursion set will shrink but also its connectivity will change, so we need to study everything as a function of threshold to get a full description.

One can think of lots of ways of defining measures related to an excursion set. The Minkowski Functionals are the topological invariants that satisfy four properties:

  1. Additivity
  2. Continuity
  3. Rotation Invariance
  4. Translation Invariance

In D dimensions there are (D+1) invariants so defined. In cosmology we usually deal with D=2 or D=3. In 2D, two of the characteristics are obvious: the total area of the excursion set and the total length of its boundary (perimeter). These are clearly additive.

In order to understand the third invariant we need to invoke the Gauss-Bonnet theorem, shown in this graphic:

The Euler-Poincare characteristic (χ) is our third invariant. The definition here allows one to take into account whether or not the data are defined on a plane or curved surface such as the celestial sphere. In the simplest case of a plane we get:

As an illustrative example consider this familiar structure:

Instead of using a height threshold let’s just consider the structure defined by land versus water. There is one obvious island but in fact there are around 80 smaller islands surrounding it. That illustrates the need to define a resolution scale: structures smaller than the resolution scale do not count. The same goes with lakes. If we take a coarse resolution scale of 100 km2 then there are five large lakes (Lough Neagh, Lough Corrib, Lough Derg, Lough Ree and Lower Lough Erne) and no islands. At this resolution, the set consists of one region with 5 holes in it: its Euler-Poincaré characteristic is therefore χ=-4. The change of χ with scale in cosmological data sets is of great interest. Note also that the area and length of perimeter will change with resolution too.

One can use the Gauss-Bonnet theorem to extend these considerations to 3D by applying to the surfaces bounding the pieces of the excursion set and consequently defining their corresponding Euler-Poincaré. characteristics, though for historical reasons many in cosmology refer not to χ but the genus g.

A sphere has zero genus (χ=1) and torus has g=1 (χ=0).

In 3D the four Minkowski Functionals are: the volume of the excursion set; the surface area of the boundary of the excursion set; the mean curvature of the boundary; and χ (or g).

Great advantage of these measures is that they are quite straightforward to extract from data (after suitable smoothing) and their mean values are calculable analytically for the cosmologically-relevant case of a Gaussian random field.

Here endeth the lesson.

A Leaving Certificate Applied Maths Problem

Posted in Cute Problems, Education, mathematics with tags , on June 11, 2022 by telescoper

The 2022 cycle of Leaving Certificate examinations is under way and the first Mathematics (Ordinary and Higher) were yesterday there’s been the usual discussion about whether they are easier or harder than in the past. I won’t get involved in this except to point you to this interesting discussion based on an archive of mathematics questions, that this year the papers have more choice for students and that, apparently, the first Higher Mathematics paper had very little calculus on it.

Anyway, I was looking through some old Applied Mathematics Leaving Certificate papers, as these cover some similar ground to our first year Mathematical Physics at Maynooth, and my eye was drawn to this question from 2010 about two balls jammed in a cylinder…

I’d add another: does it matter whether or not the cylinder is smooth (as this is not specified in the question)?

Your answers are welcome through the comments box!

Job Opportunity in Computer Science, Statistics or Applied Mathematics at Maynooth

Posted in mathematics, Maynooth with tags on February 21, 2022 by telescoper
This is the Library not the Hamilton Institute but you get the idea..

Just a quick post to pass on the news that my colleagues in the Hamilton Institute at Maynooth University have a vacancy for a permanent position at Professorial level.

You can find the full advert here. Please feel free to pass it on to anyone you think might be interested.

P. S. I’m looking forward to mentioning further announcements about a number of other permanent job opportunities at Maynooth in the not-too-distant future!

Scientific Computing Then and Now

Posted in Biographical, mathematics with tags , , , on February 10, 2022 by telescoper

This afternoon I was in charge of another Computational Physics laboratory session. This one went better than last week, when we had a lot of teething problems, and I’m glad to say that the students are already writing bits of Python code and getting output – some of it was even correct!

After this afternoon’s session I came back to my office and noticed this little book on my shelf:

Despite the exorbitant cost, I bought it when I was an undergraduate back in the 1980s, though it was first published in 1966. It’s an interesting little book, notable for the fact that it doesn’t cover any computer programming at all. It focusses instead on the analysis of accuracy and stability of various methods of doing various things.

This is the jacket blurb:

This short book sets out the principles of the methods commonly employed in obtaining numerical solutions to mathematical equations and shows how they are applied in solving particular types of equations. Now that computing facilities are available to most universities, scientific and engineering laboratories and design shops, an introduction to numerical method is an essential part of the training of scientists and engineers. A course on the lines of Professor Wilkes’s book is given to graduate or undergraduate students of mathematics, the physical sciences and engineering at many universities and the number will increase. By concentrating on the essentials of his subject and giving it a modern slant, Professor Wilkes has written a book that is both concise and that covers the needs of a great many users of digital computers; it will serve also as a sound introduction for those who need to consult more detailed works.

Like any book that describes itself as having “a modern slant” is almost bound to date very quickly, and so this did, but its virtue is that it does complement current “modern” books which don’t include as much about the issues covered by Wilkes because one is nowadays far less constrained by memory and speed than was the case decades ago (and which circumstances I recall very well).

The Course Module I’m teaching covers numerical differentiation, numerical integration, root-finding and the solution of ordinary differential equations. All these topics are covered by Wilkes but I was intrigued to discover when I looked that he does numerical integration before numerical differentiation, whereas I do it the other way round. I put it first because I think it’s easier, and I wanted the students do do actually coding as quickly as possible, but I seem to remember doing e.g. Simpson’s Rule at school but don’t recall ever being taught about derivatives as finite differences.

Looking up the start of numerical differentiation in Wilkes I found:

This is a far less satisfactory method than numerical integration, as the following considerations show.

The following considerations indeed talk about the effect of rounding errors on calculations of finite differences (e.g. the forward difference Δf = [f(x+δ)-f(x)]/δ or backward difference Δf = [f(x)-f(x-δ)]/δ) with relatively large step size δ. Even with a modest modern machine one can use step sizes small enough to make the errors negligible for many purposes. Nevertheless I think it is important to see how the errors behave for those cases where it might be difficult to choose a very small δ. Indeed it seemed to surprise the students that using a symmetric difference Δf=[f(x+δ)-f(x-δ)]/2δ is significantly better than a forward or backward difference. Do a Taylor series expansion and you’ll understand why!

This example with δ=0.1 shows how the symmetric difference recovers the correct derivative of sin(x) far more accurately than the forward or backward derivative:

R.I.P. Sir David Cox (1924-2022)

Posted in Biographical, mathematics, The Universe and Stuff with tags , , , , on January 21, 2022 by telescoper

I was saddened to hear a few days ago that the eminent statistician David Cox has passed away at the age of 97. I didn’t know Professor Cox personally – I met him only once, at a joint astronomy-statistics meeting at (I think) the Royal Astronomical Society back in the day – but I learnt a huge amount from books he co-wrote, despite the fact that he was of the frequentist persuasion. Three examples from my bookshelf are shown above.

I started my PhD DPhil in 1985 with virtually no formal study of statistics under my belt so I had to follow a steep learning curve and I was helped enormously by these books. I bought the book on Point Processes so as to understand some of the ideas being applied to galaxy clustering. It’s only a short book but it’s crammed with interesting ideas. Cox & Miller on Stochastic Processes is likewise a classic.

I know I’m not the only person in astrophysics whose career has been influenced by David Cox and I’m sure there are many other disciplines who have benefitted from his knowledge.

Among many other awards, David Cox was elected a Fellow of the Royal Society in 1973 and knighted in 1985.

Rest in peace Sir David Cox (1924-2022)