Showing posts with label Maths. Show all posts
Showing posts with label Maths. Show all posts

Tuesday, February 11, 2014

The Adventures of Yusuf Al-Muʾtaman ibn Hud and Giovanni Ceva

[Source]
Wrote the great Yusuf Al-Muʾtaman ibn Hud, the King of Zaragoza, in his magnum opus, the Kitab al-Istikmal: "... Thus, I have proven that if these three ratios on the triangle give a product of one, then these three lines in the triangle meet in a point!"

After having read this proof, the scholars in his court exclaimed: "Truly, this is an important proof! O, great King Yusuf Al-Muʾtaman ibn Hud, you are indeed called the Sage of Zaragoza; your name shall be spread far and wide, even down all the generations!"

Six hundred years later, in a dusty university room in Mantua, the Jesuit Professor Giovanni Ceva realises, with a serendipitous spark of inspiration, the same truth that had been discovered by the great Yusuf Al-Muʾtaman ibn Hud. He publishes it and we now name it Ceva's Theorem because his name is easier to pronounce.

Friday, February 07, 2014

Adventures with Brahmagupta and his Algebraic Proof

Question: Prove Brahmagupta's Formula i.e. that if a cyclic quadrilateral has sides a, b, c, d, and semi-perimeter s, then its area K is given by (...).

Answer:

Professor's commentary: Everything is correct here. However, the proof is not very interesting as you have opted to prove it algebraically rather than with graphical explanation. In fact, it is really boring. In fact, my cat has just thrown up on my trousers and then died of boredom after having read your proof. I am enraged! Zilch marks for this assignment.

Monday, January 06, 2014

Prof János Pach's Bonus Questions

 
Old Königsberg and its bridges

A compilation of my answers in Graph Theory class:

Question from Session 2: Two people perform a card trick. The first performer takes 5 cards from a 52-card deck (previously shuffled by a member of the audience), looks at them, keeps one of the cards and arranges the remaining four in a row from left to right, face up. The second performer guesses correctly the hidden card. Prove that the performers can agree on a system which always makes this possible, and devise one such system. Answer

Question from Session 3: Baron Münchhausen is very proud: "I chose a huge set of positive integers smaller than 2013, and yet among any four elements there are two such that one is divisible by the other." He went on boasting to his stupefied audience: "I bet no one could ever find such a set with more elements." However, the infamous storyteller was exaggerating again. The set he had found was rather small. Help him find a set that could save his honor. Answer

Question of Session 5: Dwellers of Flatplanet are hostile creatures. Their countries don't even share borders, but are well separated from each other. There are six countries in total, three of them are the Allies, and the other three are, not surprisingly, the Axis. For strategic reasons, each country is topologically connected. An embedded correspondent is informing us that the shortest distance from any of the Allies countries to any of the Axis countries is equal to 1 flatkilometer (a unit of length widely used on Flatplanet). Could she be right? Answer

Question from Session 7: There are 1900 one-Swiss-franc coins lying on an enormous table. Some of them might touch each other, but they don't overlap. Show that you can always choose 475 of them such that no two chosen coins touch each other. Can you always choose 601 such coins? Answer

Problem from Session 10: Prove that if mankind will live forever, then there is a woman alive today who will have a daughter who will have a daughter who will have a daughter... for eternity! Answer

Monday, June 03, 2013

Mothers and Daughters


Problem from Session 10: Prove that if mankind will live forever, then there is a woman alive today who will have a daughter who will have a daughter who will have a daughter... for eternity!

Preface
In the field of human genetics, the most recent common ancestor of all living humans in the matrilineal line is termed the Mitochondrial Eve, so termed because the mitochondrial DNA (which is only passed from the mother to her children) of all living humans can be traced back to her. This concept draws attention to the fact that for every person alive today, there is an unbroken chain of mother-daughter relationships that links Mitochondrial Eve to their mother or to themselves, if the person is female. Today, we prove that this unbroken chain can be sustained forever, insofar as humanity survives forever.

Reasonable assumptions
1. No-one develops time-travel for the rest of eternity, so no one gives birth to her own grandmother or the like nonsense.
2. Humans will never attain immortality, hence the need for reproduction.
3. Everyone who will ever live must inherit one set of genes from each parent (one male, one female).

Model
We consider the entirety of humankind living from the present time and indefinitely into the future, ignoring the people who lived in the past, as a graph G. Each person is modelled as a vertex. Two persons are connected by an edge if one of the persons is directly descended (genetically, at least) from the other.

Proof: The matrilineal subset F of G is a forest
We now extract a subset of G containing only the matrilineal lines of descent, and call it the matrilineal graph F. To prove that F is a forest, it is sufficient to prove that F contains no cycles. First, note that we only consider edges that join a mother and daughter, and not those that join fathers to sons or daughters, or those that join mothers to sons. For the sake of simplicity, we can eliminate the male person-vertices from F.

Now suppose F is not a forest. Then, the matrilineal graph will contain a cycle. In this case, there will be a woman who gives birth to a daughter, who in turn gives birth to her granddaughter, and so on, until one of the (grand-)ndaughters eventually gives birth to the first woman. Time-travelling speculation aside, this makes no sense and so we should discount the possibility of a cycle occurring in F. Thus, F is a forest i.e. a graph in which all connected components are trees.

Organising the ladies in F into tiers
Having decided on the nature of the matrilineal graph F, we now try to organise the ladies into tiers, so that the ones who are alive today can be treated apart from those who will be born in the distant future. We sort every woman whose mother is no longer alive today into tier 1, their daughters into tier 2, their granddaughters into tier 3, and so on.  All the vertices in F can thus be assigned a tier, as no cycles are present.

