| > | # Introduction to inequalities.mws |
| > | restart; |
An introduction to 'Inequalities' for first year students
I have three aims in this 'Maple worksheet':
What is an inequality? There are many, many different types of inequalities, and here I aim only to convey a flavour.
Note. I wish to emphasise that the purpose of today's exercise is not neccessarily to arrive at any conclusions, but
rather to raise certain questions, and get you thinking about certain things... I begin with a classic tale relating to the
invention of the game of chess...
A chess board problem
Here's an 8 by 8 chess board (don't get distracted by the fancy footwork I used to construct it, though you
might like to cast your eye over it and try to figure out what's going on):
| > | colour1 := proc(i, j) if i+j mod 2 = 1
then 1 else 0 fi end: colour2 := proc(i, j) if i+j mod 2 = 1 then 0 else 1 fi end: PLOT(seq(seq(POLYGONS( [[i,j], [i-1,j], [i-1,j-1], [i,j-1]], COLOUR(RGB,colour1(i,j),colour2(i,j),0)), i=1..8),j=1..8)); |
![]() |
| > |
The story goes that the inventor of Chess so pleased the king - to whom he showed it - that the king offered a
reward of whatever the inventor wished... The inventor gave the king a choice; from your granaries give me
whichever of the following you wish:
Question. Which choice ought the king have opted for (assuming, let's agree, that he wished to give the least amount)?
An initial approach. Let's form the partial totals corresponding to Choices One and Two, to perhaps gain a feeling for
what is going on:
| > | array([[n, `Choice One partial totals`,
`Choice Two partial totals`], seq([n, add(2^(k-1), k=1..n), add(k*100000000000000, k=1..n)], n = 1..20)]); |
![]() |
(1) |
| > |
As you see the partial totals (up to the square) corresponding to Choice One are far less than those for Choice Two, and
the question is does that continue all the way up to the square (or, at least, at the square)?
That question raises two other questions:
and so the real question becomes this: which of the following it true
That's for you to actively think about... (of course, this question gives rise to many, many other questions, as you will see...)
And now for a very well-known and beautiful example, the simplest case of
The arithmetic-mean geometric-mean inequality
Choose any two positive numbers a and b (not necessarily distinct), and form
1. the arithmetic mean, , of a and b, (that number is halfway between a and b)
2. their geometric mean, , of a and b, (that number is somewhere between a and b: if one thinks
of ab as being the area of a rectangle with side lengths a and b, then may be thought of as being the side
length of the square whose area is the same as the rectangle, and will lie somewhere between the lesser and
he greater of a and b)
Now, question: how do and compare in size?
It is immediately clear that they coincide when , and the real interest is in what happens otherwise...
Let's look at some examples (where I will take some different values for a and b), and please note that
everything I am doing here using Maple we could also do by hand, perhaps with the help of a calculator...
(in other words, don't let the technology go to your head, or get in the way of your thinking...):
| > | A := (a, b) -> (a + b)/2; |
| (2) |
| > | G := (a, b) -> sqrt(a*b); |
| (3) |
| > |
Example 1.
| > | a[1] := 2; b[1] := 4; |
| (4) |
| > | A(a[1], b[1]); |
| (5) |
| > | G(a[1], b[1]); |
| (6) |
and which - if either - is greater?... So, technology aside, what can we say?...
Example 2.
| > | a[2] := 2.1; b[2] := 3.9; |
| (7) |
| > | A(a[2], b[2]); |
| (8) |
| > | G(a[2], b[2]); |
| (9) |
| > |
and we see that the arithmetic mean is the greater.
Example 3 (in which I am choosing the a-value to be slightly more than 2, and the b-value to be slightly less than 2).
| > | a[3] := 30001/10000; b[3] := 299999/100000; |
| (10) |
| > | A(a[3], b[3]); |
| (11) |
| > | G(a[3], b[3]); |
| (12) |
| > |
And here we see that?...
So, let's see (note that - as with most calculators - the following evaluations are automatically done to ten decimal places):
| > | evalf(a[3]); |
| (13) |
| > | evalf(b[3]); |
| (14) |
| > | evalf(A(a[3], b[3])); |
| (15) |
| > | evalf(G(a[3], b[3])); |
| (16) |
| > |
And here we see that? ...
But now see this (increasing the number of decimal places from 10 to 11):
| > | evalf(A(a[3], b[3]), 11); |
| (17) |
| > | evalf(G(a[3], b[3]), 11); |
| (18) |
| > |
and here we see that ...
So, question: for all positive real numbers a and b is it true that their geometric mean is always at most their
arithmetic mean, or are there examples of a and b for which their arithmetic mean is less than their geometric mean?
So, for all positive numbers a and b, is ?
That, too, is a question to think about.
Moving on, I ask you to observe that whenever we choose four consecutive whole numbers a, b, c and d - written in ascending
order of size (and so and for some whole number n) - then the sum of the outer two is
equal to the sum of the inner two: (since both are simply )
Now I ask: which (if either) is the greater or ?
We could try some examples, just to get a feeling for what might be going on:
| > | n := 1:
n^2 + (n+3)^2; (n+1)^2 + (n+2)^2; |
| (19) |
| > | n := 2:
n^2 + (n+3)^2; (n+1)^2 + (n+2)^2; |
| (20) |
| > | n := 3:
n^2 + (n+3)^2; (n+1)^2 + (n+2)^2; |
| (21) |
| > | n := 4:
n^2 + (n+3)^2; (n+1)^2 + (n+2)^2; |
| (22) |
| > |
So what result is suggested? Can we give a proof of our guess?
Another type of question. Let L be a line segment of length l (and here a piece of string comes in very handy; I hope I remember
to bring some string into class, and get some for yourself), and imagine many, many triangles with perimeter l.
Question. Of all possible triangles with perimeter l, which (if any) of them encloses the greatest area? (and why do we not really have
an interesting problem if we replace ' greatest ' with ' least '?)
I hope to play with string during class contact, and just see how that goes...
This is the isoperimetric (meaning, equal perimeter) problem for triangles.
And what about the isoperimetric problem for quadrilaterals? Imagine many, many 4-sided figures... Play!!
Another type of question: Let C be a (fixed) circle; where (if anywhere) should three points be located inside
or on C, so as to maximise the area of the corresponding triangle? And what about the corresponding
problem with 4 (5, 6, 7, ... ) points?
In passing I mention a much more subtle one: choose any four consecutive numbers (not necessarily whole
numbers). E.g., choose 2, 3, 4 and 5.
Now for and . But what about other values of x (and not just whole numbers)?
Meaning? Well, which of the following, for example, is (perhaps) greater:
or ?
or ?
or ?
or ?
etc.
A quick plot shows something interesting:
| > | with(plots): |
| > | p1 := plot(2^x + 5^x, x = (-.5)..1.5,
colour = navy, thickness = 2): p2 := plot(3^x + 4^x, x = (-.5)..1.5, colour = green, thickness = 2): display([p1, p2]); |
![]() |
| > |
You see how close the values of and appear to be (at least in the middle range of values of x)...
| > | p3 := plot(2^x + 5^x, x = .2..(.5),
colour = navy, thickness = 2): p4 := plot(3^x + 4^x, x = .2..(.5), colour = green, thickness = 2): display([p3, p4]); |
![]() |
| > |
| > | p5 := plot(2^x + 5^x, x = (-.5)..(-.1),
colour = navy, thickness = 2): p6 := plot(3^x + 4^x, x = (-.5)..(-.1), colour = green, thickness = 2): display([p5, p6]); |
![]() |
| > |
Here one might quickly suspect the following inequalities:
Indeed, these happen to be true, but it is not at all easy to prove that they are. Finally, of all the above topics,
the one I would most like you to think about for our next class together is the chess related problem.
| > |