Proof: There will be infinite tiers in F
Suppose there will only be a finite number of tiers of women in F. This means that after a number of generations of humankind, there will be no new women in the world. By assumption 2, all the existing women will eventually die, leaving only men. By assumption 3, this means that humankind will die out, because men are incapable of reproduction without women. This contradicts the supposition that mankind will live forever. Therefore, the number of tiers in F is infinite.

Proof: There is a path from any vertex in tier N to a vertex in tier 1 (for all natural numbers N)
We perform a proof by induction on N from N=2. Every woman in tier 2 is descended from at least one woman in tier 1, thus they are connected to tier 1 by a path that consists of one edge. Suppose now that there is a path that connects everyone from tier K to tier 1. As everyone in tier K+1 is descended from at least one woman in tier K, they are connected by a path to tier 1 that consists of the path from tier 1 to their mothers and the edge shared between themselves and their mothers. By induction, there is a path connecting every woman in tier 2 or higher in the graph F to a person in tier 1 for any number of tiers.

No matter how much time passes and how many new generations are born, there will be a path linking a living person to a certain ancestor in tier 1, who is alive today. This shows that the existence of a certain unbroken mother-to-daughter lineage will hold indefinitely.
□!
(22 May 2013, Dorigny in the Switz)

Coin Table


Question from Session 7: There are 1900 one-Swiss-franc coins lying on an enormous table. Some of them might touch each other, but they don't overlap. Show that you can always choose 475 of them such that no two chosen coins touch each other. Can you always choose 601 such coins?

Part I: Can we find 475 non-touching coins?
Yes, we can always find 475 coins that do not touch one another.

We model a graph G in which each one-Swiss-franc coin is a vertex and in which there exists an edge between each pair of coins that touch each other. As the coins are on a table (presumably flat) and do not overlap, we can assume that the graph G is planar. By the four-colour theorem, G can be coloured with four colours.

Let i be a colour such that i∈{1, 2, 3, 4} and let Gi be the subgraph of G containing the vertices coloured i. Then the average size of the subgraph of all the four colours is always:


We consider first the case that Gi=475 for all i∈{1,2,3,4}. Then we can find that all of the Gi are of size 475. This means that all four sets of 475 coins are found such that no coins in the same set touch each other. If there is a certain Gi greater than 475, we can always find a subset of Gi that contains 475 coins such that no coins in the subset touch each other.

We next consider the case that we find a certain Gi less than 475 for another i such that the average subgraph size is 475 and not below 475. It follows that we can find a set of 475 coins from this larger subgraph in which no two coins touch each other.

Part II: Can we find 601 non-touching coins?
We can find 601 coins that do not touch one another in the case where the coins are maximally packed.

It has been proven by Lagrange in 1773 that a lattice arrangement of circles with the highest density is the hexagonal packing arrangement. When the coins are maximally packed, the graph G becomes such that the internal facets of the graph can only be equilateral triangles.

There exists a uniform colouring in three colours (123) for a hexagonal packing arrangement. The 2-colourability of the graph  G of the infinite hexagonal packing is provable by demonstrating 3-colourability on a unit cell of the hexagonal lattice and then tesselating the unit cell indefinitely:


Fig 1. 3-coloured unit cell in the infinite lattice


Then, following the line of thought in the first part, we let i be a colour such that i∈{1,2,3} and let Gi be the subgraph of G containing the vertices coloured i. Then the average size of the subgraph of all the four colours is always:


We can always find a certain Gi such that |Gi|>633 and none of the coins in Gi touch one another, and a subset of 601 non-touching coins can always be found in Gi.

□!
(24 Apr 2013, Dorigny in the Switz)

Monday, May 27, 2013

Flatplanet


Question of Session 5: Dwellers of Flatplanet are hostile creatures. Their countries don't even share borders, but are well separated from each other. There are six countries in total, three of them are the Allies, and the other three are, not surprisingly, the Axis. For strategic reasons, each country is topologically connected. An embedded correspondent is informing us that the shortest distance from any of the Allies countries to any of the Axis countries is equal to 1 flatkilometer (a unit of length widely used on Flatplanet). Could she be right?

Model
Assuming that our correspondent’s testimony is true, we model each Allied nation L1, L2, L3 as a topologically connected set of points in euclidean space. As has been provided, they do not share borders. We define sets of points L1+,L2+,L3+ as the points that are less than 1 fkm away and L1e, L2e, L3e as the points that are exactly 1 fkm away from the nearest point in L1, L2, and L3 respectively. We also define the sets X1, X2, X3, each representing a topologically connected piece of Axis territory.
Now we can remodel the map as a graph G containing the points l1, l2, l3, x1, x2, x3 with the following rule: If the set Xn shares at least one point with the set Lme (and does not share any point with Lm+), then there is an edge xnlm in G. Given the known information and the testimony of our correspondent, every edge xnlm (n,m∈{1,2,3}) is an edge existing in G. The resultant graph turns out to be identical to the complete bipartite graph K3,3.



K3,3 represents the countries of Flatplanet situated on a topological surface. Each edge in the graph K3,3 corresponds to a set of “border” points shared between a set Xn and a set Lme. No two Axis countries share the same points. It follows that for the correspondent’s testimony to be true, K3,3 must be a planar graph with no intersecting edges.

Proof that K3,3 is not a planar graph
We aim to prove by contradiction that K3,3 is not a planar graph. Assume that K3,3 is a planar graph, then Euler’s polyhedral formula holds: |V|-|E|+|F|=2. As the number of vertices |V|=6 and the number of edges |E|=9 in this case, we obtain |F|=2-6+9=5.

As there are no loops and two edges connecting the same pair of points, there cannot be a face with only one or two edges. As no two points on the same side are connected, there are also no closed paths that can be achieved by just three edges, as points that are two edges away from each other are always at the same side of the bipartite graph. However, a closed path l1→x2→l2→x1→l1 of 4 edges can be found in the graph. Hence, a face in the graph can only be inscribed by 4 or more edges.

We have determined that |F|=5. Then the sum of the edges of each face can only be equal to or greater than 5×4=20. As each edge can be shared by a maximum of two faces, the number of edges |E|≤20/2=10, with |E|=10 being the case in which all edges are shared.

However, we have already established that |E|=9. We have arrived at the contradiction by assuming that K3,3 is planar graph. Hence, K3,3 is not planar. By our earlier model, it implies that it is not possible for every Allied country on Flatplanet to be exactly 1fkm away from every Axis country, and that our correspondent’s testimony is false.

Another proof that K3,3 is not a planar graph
This should be much less painful to follow. You can ignore the previous section now


□!
(24 Mar 2013, Dorigny in the Switz)

Saturday, May 25, 2013

Baron Münchhausen


Question from Session 3: Baron Münchhausen is very proud: "I chose a huge set of positive integers smaller than 2013, and yet among any four elements there are two such that one is divisible by the other." He went on boasting to his stupefied audience: "I bet no one could ever find such a set with more elements." However, the infamous storyteller was exaggerating again. The set he had found was rather small. Help him find a set that could save his honor.

Definition of the problem
We are tasked to construct the largest set of numbers such that
1. It is a subset of the set of natural numbers larger than or equal to 1 and less than or equal to 2013.
2. For any four numbers selected from from the set, there is at least one selected number which is divisible by another selected number.
If Baron Münchhausen makes a bet that no one can find a set larger than this set that we will constuct, it will not be possible for him to lose.

Solving the problem with paths
Let us rethink the set of all natural numbers from 1 to 2013 as a directional graph. Each number n is represented by a vertex vn. A vertex vn connects to another vertex vm only if m is divisible by n. For example, one such possible directional path in this graph would be:
v2→v4→v12→v36→v252→v2772

The path terminates at the vertex where it is not possible to multiply the number with any other number (picked from 2 to 2013) without producing a number larger than 2013. In the case above, 2772 * 2 = 5544 (> 2013).

For any two numbers picked from the path, the larger one is divisible by the smaller one. This is because we constructed the graph in a way that a vertex on a path is divisible by all its predecessors.
In order to satisfy the condition that for any four numbers chosen in the subset, one of it is divisible by another, we should construct a subset such that all the numbers can fit into three paths. In order to find the largest subset, we should construct the three unique paths that are as long as possible.

Finding the three longest possible unique paths
To find the longest path i.e. the path containing the most number of numbers below 2013, we have to let each successive number on the path be the smallest multiple of its predecessor. This would yield m=2n for every connection vn→vm. We use the smallest number of the set, 1, as the starting vertex for this path:
v1→v2→v4→v16→v22→⋯→v1024

As 1024 * 2 = 2048 > 2013, the graph terminates. 1024 being 210, this path has 10 + 1 = 11 vertices.

The second longest path uses 3 as the starting vertex, as the numbers 1 and 2 are already included in the first path. As in the last path, we make each successive number in the path to be two times its predecessor:
v3→v6→v12→v24→v48→⋯→v1536

As 1536 is 3 * 29, this path has 9 + 1 = 10 vertices.

The third path uses 5 as the starting vertex, as the multiples of 4 are already included in the previous two paths. Again we make each successive number in the path to be two times its predecessor:
v5→v10→v20→v40→v80→⋯→v1280

As 1280 is 5 * 28, this path has 8 + 1 = 9 vertices.

We thus obtain the set of 9 + 10 + 11 = 30 numbers from the above three paths
{1, 2, 3, 4, 5, 6, 10, 12, 16, 20, 24, 32, 40, 48, 64, 80, 96, 128, 160, 192, 256, 320, 384, 512, 640, 768, 1024, 1280, 1536}
For every 4 numbers that are chosen from this set, two will land on the same path.
If two numbers land on the same path, then one number out of the two is divisible by the other. This is just how we have constructed the paths in the first place. So for every four numbers chosen, at least one number is divisible by another in the set.

Also by our construction, this is the maximal set. If the baron had chosen this set instead of whatever he had chosen before, his challenger can never find any larger set of numbers to fulfill the same mentioned criterion.

□!
(13 Mar 2013, Dorigny in the Switz)

Friday, May 24, 2013

Card Trick

The start of a series of bonus questions and solutions done in the Graph Theory course at EPFL (MATH-360)

XDA Wallpapers

Question from Session 2: Two people perform a card trick. The first performer takes 5 cards from a 52-card deck (previously shuffled by a member of the audience), looks at them, keeps one of the cards and arranges the remaining four in a row from left to right, face up. The second performer guesses correctly the hidden card. Prove that the performers can agree on a system which always makes this possible, and devise one such system.

Definitions
Let us assume that the 52-card deck consists of 4 suits of 13 cards. Let us label the decks C for clubs, S for spades, H for hearts and D for diamonds. A suit X has elements x1, x2, x3, …, 13 that denote the 13 cards in each deck, the subscript being the number value of the card.
Between cards of the same deck, a card with a higher number value has a higher “deck value” (so c2 is more valuable than c1). Between cards of different decks, spades are the most valuable, followed by hearts, diamonds, and clubs.

Guessing the suit of the hidden card
When player 1 (P1) draws a set of five cards from the pile, it is impossible to have every card of a different suit, as there are only 4 suits. Given a suit X with at least 2 cards in the drawn pile which are xn and xm, it is possible for P1 to choose xn as hidden card, and then to place xb as the r-th card in the row (r is predefined and can vary so as to make the trick harder for a spectator to figure out) as a signal to the P2 that the hidden card is of the suit X.
For example, if r=1, X=C, then P1 can choose to make the arrangement


Guessing the number on the hidden card
Next, the number on the revealed card xm and the identities of the other three cards a,b and c are used to communicate the number n of the hidden card. For this, the performers can make use of a graph consisting of a cycle C of 13 vertices v1, v2, v3,…, v13, one for each number value of the card as follows:


The cards a,b and c are defined by P1 and P2 as their deck value, so that a < b < c. Based on how a,b and c are arranged in the row (ignoring xm), P2 starts from the point on the graph with the number value m and then moves along the cycle according to the key:


This is because in C, it is possible to reach any vertex from a start point by a maximum of 6 steps (i.e. after covering 6 edges), as demonstrated below:


P1 should pick xn as the card to hide if it is possible to travel clockwise on C from vm to vn within 6 steps.
With these rules, the suit, as well as the number value of xn, can be unambiguously determined by P2 from the 4 cards displayed by P1.

Overview of performance (Example)
P1 draws 5 cards from the shuffled pile. He draws a set of cards {h1, c13, s1, s3, h8 }. 2 hearts and 2 clubs are present in the 5 cards on his hand. P1 chooses Hearts as the suit of his hidden card.
As it is possible to travel clockwise on the cycle from v8 to v1 within 6 steps, but not possible to travel clockwise on the cycle from v1 to v8 within 6 steps, P1 can choose to hide h1 and display h8 in the leftmost position in the row:


P2 now knows that the hidden card belongs to the suit H.
To instruct P2 to find out the number value of the hidden card, he fills up the remaining positions of the row with the remaining cards in the order (c, b, a), where a has the lowest deck value and c has the highest deck value. In this case, the sequence (c, b, a),  yields (s3,s1,c13). So P1 displays:



By comparing the deck values of the rightmost 3 cards, P2 now understands that he must make six jumps from vertex v8 on C in the clockwise direction. He does so through a mental calculation and arrives at v1. He now knows that the hidden card has a number value of 1. With this information in hand, he deduces that the hidden card is h1, or Ace of Hearts.

□!
(28 Feb 2013, Dorigny in the Switz)

Tuesday, April 26, 2011

Real Analysis

So the exam was over on Monday. I am still not sure if I will need to do an S/U on the module, but if I ever get so much as a B+ I would be content and hell I'll drag Surya out to one of those green spaces left around school and dance around with him in joy. (FYI: Surya is the other guy from Engineering who took this module for fun.)


Artist's Impression

Bidding for this module was foolhardiness from the start. Learning the methods of Real Analysis has been an uphill task, but explaining its contents to interested passers-by was also difficult, so I'll do just that.

The Meaning of Real Analysis

Calculus, the crown jewels of MA1505, was invented independently by different folks in the 14th to 17th centuries. Apparently where caluclus started, it was mathematically sloppy, but got away with it for being so useful. Nonetheless it was met with attacks from other scholars, among them my old friend Bishop Berkeley. In time, the properties of the calculus-universe would be gradually built up and moulded by those willing to clean up Newton's and Leibniz's mess, and the cleaning process became the field we call Real Analysis.



Formalities: Definition, Theorems and Proofs

Because it looks base-wards from calculus, rather than to the frontiers of math, most of the concepts we tackle are simple and intuitive. This sadly does not make them any easier. It does, however, mean that we have to scrutinise our every preconception to all that we think we know to be true. This is achieved by definitions made precise with numerical gauges and basic rules of algebra. A case in point:

Continuity of a function is
MA1505: "that you can draw its graph in one go without having to lift your pencil from the paper."
MA2108: "if ∀ε>0 ∃δ>0 such that ∣x-a∣<δ ⇒ ∣f(x)-f(a)∣<ε, then f is continuous on a."

So instead of drawing a continuous line without lifting the pencil from the paper to prove a point, you broke everything up into numbers and shifted them around and prayed hard that they agreed with you.

This may seem frivolous at first, but as the lectures go on we saw the definition spew out quite some interesting conclusions. For example, a function can be continuous at only one point. Trying to show it with pencil and paper is quite pointless, but you will be able to show, with definition, that something like

f(x) = {x2 if x is rational, 0 if x is irrational}

does just that at x=0.
Also I mentioned Thomae's Popcorn function some entries back. You guys totally should look at it again. The idiot is continuous on all irrational x and discontinuous on all rational x. It is so crazy I still find it hard to swallow, even if I am able to prove it back to front.



The start of the module was the hardest because we were having our hands tied up behind out backs and mulling over things like a+b = b+a like we were newborns. Things got better later on when we found out certain theorems have been proven so that we can use them with impunity. But then there were other things to worry about.

Aesthetics: Niceness

This is to recall the things I picked up last semester about mathematicians being artists inside. William Byers wrote about mathematical beauty. David Hilbert complained about finding not enough imagination in his students. Leung Man Chun played the Concierto de Aranjuez before every lecture.

Artists would be familiar to the fact that mathematics can be, and are often used to make art. In particular, I have come across a section of the shelf on Medical/Science library (5th floor) with material on Splines, NURBs and other cool inscrutable stuff we find mentioned and used all the time in 3D modeling software. Apparently meshSmooth, spline curves, and modeling by contour uses Real Analysis. This is so interesting



I would like to take this opportunity to show off my "modeling by contour"

In Real Analysis, niceness is a real thing, and is mathematically defined. A continuous function is a nice mapping of ℝ on ℝ, and a uniformly continuous function is a nice continuous function. And a properly divergent sequence diverges quite neatly also. And together they bask your notes in a warm glow.

How to prepare for this module

Being a Math student helps. Having taken MA1100 Fundamentals of Mathematics also helps, because your teachers will assume you picked up from there. If you're one of my ilk, it helps to understand that this is no maths that you have seen before. It is useless to think of anything as "plug in formulas to get a number" (even though I have guiltily indulged in "plug in theorems to get a proof" from time to time). It is helpful to remind yourself that nothing is static, everything is uncertain, and that skepticism is the rule before where the fatal QED lies. Having a lively mind helps, so taking up some sport would be a good idea.

Postscript
Exam Qn 3 b) iii)
Ohmigod, look at this guy, just look at him.

Wednesday, February 23, 2011

Street Brawl Mathematics

A summary of MA1506 class notes, Chapter 1
Imagine that you are taking a stroll home after a long day spent doing Real Analysis and pitting proving skills against tea buddies. It is very late into the night and your wife is getting impatient, so you decide to take a shortcut home through the deep, meandering alleyways through the city's underbelly.

It is your first time here; you do not know yet that by entering the slums, you have thrown Real Analysis to the four winds and yourself into that desperate quagmire which is Differential Equations.

Before you know it, you have angered the denizens of the alley. You meet your first adversary.


This is a passing drunkard who just needed someone to blab at. Fortunately, you know that these drunkards can easily be subdued using Leibniz's notation of the derivative, dy/dx.


The poor fellow has scarcely put up a fight. He does not even try to get up again, so you roll him to his side, lest he choke on his own vomit.

As you advance, several more drunkards appear (have you been walking close to a club?). They do not look as soft as the first one, but you pwn them anyway by using simple substitutions and then invoking the power of Leibniz.


Photo by John Hutchinson

As you retreat further away from the hypothetical nightclub, your assailants become less and less benign. News seems to have leaked that a novice mathematics student has wandered into D.E. territory, and the first bandits move in to the plunder: the First Order Linear gang with the Bernoulli and Ricatti clans.

However, they have sorely underestimated your prowess; obsessed as you are with logical clarity and intuition, you are not above borrowing the ideas of the masters without questioning. The raiding party learns this the hard way.


The defeat of the Linear First Order sends shock-waves through the bandit community. Clearly, this guy knows a thing or two, even if all he knows is engineering math! Not admitting defeat, the bandits send out a second detachment.


Unfazed, you tackle the leader of the pack first: the homogeneous equation. You subdue him with a risky but deadly substitution


and reduced the pack leader to a shapeless heap of general solutions.

The rest of the pack are scared shiteless, because by the Superposition principle, they are already halfway into utter defeat. Working down the hierarchy with the Method of Undetermined Coefficients, you make sure that the gangsters with the polynomial, exponential and trigonometric forcing functions wish they had never been born. In that very order.


Source: Farlow et al. (2007)

This is an ancient and arcane martial art, the underlying wisdom to which you have very little idea of. But never mind, right now it is enough to know all the moves. Besides, you have to confront your next opponent, the real boss of this line-up, the all-encompassing Nonhomogeneous Second Order Monstrosity with Nonconstant Coefficients.


You are forced now to use a tactic which is so tedious, your trainers expect you to refer to the manual every time the need arises.


Source: Mid-Terms field manual.

Heaving a sigh of regret, you recall that you have accidentally left your prize weapon at home, or was it at the tea party? Where is your Laplace Transform when you most needed it?


In any case, you eventually bring down the boss with the Variation of Parameters, a method even more inscrutable than the last. In fact, it is so arcane that it is not even clear why it is called "Variation of Parameters".

The coast is clear, at least for now. You look wistfully at the Farlow et al. (2007) 2nd ed. which has guided you through this tough journey. Unfortunately, you are still very far away from home. Feeling absolutely worn out after many fights, you drift to sleep to wake up in the real world that you call your own.

Thursday, December 02, 2010

The Aranjuez Diaries


Concierto de Aranjuez 3rd movement: Allegro Gentile
Joaquín Rodrigo (Comp.) / Narciso Yepes (12-stringer)

Before each Wednesday or Friday evening lecture, Prof Leung liked to play Concierto de Aranjuez from Youtube as a kind of mood setting. Usually only movements 1 or 2 were played, but the third movement is my favourite, so here you go.

List of Solutions in GEK1517 Disclaimer: These are my own solutions, not the ones derived in class; so if I couldn't get a solution or the lecturer's solution is the same as mine, I would not post it. It should follow that the demonstrations are imperfect and not final.Tutorial 1: Black Fridays
Tutorial 3:
Cracking Tiles
Tutorial 6:
Fibonacci's Rabbits
Tutorial 6:
Turtle Crawl
Tutorial 8:
Szymborska's Utopia
Examination:
Proving the Obvious

Miscellany: Application to MA1505: The Nabla Vector (use of metaphors)
Application to MA1505: Theorems of Vector Calculus (graphical demonstration)
Quote: Bishop George Berkeley (how not to learn science)
Quotes: Polanyi, Annan and Byers (somewhat random)
Concierto de Aranjuez, second movement

About the Course A course in the ideas behind breakthroughs in mathematics. In the course, complicated ideas are broken down into simple ones and presented as the mathematicians would have imagined it. This idea is mirrored in the test/exam/tutorials, where one arrives at proofs using guided instructions. This course reveals the joy of mathematics. Despite this, it probably put off some people from maths forever.

Because some things cannot be unlearnt, the ideas of GEK1517 has stuck on me and follows me wherever I go, surfacing occasionally and unexpectedly in my other modules (Calculus, physics, chemistry and even writing!).

Proving the Obvious

GEK1517 Examination / Question 1:

(i) Preface: Peano's Axioms
UT: The set of all natural numbers ℕ = {1, 2, 3, ...}
UT: 1
UT: Successor (here denoted by ')
(A1): 1 is a natural number
(A2): If a number a is a natural number, its successor is also a natural number
(A3): 1 is not the successor to any natural number
(A4): If two numbers have the same successor, they are the same number.
(A5): If 1 is a member of set K, and if for every natural number a, a is a member of K implies that a' is a member of K, then K is the set of all natural numbers. (Mathematical Induction).
The proofs in the following also feature reflexive equality (Ar) strongly. This is the first axiom in Peano's original list of axioms but was omitted from class notes. Essentially, it means x = x.

(ii) In the Peano axiomatic system for natural numbers, addition '+' is given inductively by the following two properties.
(+1): a + 1 = a' for a ∈ ℕ
(+2): a + b' = (a + b)' for a, b ∈ ℕ
Using (+1), (+2), and mathematical induction, show that
1 + a = a + 1 for all a ∈ ℕ

Solution:
Let P(a) denote (1 + a = a + 1 for all a ∈ ℕ)
P(1): 1 + 1 = 1 + 1 (true because (Ar))
P(k): 1 + k = k + 1 (force true)
P(k'): 1 + k' = k' + 1
(+1): 1 + k' = (k + 1) + 1
(+1): 1 + k' = (k + 1)'
(+2): (1 + k)' = (k + 1)'
(A4): 1 + k = k + 1 (true because P(k))
(A5): Statement proven for for all a ∈ ℕ

Lemma 1 (L1): Commutativity of +
To prove: a + b = b + a for all a, b ∈ ℕ
Let P(a) denote (a + b = b + a) , b ∈ ℕ
P(1): 1 + b = b + 1 (true because (ii))
P(k): k + b = b + k (force true)
P(k'): k' + b = b + k'
(+1): k + 1 + b = b + k'
(ii): k + b + 1 = b + k'
(+1): k + b' = b + k'
(+2): (k + b)' = (b + k)'
(A4): k + b = b + k (true because P(k))
(A5): Statement (L1) proven for for all a, b ∈ ℕ

(iii) In the Peano axiomatic system for natural numbers, multiplication '×' is given inductively by the following two properties.
(×1): a × 1 = a for a ∈ ℕ
(×2): a × b' = (a × b) + a for a, b ∈ ℕ
Using (×1), (×2), and mathematical induction, show that
a × 2 = a + a, and
a' × b = a × b + b for a, b ∈ ℕ

Solution part 1:
Let P(a) denote (a x 2 = a + a)
P(1): 1 × 2 = 1 + 1
What is 2? Take 2 = 1' (oh no...)
P(1): 1 × 1' = 1 + 1
(×2): (1 x 1) + 1 = 1 + 1
(×1): 1 + 1 = 1 + 1 (P(1) true because (Ar))
P(k): k × 2 = k + k (force true)
P(k'): k' × 2 = k' + k'
(2 = 1'): k' × 1' = k' + k'
(×2): (k' × 1) + k' = k' + k'
(×1): k' + k' = k' + k' (true because (Ar))
(A5): Statement proven for for all a ∈ ℕ

Solution part 2: Commutativity of ×
Let P(b) denote (a' × b = (a × b) + b), a ∈ ℕ
P(1): a' × 1 = (a × 1) + 1
(×1): a' = a + 1
(+1): a' = a' (true because (Ar))
P(k): a' × k = (a × k) + k (force true)
P(k'): a' × k' = (a × k') + k'
(×2): (a' × k) + a' = (a × k) + a + k'
using P(k): (a × k) + k + a' = (a × k) + a + k'
(+2): (a × k) + (k + a)' = (a × k) + (a + k)'
(L1): a + k = k + a
so (a × k) + (a + k)' = (a × k) + (a + k)' (true because (Ar))
(A5): Statement proven for for all a, b ∈ ℕ

Colophon:
The idea: you must forget all your arithmetic before you tackle this question. There is no arguing that "everyone knows" a+b = b+a; the only way is to prove it from the given axioms and properties. This is the intellectual equivalent of bailing out from a plane into the rainforest and building civilisation from the bottom up, right down to foraging for food, starting a fire, etc.

This is the first and only real proof in the series... I hope this is rigorous enough, and I hope the formatting makes it clear to follow (Facebook users please allow yourselves to be redirected to the "original post")

Regrettably, I did this only today, when the dust has settled over the exam period and freedom, merriment and general goofing off is in order. Never mind, enjoy the holidays folks.

Monday, November 15, 2010

Szymborska's Utopia

GEK1517 Tutorial 8 / Question 1: Discuss the metaphors and associations used in the following poem 'Utopia' by Ms. Wisława Szymborska (Nobel Laureate in Literature, 199[6]).

Ms. Wisława Symborska

I am sorry to find out, after a brief background search on Ms. Symborska, that her life displayed all the dweeb-patterns as seen in Jaromil, the Milan Kundera character I love to deride so much. This is not a very good poem; it makes an awkward reading, but the mathematical ideas expressed makes it relevant to the module and especially interesting.

This is reason enough for me to offer a free-rambling intepretation, so if you'll indulge me for one post--


Island where all becomes clear.
1. The island is Mathematics. Welcome to the world of Maths!

Solid ground beneath your feet.
2. "Solid ground" undefined terms, axioms of mathematics(?)
3. "Solid ground" everything else is groundless (?)

The only roads are those that offer access.
4. The only questions asked are constructive
aside: There are roads that "don't offer access"?!

Bushes bend beneath the weight of proofs.
5: Proofs open up new paths through ignorance (foliage)

The Tree of Valid Supposition grows here
with branches disentangled since time immemorial.

6: This vaguely refers to speculation, or intelligent guesses (?)

The Tree of Understanding, dazzlingly straight and simple,
sprouts by the spring called Now I Get It
.
7: This vaguely refers to the "eureka" moment as cherished by all bona fide nerds.

The thicker the woods, the vaster the vista:
the Valley of Obviously.

8: At first I thought this was stating the obvious, but then
9: Imagine looking across the valley, specifically at the trees on the other side. You can see all the features there very clearly, but you have not found a way to get to the other side! For that, you will need some "[bush bending] beneath the weight of proofs."

If any doubts arise, the wind dispels them instantly.
10: Possibility 1. The atmosphere discourages you from thinking critically.
11: Possibility 2. In this Utopia, nothing stays unknown or unresolved for long.

Echoes stir unsummoned
and eagerly explain all the secrets of the worlds.

12: Because you get all these dead mathematicians whispering stuff into your ears.

On the right a cave where Meaning lies.

On the left the Lake of Deep Conviction.
Truth breaks from the bottom and bobs to the surface.

13: Conclusions comes only sporadically. Once it is freed from the lake bottom, it bobs quite readily to the surface. Maybe this means that the first step is always the hardest.

Unshakable Confidence towers over the valley.
Its peak offers an excellent view on the Essence of Things.

14: Possibly uncharacteristic praise of dogmatism.
Corollary to 14: Possibly, after all this doubting and questioning and decosntruction of knowledge, being a good mathematician still takes a definite serving of balls and tough braincases.

For all its charms, the island is uninhabited,
and the faint footprints scattered on its beaches
turn without exception to the sea.

15: No one makes mathematics his/her whole reality.

As if all you can do here is to leave
and plunge, never to return, into the depths.

16: Corollary to (15).

Into unfathomable life.
17: Classical dweeb sign-off!
18: Real life is always where we end up in and what we are more used to, even though it is more complicated and much harder to understand than mathematics.

--END OF EQUIVOCATION--

Please comment if you have some better way of deciphering the above poem!

Saturday, November 13, 2010

Turtle Crawl

GEK1517 Tutorial 6 / Question 2.
Consider the turtle's movement:
F means advancing 1 unit in the firection of the turtle's head:
+ / - means, respectively, turning the turtle's head to the right / left by d degrees - the position of the turtle remains unchanged.
Take d = 90˚and start with F + F + F + F (0[th] iteration). In the subsequent steps, let the rewriting rule be
F ↦ F - F + F
(a) Sketch the first two iterations.
(b) It is observed that in the first few iterations, the turtle always returns to the same position where it starts. Does this hold for all iterations? Present the key ideas critically and carefully to support your answers.


Key Ideas:
1: As given, Iteration 0 produces a closed loop.

2: (1) applies because in Iteration 0, F is reproduced 4 times, then joined together so that each F is rotated 90 degrees to the right w.r.t. the previous F. This forms a closed square loop.

3: In every subsequent iteration, the instances of F produce identical segments.
F + F + F + F
↦ F' + F' + F' + F'
↦ F" + F" + F" + F" ...

4. In every subsequent iteration, we find 4 identical segments joined end on end, each one rotated 90 degrees right w.r.t the previous segment. This also forms a closed loop.
Fn + Fn + Fn + Fn

4. If (4) is shown to be true, proposition holds for all iterations
Summary: (1) is given, (1) requires (2), (2)⇒(4) proven, ⇒ proposition holds

-- END OF DEMONSTRATION --

Iterations 3 and 4 for your enjoyment

Fibonacci's Rabbits

GEK1517 Tutorial 6 / Question 1.
Starting with the letter b, consider the rewriting rules
b → a; a → ab.
For example, the first few 'words' formed by the above rewriting rules are
b, a, ab, aba, abaab, abaababa, ...
Let C(n) be the number of letters in the n-th word (n is a positive integer). For instances [sic],
C(1) = 1, C(2) = 1, C(3) = 2, C(4) = 3, C(5) = 5, C(6) = 8, ...
Prove that
C(n+1) = C(n) + C(n-1)
for all integers n ≥ 2. (Caution: Math. induction may not work well here.)

Spoiler: Lecturer's solution is more elegant, so please bear with me here.

Let number of 'b's in n-th word: Bn.
Let number of 'a's in n-th word: An.

Because of the rewriting rules b → a; a → ab.
'b's in a word is generated only from 'a's in the previous word
∴ Bn = An-1
'a's in a word is generated from both 'a's and 'b's in the previous word.
∴ An = An-1 + Bn-1

Now total number of letters in n-th word is C(n)
Total number of letters in n-th word is sum of 'a's and 'b's.
∴ C(n) = An + Bn
now
C(n-1) = An-1 + Bn-1 = An
C(n+1) = An+1 + Bn+1

To show that C(n+1) = C(n) + C(n-1), express all terms in An and Bn.
C(n+1) = C(n) + C(n-1)
⇒ An+1 + Bn+1 (LHS)
= An + Bn + An = 2An + Bn (RHS)
∵ Bn = An-1,
Bn+1 = An.
∵ An = An-1 + Bn-1,
An+1 = An + Bn.
Sub back into LHS:
LHS = An + An + Bn
= 2An + Bn = RHS.

-- END OF DEMONSTRATION --

Friday, November 12, 2010

Somewhat Random Quotables

It is only in the popular mind that knowledge equates with facts.
That is of course flattering, since facts are incontrovertible.
But it is also demeaning, since facts are meaningless;
they contain no narrative.

-- POLANYI John Charles

The idea that there is one people in possession to the truth,
one answer to the world's ills,
or one solution to humanity's needs,
has done untold harm throughout history, especially in the last century.

-- ANNAN Kofi (2001)

The certainty of mathematics is different from the certainty one finds in other fields; it is somehow purer and therefore more powerful. To be certain is to know. What an extraordinary feeling it is to know and to know that you know! What strength there is in that position! What confidence one has when one sees into the truth of some mathematical theorem! The angles of a triangle add up to two right angles. It is not a matter of "probably," "almost always," "in our experience," or "as far as we know." None of these usual caveats apply -- there is no quibbling. If you are not completely certain, if you have the slightest doubt, then you just don't get it. Mathematical truth has this certainty, this quality of inexorability. This is its essence.

-- BYERS William (2007), How Mathematicians Think
I just love it when mathematicians get emotional.

Friday, November 05, 2010

Theorems of Vector Calculus

Notes on the physical meanings of the theorems of Green, Stokes and Gauss covered in MA1505 Chapter 10

Introduction
Those who are familiar with the Mathematics module (the one specially designed to traumatise engineering freshmen) would readily identify the following formulas to be the point where it all starts to fall apart (ignoring Fourier series).

At first glance, these formulae all seem to be coincidence, as what can there be to relate integration over a line with integration over a surface, or to relate integration over a surface with that over a volume? The notes give no helpful explanation either... but the underlying idea is quite simple to understand!

Disclaimer
This following is a demonstration, not a proof. The goal is understanding, not certainty. If one is interested, there are pretty good proofs for Green's theorem as well as the theorems of Stokes and Gauss (TAYLOR Peter D., 1992).

Idea
Special case assumption: When you sum up small loops, they become one big loop.
As seen in this tile of four loops, the interior arrows cancel out and leave the outer boundary of the loop (which has nothing to cancel out with).

We apply this principle everywhere else rather thoughtlessly. Does anyone remember Carnot engines from Physics PC1431? How do you reduce a reversible process to a sum of Carnot cycles?
Yes.

General assumption: The interior boundaries cancel out.
The important thing is that the R.H.S of the three theorems deal with summing up quantities for which the internal boundaries cancel out each other. This is why summations (integral) over a plane/volume can equate to summations over the plane/volume's outer boundary.
This general assumption is necessary to bring Gauss' Theorem into the discussion.

Stokes:A Loopy Proposition
Aside: In practise, it is easier to use Green's theorem to prove Stokes' Theorem rather than the other way round, for an idea how this is done, please refer to Thomas' Calculus (12th ed.), Chapter 16. However, for this section, only Stokes' theorem will be demonstrated (Green's theorem follows as its 2-D speical case, a fact which you may have learnt in class).

The basic idea of Stoke's theorem is to add up the curl (small loops) of the vector field to a closed-path integral (the big loop).
(1)It can be seen that in a 3-D space, many different surfaces can share the same boundary.

(2)As follows from the assumption, any closed loop can be split up into smaller loops, and then split up into even smaller loops, and so on ad infinitium. The sum of these loops, as expected, equals the big loop i.e. the boundary of the surface. This ensures that even for different surfaces, the integral can be the same if the surfaces share the same boundary!

(3)If the big loop can be thought of as the sum of infinitesimal loops, we can approximate each infinitesimal loop to the curl at a point (normal to the surface).

What is the meaning of curl?
Curl is what textbooks describe as "circulation density". Basically, it is how much vectors swirl in the immediate neighbourhood of a given point. The curl vector points upwards if the net circulation is counter-clockwise from above, and vice versa.

The big last step: Approximating infinitesimal loop to curl
After obtaining your infinitesimal surface dS, it is time to match the 2 quantities
(1) Line integral over the infinitesimal loop
(2) Curl over the point

Admittedly, I have not found a way to settle this step yet, but here are 2 important observations:

(1) The quantities a)line integral over infinitesimal closed loop and b)curl derive their values from the same 4 vectors in the neighbourhood of small surface area dS.

(2) Only the components of a) and b) aligned with the surface of dS are taken:


Gauss: Analogy using Jigsaw Pieces


The cutest formula in the bunch also looks the most devastating, not least for its prominent feature of a triple integral. However, the fact that features a divergence operator rather than a curl operator makes it infinity times friendlier to the brain.

Basically, what is says is:
The volume flow rate over a closed surface
is equal to
The net divergence in the volume enclosed by the surface.

What is the meaning of divergence?
Divergence at a point is a measure of the net tendency of nearby vectors to point inwards into the point or outwards away from the point.
Basically,

The cube is a small volume dV in the space enclosed in the surface.
In the jigsaw analogy, we simplify each small volume dV into a jigsaw piece.
The tendency for outflow at one edge, contributing to positive divergence, is represented by a protruding knob.
The tendency of inflow at one edge, contributing to negative divergence, is represented by a hole.

The big step: Cancelling out the interior boundaries
The boundaries must cancel out in between volumes. This is because any vector which contributes to positive divergence in one small volume dV also contributes to the same amount of negative divergence in an adjacent dV, and vice versa.


This is the same as saying in the jigsaw analogy that 2 adjacent jigsaw pieces fit each other smugly.

The "divergence" is found by adding up the knobs (1 per knob) and holes (-1 per hole) along the edge. The "divergence" in the result sum can be thought of as the sum of the "divergences" in the individual jigsaw pieces. It can also be thought as the sum of knobs and holes along the edge of the result (i.e. by giving it a count).

A final observation: The key to understand why Gauss' Theorem works is the same key to understand why a completed puzzle always has straight edges (a particular case of zero divergence) even though all the pieces in it are jaggedy!

-- END OF DEMONSTRATION --