Sunteți pe pagina 1din 41

Mathematical Tidbits and Snacks and Bigger

Adventures
Srinivasan Nenmeli-K

My aim in this article is to introduce many methods and approaches of


mathematics at the level of middle-school and high school students.
This will also introduce you to techniques you will learn at college level
mathematics later.Further some of the numerical methods used in computer
programming are explained with simple examples.This will take you to 'numerical
algorithms'--a subject of practical importance.
Towards the end, I will give a short intro to Chaos theory and 'FRACTALS'

I sincerely hope that math teachers pick up some of these and enliven their math
classes with these tid-bits. They can serve as fillers for 10 to 15 minutes.
I also add a few historical notes that might interest you.These are marked: 'H N.'
You can skip these at first reading.
All you need is a paper,pencil and a calculator for these exercises.

I would also encourage students to write simple computer programs for some of
the computations using the steps here.
I hope that at the end of this study, if you are a high school student,you will gain
"mathematical maturity" to pursue further work in the college.
Above all, share these mathematical tidbits with your friends.! You can study the
various sections in any order you like.
Here we go!
-------------------------------------------------------------------------------------------------------------
PART 1

How to find the square root of a number in a few steps ?

Suppose you want to find the square root of a number n.

Start with an approximate root,call it x.


Then a better approximation is given by this simple equation:

x' = (x + n/x)/2 ----------------FORMULA 1


Now you plow back x' in the right side and get the next best approximation x''
and so on.

This method is called a 'method of iteration"

Let us see a simple example:

Example 1 To find the square root of 2:

Let us start with x=1 x' = (1 + 2/1)/2 = 3/2 = 1.5

Plow back x=1.5 in the right side:


x'' = (1.5 + 2/1.5)/2= (1.5 + 1.333)=2.8333/2=1.4166
The answer is already correct to 2 decimal places.
Let us repeat or iterate once more:
x''' = (1.4166 + 2/1.4166)/2=1.414215573

Your calculator gives :

In two iterations we got an answer correct to 5 decimal places...


Well, most probably your calculator uses the same procedure.

This numerical procedure we call a "Numerical Algorithm" -- a fancy name


indeed.!
This formula is called 'Heron's formula'---Heron of Alexandria, most probably the
same math genius who gave us the formula for the area of a triangle.

[H N :
Heron could have found this formula by trial and error or empirically, but we can derive this
formula using a method called "Newton-Raphson method" which you will learn in a "Calculus"
course.Incidentally, Alexandria was a centre of great learning and math knowledge.The Library
at Alexandria was a treasure-house of great math manuscripts.This place was later destroyed
twice--once by Romans and later in the 7th century [around 641AD]by muslim invaders who
burnt the library.Now a modern library has been built at the same site in 1999.]

We have introduced an "iterative formula" --there are many such formulae or


formulas.The word "iterare" means ,in Latin, " to plow back".
We can use this formula for finding square roots of any positive number, not only
just integers.

Try this exercise:


1 Find the square root of 1943 by Heron's formula
2 Find the square root of pi= 3.1416
[May be, you can write a small computer program for the formula and run the
programs]

Can we extend this method ,similar to Heron's formula, to find cube-roots? The
answer is yes.
But to get at that formula,you have to use Calculus and Newton's method.

Cube Root and higher roots

The iteration formula for cube root is this:


x' = 1/3[ 2x +n/x^2] -------------------------Formula [2]

Example 2 Find the cube root for n= 27


Start with x =2 x' = 1/3[ 4 + 27/4] = 3.58

Iterate now: x'' = 1/3[ 7.1666 + 27/12.82] = 3.0909


The result is close to the actual value of 3.

The iteration formula for 4th root? ---well, you can guess :
x' = 1/4[3x+n/x^3]

Try this for n=16. Start with x=1.


x' = 1/4[ 3 + 16/1] =19/4 = 4.75
x'' = 1/4[ 14.1 + 16/91.125]=1/4[14.1+0.1756]=3.569
x''' = 1/4[10.707 + 16/45.46]=2.76
x''''= 1/4[ 8.294+16/20.873]=2.265
The iteration slowly converges to the actual value of x=2.

In general, to find the nth root of m:

x' = 1/n [ (n-1)x + m/x^(n-1)] -------Formula 3

[May be, you can remember formula 1 and 2 for your future work in school.

Successive Approximation

We have used the iterative method to find square roots. This can also be called a
method of successive approximation.We start with a rough estimate of the
solution and refine it gradually by iteration.
To solve algebraic equations, you have to rewrite the equation in the form :

x= f(x) --------------------FORMULA 4

Then substitute x as an approximate solution or root in the right side;get x-the


first approximation. Call this x'.
Repeat with x =x' by substituting in the right side and get x".

Many times, engineers use this formula to get quick answers.


Example 3
Let us solve this equation: exp(x) -3x=0
Let us rewrite it:
x= f(x) = exp(x)/3

Start with x= 0.5 x' = exp(.5)/3=0.549

x'' = exp(0.549)/3= 0.5775


x"' = exp(0.5775)/3= 0.59385
x"" = exp(0.59385)/3=0.60365
x""' = exp(0.60365)/3 = 0.60959

After you repeat a few times ,we get x= 0.61889


This method is also called "Picard's iteration" .

Fixed Points

You may wonder whether successive numbers will converge to some value.This is
a big question.
Let us get some bearing on this problem.

Graphical method
Suppose you want a graphical method for this problem:To solve x=f(x)
Write two equations: y= x
y1= f(x)
y=x is just a straight line passing thro origin....easy to draw.
Now draw the function y1= f(x)
The point where the two curves intersect , gives the solution where x=f(x)
But we start at some value x close to the solution x* , gradually approaching the
point of intersection if the method yields the root.

This is called "contraction mapping' from function y= f(x) to y=x


The root you get is called "the FIXED POINT"
The value you got x= 0.61889 is called the fixed point for the equation:
exp(x) - 3x=0
Once you reached the fixed point ,you repeat the iteration ,you will get the same
number:
exp(x)=exp(0.61889)=1.856865 3x=1.85667

There is considerable theory behind these fixed points....This topic also leads to
the topic of 'Fractals' which was developed in 1950's.See Part 9 later.

-------------------------------------------------------------------------------------------
PART 2

Golden Ratio

Now let us solve a famous,significant quadratic equation:

x^2 = 1 + x --------- equation 1


or
x^2 -x -1 =0
You can use the clumsy quadratic formula you learnt in middle school.

Taking the positive root ,

= 1.61803

This magic number is called the Golden Ratio which was used by Greek architects
to design 'Parthenon" :the height/width ratio is this number---aesthetically
satisfying.
Renaissance writers called this ratio "The divine proportion".

The negative root gives :

You might have visited this ratio in your geometry book...Check this.

What this ratio is all about?


Let us pick two numbers A and B such that

A/B = (A+B)/A
See the diagram below:

<--------A---------><----B----->
|--------------------|---------------|
<----------------A+B ----------->

Then cross-multiplying A.A = AB + B.B


Suppose we write : A =x , B=1
we get x.x = x +1 ---> same as equation 1 above.
Now A = x = 1.61803
You can also see that" x = 1/x-1 , x(x -1) =1 ---> x.x = 1 +x

This ratio is usually denoted by the greek letter "phi" .

The designation of phi comes from the name of the Greek artist 'Phidias' who
had used this ratio frequently in his sculpture.!
[Draw one rectangle of length A=3.22 in and width B= 2 inches.Draw another
rectangle with length =5.22 ih and width =3.22.Look at the figures now.They
are in golden ratios]You can learn from geometry books how to draw rectangles
with the Golden ratio.
Check for yourself: x = 1.61803 = 1/0.61803

Properties of phi
This 'phi' has many interesting properties. Several pages can be written on that.
What about higher powers of phi?:

It is so easy to generate higher powers of phi.


Continuing thus, we get:

Look at the numbers in these higher powers of Phi: 1,1,2,3,5, 8,13

What do you find? The third number is sum of the previous two.The numbers
are the sum of previous two numbers.This sequence is a fascinating one.

Start again with

We can rewrite this:

You can also show:

In general:

You may say: "Leave aside the Greek architects and masons.What are the uses
of this phi?"
To see this let us move on to the next,related topic.

Fibonacci Sequence

Fibonacci [also known as Leonardo of Pisa,(1170-1250)] gave the following


problem of rabbit breeding in 1202 AD.Suppose you start with a single pair of
rabbits; each pair produces a new pair of rabbits every month, and further each
pair becomes fertile after one month.The rabbits never die.After one month we
will find two pairs.After two months,there would be three pairs;In the next
month ,there would be 5 pairs and so on.

The number of pairs follow the sequence:


1,1,2,3,5,8,13,21,34,55,89 and so on.

You see the pattern: just keep adding the previous two numbers.

We will show the close link with the golden ratio "PHI" immediately....
Take the ratio of any two consecutive numbers:
R = 21/13= 1.61538

R = 34/21=1.61905

R = 89/55= 1.61818 18
R = 144/89=1.617977
R = 233/144 = 1.618055
The ratios go towards phi= 1.61803 ,the same Golden ratio.
In mathematical language ,the limit of this sequence is the golden ratio,phi.

The sequence of Fibonacci numbers we will write with this notation:

F(0)= 0 F(1) =1 F(2) =1 F(3)=2 F(4) =3 F(5)=5 and so on.

[ HN:
Historically ,the Fibo sequence was given by Indian mathematicians, following some musical
notes.Gopala (about 1135) and Hemachandra (about 1150) mentioned Fibo sequence explicitly.
Ref: Donald Knuth -The Art of Computer Programming].

Now the higher orders of phi given earlier follow the equation:

Thus

Knowing the Fibo sequence, we can easily work out any higher power of phi.

Some important identities for Fibo numbers are useful:


F(n+1).F(n-1) - F(n)F(n)= (-1)^n

This is due to Johannes Kepler.


Another tidbit for Fibo fans.!

Fibo sequence and the Pythogorus triples

You have definitely studied in Algebra and Geometry the Pythagorean formula
and triples: {3,4,5}
which means:
There are other triples too.How to discover them.?
Take the Fibo sequence and choose the alternate numbers after 5:
0,1,1,2,3,[5], 8, [13] , 21 [34], 55, [89] ,144, [233], ....
These numbers are the 'hypotenuses' of the triples!

Take 13: you can find the triple:


The next triple with hypotenuse of 34: same as {8,15,17}
The next triple----------------------of 89:
The next triple ----------------------of 233
We found these triples: {3,4,5} , {5,12,13}, {16,30,34}, {39,80,89}, {
105,208,233}

If the hypotenuse is , then one of the legs of the right triangle is

Thus 13= The other leg of the right triangle is 5.

Several Egyptologists surmise that the ratio of height:semibase : slant length


may follow one of these triples,as known to Egyptian mathematicians.!

Natural Products and Fibo Sequence

Many natural products exhibit the Fibo sequence such as petals of


flowers,bee-hives pattern, the seeds in flowers ,the shape of shells and so on.
The family trees of bees and cows have l been related to the Fibo sequence.

For example, male honey bees have only one parent, a female.Female honey
bees hatch from fertilised eggs; therefore female bees have two parents-one male
and one female.The family tree then follows a Fibo sequence.
There are excellent web sites devoted to Fibo sequence and even a dedicated
journal:'Fibonacci Quarterly.'
Continued "staircase-like" Fraction

This is a fascinating subject by itself----Continued Fraction....Let us see one


relationship to phi.

F =1+ 1/ (1+1/(1+1/(1+ ........... and so on.

Take the first few: F =1+ 1/ (1+ 1/(1+1)= 1+ 1/1+1/1+1/2=


1+3/5=1.60
Continue further: F = 1.61803=phi

In general, we can write a continued fraction as follows:

x=a+1
---
b+1
---------
c+1
--------
d+1
---------
This is represented by the notation:
x= [a; b,c,d...]
For golden ratio: phi = [1;1,1,1,1,....] Very simple!

Every infinite continuous fraction is an irrational number. It follows that irrational


numbers can be represented by an infinite continuous fraction.

Can we find a continued 'staircase fraction' for pi?

We give here one such continued fraction ,which can be used for approximating
pi.

Let us see a few steps of this staircase CF.

For the next step down in the stair-case , we get:

Let us stop here: The approximate values of pi are:


3,
22/7= 3.1428
333/106=3.141509
355/113=3.14159292

[HN:
The subject of continued fraction was written down by the Hindu mathematician Aryabhatta
sometime in 5th century.He also made many other math work like the sine tables. He was a
noted astronomer.He gave the circumference of the earth as 62832 miles.He gave a value of
pi=3.1416,taking earth's diameter as 20000 miles.!He used the 'arabic numerals' with decimal
point system.He wrote the 'sutras' or formulas in the classical language of India--'Sanskrit'
and used letters for numbers and vowels for decimal points.!He also introduced the word
"approximate " ['asanna'] in math work.

His infinite series expansion for square root of 2 is as follows:

accurate to five decimal places.


His work "Aryabhattiyam" was translated into Arabic by Al-Khwarizmi sometime around 820 AD
and introduced into the Arab world. Thus Indian numerals became Arabic numerals later in
Europe.
These works spread to Spain which was ruled by the moors,then translated from Arabic to Latin
and then to other European languages.]
[H N:
The text books give credit to John Wallis [1616-1703] for introducing continued fraction.
The value of pi --we obtained by continued fraction as 355/113-- was given by Zu Chongzhi in
400 AD and remained the accurate one with 7 decimal places for nearly 1000 years.]

---------------------------------------------------------------------------------------------------------------
PART 3

Simple Addition and Multiplication Problems

Carl Frederich Gauss, [1777-1855],one of the three greatest mathematicians of


all times [the other two being Archimedes and Isaac Newton] was posed with this
problem by his elementary school teacher---hoping to have some respite from his
work:

Problem: Find the sum of integers from 1 to 100;


Gauss was ready with the answer in a minute.How did he do this?
Well- he developed an 'algorithm ' or procedure to find the sum, as follows:
He used vertical addition ,instead of adding one term at a time:

S= 1+2+3+5 +6 ------------+96+97+98+99+100

S =100 +99 +98 +96 -------+5+ 4+ 3+ 2 +1


--------------------------------------------------------------------
Add vertically:
2S = 101 + 101 +101 -----------101+101+101+101
Thus we have ,on the right side, 101 repeated 100 times.

2S= 10100
S= 5050
Cool algorithm!
There are many such tricks used by mathematicians for finding sums for series of
numbers.

Triangular Numbers

These are number of units or dots you would need to build a triangle as shown
below:

*
* * *
* * * * * *
* * * * * * * * * *

Thus we have the numbers 1,3,6,10 and so on.


The sequence is generated by the formula: n=k(k+1)/2

Can we find the sum of reciprocals of triangular numbers?:


S = 1+ 1/3 + 1/6 + 1/10 + 1/15 +.....

The answer was provided by Leibniz,another great mathematician , by a clever


method :

Take S/2 and rearrange:


S/2= 1/2 + 1/6 + 1/12 + 1/20 +1/30 --------

S/2 = (1-1/2) + (1/2- 1/3) + (1/3 - 1/4) + (1/4 - 1/5) -------

Simplify: S/2 = 1 -1/2 + 1/2 -1/3 +1/3 --------


S/2 =1
or
S =2
This amazing result , the sum of an infinite series,made Leibniz well known.

[HN:
Leibniz (1646-1716) succeeded in developing Calculus at the same time as Isaac Newton and
there was bitter verbal battle between them for claiming the priority for "Invention of
Calculus."
In those days,math results were communicated through letters to friends,professors and
leading lights of the day.There were no research journals. Communication was slow and also the
translation from one language to another and the problem of notation cropped up.So,there were
many reasons for misunderstanding over priority claims and bitter feelings between
mathematicians in Newton's time.There was also the issue of national pride and rivalry between
Britain and France ,France and Germany and so on.]

We shall now explore the sums of infinite and finite series by clever
methods,starting with the Geometric Series you have learnt in Algebra or
Precalculus.
--------------------------------------------------------------------------------------------------------------
Geometric Series

You recall that the sum of numbers :

going to infinte terms is a geometric series:

The ratio of consecutive numbers is 'r'.

If r is between -1 and +1 , that is -1< r < 1,


the sum is:
S = 1/ (1- r) --------------------------------Equation 1

We can get many useful results with this equation:

If r= 1/2, we get:
S = 1+(1/2) + (1/4) + (1/8) + (1/16)------ = 1/(1-(1/2)=2
Sounds remarkable!

Now ,if r= 1/3 ,


S = 1+ (1/3) + (1/9) + (1/27) --------= 1/(1-(1/3) = 3/2

We call this a 'converging series' because the sum leads to a final number.

What if r is greater than 1? :


You know that the sum gets very large after a few terms are added.

There is no convergence at all.

We introduce a couple of interesting 'summing' problems here and also Mersenne


numbers.

Let us recall a simple,delightful problem from folk-lore ,called St Ives


problem,sometimes given in
rhymes for children, but this is not a child's play:

St IVES PROBLEM

I was going to St Ives, I met a man on the way with seven wives;Each wife had
seven sacks; Each sack had seven cats;each cat had seven kittens; How many
were going to St Ives ?
Using your result from Geometric series:

or simply: S = 1+7(1+7(1+7(1+7)))= 1+7(1+7(1+8))= 1+7(1+7x57)=


1+7x400=2801

Nested Multiplication-Horner's rule

This method of finding polynomials and higher powers of x by using repeated


brackets is called Horner's rule or 'nested multiplication' and this is the widely
used method in computer programs!
This procedure or algorithm reduced number of multiplications,compared to
finding each term in a polynomial and adding them up:
Take the polynomial :
We can find x^2, x^3,x^4 .....and multiply with the coecefficients and add them
up....This involves too many multiplications.Here is the efficient 'nested'
multiplication or Horner's rule:

Take a small example:


For
Take sum
Next step: sum = previous sum .X + next coefficient of lower degree
Repeat these steps:

We are done with two multiplications and two additions.


Check by reversing the order:

For many polynomial work,Horner's rule is handy,as we used for the St Ives
problem.

Example:
Evaluate the polynomial: y = 2 + 3x +4 x^2 + 6x^3 + 7x^4 at x= 2

Start with sum = 7


Next step sum = 7 x + 6 = 20
Next step: sum = 20 x + 4 = 44
Next step: sum = 44 x +3 = 91
Next step: sum = 91 x +2 = 176 ---> y =184

Check: y = 2 + 6 + 16 +48 + 112= 184

---------------------------------------------------------------------------------

A problem similar to St Ives was given by an unknown Egyptian mathematician


,sometime in 1650 BC , found in the Rhind papyrus document:

There were seven houses,each had seven cats, each cat caught seven mices
,each mouse had seven spelt and each spelt seven hekat. How many total were
there?
The answer is : S = 1+ 7 + 7^2 + 7^3 +7^4 + 7^5 = 28043
Using Horner's rule, S0 = 1
S1 = 1.7 +1 = 8
S2 = 8.7 +1 = 58
S3 = 58.7 +1 =407
S4 = 406.7 +1 =28043

[H N:
'Rhind Mathematical Papyrus' is a Egyptian mathematical document purchased by Alexander
Henry Rhind in 1858 in Luxor ,Egypt and now kept in the British Museum.It contains 64
problems, algebra and even trig included ,and is the main source of Egyptian mathematics
available.There is another similar document in Russian museum as well]

Now to Mercenne's numbers:

M1=1; M2=3; M3= 7 and so on


Mn's are: 1,3,7,15,31,63,127,255......

Soon enough the numbers become huge:


The number of digits in Mercenne's number is

In digital computers, with base or radix 2, these numbers are just a string of
ones:

M1=1, M2=11, M3=111, M4= 1111 and so on.


It is easy to write this way and convert to decimal numbers!
M5=11111= 15 +16=31 M6=111111=31+2^5=31+32=63 and so on.

[HN
Mercenne's numbers have been used to hunt for large prime numbers,using a computer
program,since 1970's.A major project was undertaken at UCLA [Univ of California,at Los
Angeles] and they found a million digit prime with Mercenne's number.If Mn is a prime,then n
is a prime too.]

Checker Board Problem


Here is an ancient problem with modern algorithms.Take a checker-board with
8x8=64 squares.Place one grain of wheat in one square .Then two grains in the
next square.Then place 4 grains in the third square and so on.How many grains
would be required for all the 64 squares.?

The answer would be : Sum S

This can be easily found with a small computer program you can write for
yourself.

Sum of cubes of integers

Here is a math -tidbit:

Find
A theorem due to Nichomachus [about 100 AD] gives this interesting
relationship:

This theorem can be generalized and you can show that:

Example: John has a set of cubical boxes of width: 1in,2in,3in,4in and so on.The
biggest box is of 8 inches.Find the total volume of all the boxes:
S = (1+2+3+4+5+6+7+8)^2= [8(9)/2]^2= 36^2=1296 cubic inches

Harmonic Numbers

Harmonic numbers are sums of reciprocals of integers:


Hn= 1+1/2 + 1/3 + 1/4 + 1/5 -------+1/n

What could be simpler than this series!


But does this converge as we go to further terms.?The answer is definitely "NO",
even though we are adding smaller and smaller quantities...This was proved by
Johann Bernoulli, one of the two brothers -- a team of mathematicians,having
their own quarrels about "who found first this theorem?"

[ H N:
They came from Switzerland and studied with Leibniz in Berlin .Jakob Bernoulli,[1654-1705],the
elder one,did much work in infinite series and Calculus.

His early work leads us to another topic: the Catenary curve, the curve you find for a cable
suspended between two poles .Galileo thought that this curve is a parabola,but it is not.It is
described by 'hyperbolic functions' which you might have studied in Precalc.
The great arch in St Louis ,Missouri is designed,upside down, with the same catenery
curve.Jakob took one year to try to solve this catenary problem ,but could not succeed; but the
younger fellow,Johann [1667-1748] did that by 'burning mid-night oil' over a single night-
time.Johann was justifiably proud of his achievement.[Jakob Bernoulli's tombstone was
decorated with a logarithmic spiral ,shown later in this article!]
What is the equation for a catenary or hanging cable?

where a is the minimum distance of the cable from the ground and y is the height.
You can consider thisfunction as intersection of two curves: y1=(a/2)exp(-x/a) and
y2=(a/2)exp(x/a)
The two curves meet when y1=y2 at x=0..
Then y(0)=a/2 + a/2=a

There was a brilliant genius studying under Johann Bernoulli who cracked many problem s of
"infinite sums"--sums of infinite series--and he did have a productive life for 76 years before
Gauss came over the scene.You will meet his name repeatedly in many branches of
mathematics: Leonhard Euler.(1707-1783) ]

Leonhard Euler & Infinite sums

Euler [pronounced "oiler"] tackled the infinite sum for this series:

Find the sum : S = 1+ (1/4) + (1/9) + (1/16) + (1/25) ------

---------------------equation (1)
This is a remarkable result because the sum leads to a term involving pi.We can
use such a series to find the value of pi, as we shall see later.
It is also strange that while harmonic series does not converge,this series is
converging.[Sorry, I am not giving the proof ,which is available in many books.]

Armed with this result, Euler reaped a rich harvest of many results;here are a
few:

-----equation(2)

What about the series:

Euler had a quick answer:

--------equation (3)
With these three infinite sums, S,S' and S'', Euler opened up a new area in
infinite sums....

Carl Frederich Gauss and geometric series

C F Gauss, one of the greatest mathematicians ,also a physicist and


astronomer of first magnitude,whom we mentioned before, made many new
discoveries in geometric series .

[H N :
Gauss (1777-1855) is credited with least-square method of curve fitting ,at the age of 15 or
so, to aid his astronomical observations.Gauss's work on magnetism was significant that the
magnetic flux is now measured in "Gauss" units--like we use 'Newton' as the unit for force.The
fundamental theorem of algebra was also proved by Gauss...read about this in
algebra/precalculus book. He also found methods for numerical integration,known as
Quadrature methods.Perhaps many people remember Gauss for the bell-shaped curve-'Norm al
distirbution 'in statistics--the Gaussian distribution.]

You are familiar with the geometric series:

Substitute -x for x:

--------------------------
equation 4

Add the two series: 1/(1-x) + 1/(1+x) = 2/(1-x^2)

---------------------------
equation 5

Here are other sums:

------------------------------equation 6

------------------------------equation 7
With geometric series alone,we can generate many infinite series.
[Can you prove equations 6 and 7 ? ]
Power series / Taylor series and Approximations

Taylor series gives an easy and powerful method for generating power series for
many functions.But you must learn basic 'differential calculus' for that.

Suppose you want to find a function f(x) at some value close to x ,say x+a.
Knowing the function at x, that is f(x),

--------------equation 8
The denominator terms are : factorials: 1!, 2!,3! and so on.
The coefficients are the derivatives of f(x).

Taylor series can be treated as an approximation to f(x+a) ;We find f(x) and add
small terms to it and arrive at f(x+a).

Take the first two terms only:

This is indeed an approximation:

without taking the limits.

The third term adds a quadratic term as a further approximation:


+ f''(x).a.a/2
and so on.
For most approximations, the first three terms may be adequate:

-------------------------------equation 9

Taylor series is helpful in generating infinite series for functions.

Exponential function expansion

Take f(x) = exp(x)


Now, f'(x) =exp(x)
f''(x) = exp(x) and so on.

Using equation 9, we get:


exp(x+a) = exp(x) + exp(x).a + exp(x).a.a/2 + exp(x)a.a.a/6 + ---
Set x=0

----------equation (10)

This series is useful for many, many applications.

[This series ,expanded about x=0 ,is called MacLaurin Series.]

Suppose you substitute a= 1:


You get e = 1 + 1+1/2+1/6+1/24+1/120+---

Keep adding the terms ,you will get e=2.718281828


{here is another tidbit: the numbers get repeating .....x.abc2818 2818.... }

Suppose you want to expand :


Substitute 2x for 'a' in the above series,equation (10):
------------equation 11

Example: Find the value of exp(.2) taking only the first three terms in eqn(10):

Your calculator would give: exp(.2) = 1.2214027

At this point , you may be wondering why we should use these expressions or
approximations when we can find these values easily with a calculator or
computer.

The reason is simple: You should know how your calculator or computer
computes these expressions. In fact they use the same or similar expressions in
their software built in;this is how computer algorthms are developed in real life.
Suppose you write a gaming software.You have to compute such numbers
quickly.You may use these approximate relations.!

Logarithmic function expansion

Log fn is the inverse of exponential fn: y=exp(x) --> lny = x

But this function is a tricky one.Remember ln (1) is taken as zero. Let us expand
the function: ln(1+x) around 1:
If you know how to differentiate, it becomes easy:

y= f(x)= ln (1+x)
f'(x) = 1/(1+x) ----> f'(0) =1

f''(x) = -1/(1+x)^2 -----> f"(0)= -1/4

f"'(x) = 2/(1+x)^3 ------> f"'(0) = 1/4


So the Taylor series for this function, is an alternating series ,with + and - terms
as follows:

-------------equation(12)

It was a great exercise to find the ln(x) values and many mathematicians spent
years in constructing this table of log values for several decimal places.You can do
all that in a few minutes now ,using a computer and the above equation (11) of
infinite series.

It is enough if we calculate ln(x) for x>1 and x<2. Other values we can
compute easily with the formula: ln x^n = n lnx Suppose you want to find
ln(8) -->ln(8)= 3ln(2).

The above series converges slowly;so take many terms in the series.

Example: Find ln(1.5) with three terms of Taylor Series.

ln(1.5) = ln(1+.5) = 0.5 - .25/2 +.125/3 -.0625/4


= 0.40071
Your calculator would give: ln(1.5) = 0.405465 -----> an error of 5/400 =
1.25%

[H N
This series is attributed to Nicolaus Mercator [1620-1687] who also did navigation lines called
Mercator lines which are used in long-distance flights,using Spherical geometry.]

Equation (12) can be modified to obtain other series:


You can also write the series for ln[ (1+x)/(1-x)]= ln(1+x) - ln(1 - x)

It is easy now to expand which you will find useful for error function and
Gaussian distribution in later work.

Trigonometric Functions

Computing trig fns [sin x ,cosx,and tanx ] had been tough for ancient
mathematicians.They needed them for many astronomical [and also astrological]
calculations.Even for calculating sun-rise and sun-set times at a given latitude,
they needed trig function tables. They developed several empirical formulas and
also rapid means of computation.

[H N :
The Hindu mathematicians had their own formulae for trig functions , which some astrologers
still use in India. The early formulae for sine x function was developed by Bhaskara II
(1114-1185) in 11th century and filtered through the Arab writers and entered Europe.]

Returning to Taylor series expansion:


y=f(x)= sin x f(0) =0
f'(x) = cosx f'(0)=1
f''(x) = -sinx f"(0) =0
f"'(x) = -cos x f"'(0) = -1

Taylor series becomes:

-------------equation 13

Example: Calculate sin (30deg ) using the infinite series.


To calculate sin 30 degrees, x= pi/6 = 0.524 radian
sin (x) =sin(0.524) = 0.524 - (.524)^3/6+(.524)^5/120 =
= 0.524 - .143604/6=0.524 - 0.02393=0.50007
The answer is pretty close to sin(30 deg)=0.5
We can also find the expansion for cos(x) :

------------equation 14

The case of tan(x) is tricky, since tan 90 deg is infinity.

So we expand arc tan (x):

------------equation 15

Equation 15 is useful to find another infinite series formula for pi:

--------------equation 16

It is easy to use this series for finding the value of pi.It is called Madhava-Gregory
series.

[H N :
This series is often credited to James Gregory,[1638-1675] ---this series is not very useful
since it converges slowly and you may have to add several hundred terms.
This is also called Gregory-Leibniz series ,since Leibniz also found this.Historians tell us that
one Hindu mathematician 'Madhava of Sangamagrama' [Kerala,India] found this series
sometime in 14th century and it is now called Madhava-Leibniz Series.also!][See the historical
note at the end.]
Srinivasa Ramanujan [1887-1920], an Indian mathematical prodigy who was mostly self-taught
, was invited by Prof G H Hardy to Cambridge Univ, UK..Ramanujan colloborated with G H
Hardy for about 5 years [during World War I years] .He gave many useful results and one was
an infinte series for 'pi' which converges very fast and is used in many computer algorithms.He
also did work on primes,continued fraction and elliptic integrals[See William Dunham for a brief
biography of Ramanujan and Donald Knuth for some of Ramanujan's work.]

Infinte series and integrals

This topic takes us to slightly advanced methods.I just indicate the steps;
For many rational expressions, it is difficult to integrate.The clever method is as
follows:

Expand the rational function as an infinite series using Taylor series or geometric
series as given earlier, and then integrate term by term.[A similar method is used
for solving many differential equations by "series method".]

Example

A simple example is given here: f(x) = 4/(x+2) Find

Expand this function using geometric series and equation (4) given earlier:
f(x) = 4 / (2+x)=4/2(1+x/2)= 2 /(1+x/2)

f(x) =2[ 1-(x/2) +(x/2)^2 -(x/2)^3 +---]

= 2 (1-x/2 +x^2/4 -x^3/8---------)

Taking integrals term by term, we get:

Practice Problems:
1 Expand using Taylor series and integrate term by term from
x=0 to x=0.5 and compare with table values for cumulative normal [Gaussian]
distribution.
2 Expand arctan(x) where x= 1/sqrt(3)
3 Find the series expansion for cosh(x) and sinh(x)

----------------------------------------------------------------------------------------------------------------

PART 4

Binomial Theorem

This is ,perhaps, the last topic in most algebra text books.


[H N:
This theorem ,which has many applications ,is again credited to Isaac Newton.(1642-1727) But
historians add that one , Shih-Chieh Chu had mentioned binomial coefficients in a 13th century
Chinese treatise.Again,though Newton did invent Binomial theorem, he gave only intuitive
derivation.This was partly proved by Euler and the complete,rigorous proof was left to the
inimitable Carl Gauss much later.]

Let us see a few binomial expansions:

It is easy to build these expansions,but what about the coefficients,called


'binomial coefficients':
[1 ,2,1], [1,3,3,1] [1,4,6,4,1]

You might have studied Pascal's triangle :

There is a still easier way: take the various powers of 11 and write out the digits
for first four powers::

Here is a problem for 11^5---think about this!

Pascal triangle would give the numbers if we add the two numbers above in the
pyramid.
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1

PASCAL'S TRIANGLE

The Binomial theorem states:

------------ equation 1
The interesting thing about this theorem is that n need not be an integer;it could
be a fraction or negative too.
For instance, find the expansion for: with n=1/2

This works, but we end up with an infinite series.

Newton [ around 1669] was delighted by this.Now he can expand many functions
into infintie series by his theorem. Newton found that n can be negative too.This
leads to negative binomial series:

---------------equation 2

For a=1, we get:


---------------- equation 3

Newton used this theorem to find square roots and other roots too:

For instance: to find


Expanding by Binomial theorem ,we get:
Binomial theorem can be got by using Taylor series:
Let f(x) = (1+x)^n

We get the same result as the binomial theorem.But Brook Taylor


[1685-1731]came after Newton and published his series sometime in
1715,nearly 40 years after Newton's work.

How to get the value of 'e'

There are many uses of the Bino theorem.Here is one:


Expand f(n) = (1 + 1/n)^n by using the Bino thereom and simplify the
expression:

What happens when n is large? that is---- when n tends to infinity?

Well ,the function y tends to 'exponential number' "e"=2.718288.....


You might have been introduced to 'e' through "compound interest" formula---if
your principal amount earns interest every minute and the interest is added to
the principal every minute by your bank.------If the interest is added every
second to the principal...and so on!!

-------------------------------------------------------------------------------------------

PART 5

Polar - Cylindrical Coordinates & DNA Spiral helix & spiral stair cases
You have learnt to locate points and draw lines and curves in the x-y coordinates
,invented by Rene Descartes [ a famous mathematician and philosopher ];hence
the name Cartesian system.But there are other ways of locating points and
doing calculations in the X_Y plane.One method is to use polar coordinates. Take
a point P(x,y) and join this with the Origin O(0,0).
The line OP is called the radius line or polar line.Now form a right triangle by
drawing a perpendicular line PQ from P to the x -axis.Now OPQ forms a right
triangle and the angle ^qop is called . Let OP =r.
You can see readily:

We can write the polar coordinates for any point as follows:

For example, point P(2,3) in X-Y coordinates becomes:

If you are chasing a rabbit, you would be interested in the distance between you
and the rabbit and the angle this distance line makes with some reference line or
changes in the angle.Then use polar coordinates.
Astronomers often used the polar coordinates to denote the position of stars and
planets.If r remains the same,the distance moved by the planet when the angle
changes over say 18 degrees, will be : Arc distance S = r (theta) with the angle
in radians.

Such calculations will be tedious in X_Y [Cartesian] system.]


Let us write the equation of a circle in polar coordinates:

No surprise here.

Drawing spirals

Drawing a spiral is easy with polar coordinates....Let the value of r increase with
increasing theta.You will get a spiral line:
Now let this function be a linear relation: r = a + b (theta)
Take a specifc example: r= 2 +0.1 (theta)

As the line OP sweeps a circle--counter-clockwise, theta increases from zero to


360 degrees.This means the radial length r increases from, say ,2 cm to 2+36=
38 cms....So you get a spiral...Well, you can have another revolution,from 360 to
720 degrees and so on.This simple spiral is called
Archimedes Spiral. Archimedes made a spiral-like screw to lift water from a canal
at a lower level.He definitely needed an equation for that.!

We can also make a widely increasing spiral:


The length 'r' keeps increasing rapidly,exponentially, as we sweep a rotation.

This is called a Logarithmic spiral. See the figure below.

Log-Spiral --This was engraved in the tombstone of Jakob Bernoulli.

For an example of Log-spiral in nature,see the Fractal-Food in part 9 later


{recurrence relation}

If you are designing a spiral stair case in your building [like the Guggenheim
Museum of Art in New York] you will use these spiral equations.
Can you model a spiral galaxy in the sky.!

What about other functions for a polar equation?.We can generate closed curves
with a sine function:

If a=b, we get an interesting 'heart-shaped' cardioid.

A polar equation,relating r to theta can describe an elliptical orbit of a planet or


asteroid.
A Halley's comet may have this polar equation:

where d is a constant [some distance] and e is called the eccentricity of the


ellipse.
When e =1, you get a circle.For ellipse,e <1.
For this Halley's comet, e=0.97 and d = 1.102;
We get :

Cylindrical Coordinates

Having learnt polar coordinates, the next step is to move to three dimensions
and the cylindrical coordinate system.Take the cartesian X-Y-Z system; retain the
Z axis as before---say the vertical axis as the Z axis.The horizontal plane of X-Y
axes,convert to polar coordinates as r,theta.
So any point in 3-D space (x1,y1,z1) can be expressed as
Take the previous example: x=2 y= 3 and add z=4.
In cylindrical coordinate system, P[r,theta,z] =

Spiral Helix--DNA structure You want to represent the peptide groups stringed
in a spiral [double helix].Take the structure of the molecule as a cylinder,find the
pitch of the spiral,use cylindrical coordinate to represent the position of any
group.You can also write the equation for horizontal rungs of the spiral joining the
peptide groups.{see the figure above}.One author contends that the diameter of
this DNA is about 20 angstrom unit ,while the axial length is 34 AU,the ratio of
20/34 is close to Golden ratio--should be 21/34---we have not reached perfection
yet.![ Angstrom = 10^(-10)meter]

Parametric Equations
We have been writing y = f(x) for our representation of x and y
relationship.Suppose we find a common parameter ,say 't' ,through which we can
represent x and y.Then we get parametric equations.For instance, x= g(t) and
y=h(t) are the two other functions.

Let us take a simple example.We want to represent a rotating wheel


mathematically.The wheel has a radius of r.It is logical to use time as the
common parameter,"t".Let P be any point P (x,y) on the rim of the wheel.We can
write:

Note that ---- the equation of a circle. is the


angular velocity: where f is the frequency [no of revolutions per unit
time.]

Practice problems

1 Write the parametric equations for volume and surface area of a right cylinder
keeping height as constant. Write also the equation for the ratio of volume to
surface area.

2 A cycloid is a 2D curve formed by taking a point on the rim of a coin as it rolls


on its edge on a level surface.The parametric equations are:
x= a(t - sin t)
y= a(1-cos t)
Draw a acycloid for a = 3cm and t =5

---------------------------------------------------------------------------------------------------
PART 6

Strange numbers-united Euler Identity


You may find both pi ( and e as strange numbers.Both are irrational:
pi=3.14159..... e=2.7218218....
Pi arises from geometry, as the ratio of cicumference of a circle to its
diameter.When mathematicians and astronomers learnt that our earth is nearly
spherical ,they went ahead to find its circumference and its radius.You got the
value of pi.

The exponential [base of the natural logarithm] came from the sequences and
limits and might have been inspired from compound -interest formula.
Is there is any connection between the two? Are there expressions which use
both?

We shall have to make a slight diversion into complex numbers.Much of these


realtions you must have studied already.

You know that :

A complex number is composed of two terms, a real part and an imaginary part:
Example: x = 2 + 3i
The real part is 2 and the imaginary part is 3.
It is like the thief and his shadow under the street lamp!;both have meaning and
can reveal something about the thief.
How do we do algebraic operations with this complex number?
You have learnt the following:
Take the 'complex conjugate' of x:

Then multiply the two and expand:

We take the magnitude of x as the square root of this number:

What is the meaning of the ratio of 3/2?:


In a graph paper, locate the point (2,3).Join with the origin.[This plane of x-y axis
will be called "complex plane".What is the the tan of the angle of the line drawn
in the graph.?

Euler gave a simple ,but profound relation which connects this complex number
to 'e':

What is the meaning of ?


Euler expanded this:
----------------------(1)

This is the well-known Euler Formula or Identity.


[ Bear with me---We shall derive this a little later in this part.]

Now
--------------------(2)
[As a short form, you can write thus:

For the example: x=2+3i


The real part=

The imaginary part=

Note that the Euler equation combines sine and cosine in a single expression.
Let |x| = r =1
Now we return to our main adventure:
In the Euler equation (1), put

We get

This is a remarkable relation: we have united 'e' and pi with the help of imaginary
quantity 'i.'
Note that e is a number (=2.72.....) and pi is also a number (3.14....).They are
united here by 'i'..

Since sin (pi) =0, cos(pi) = -1, we have :

The Euler equation has many other uses.


Suppose you want to multiply two complex numbers:
z1=2 + 2i
z2= 3+4i
It becomes easy after you convert them with exponentials [much as you do for
large numbers in algebra.]
z1= 2 +2 i =
z2= 3 +4i =

Now

In the same way, you can divide complex numbers easily:

We alredy know how to expand exp(x).


Let us expand into an infinte series, using Part-3 equation (10)
given earlier:

You can separate the real and imaginary parts in the expansion:

What do you find in the right side?:


Comparing with the trig function expansions given earlier in Part 3:

Thus, we have got the result --"Euler Formula" using exponential function
expansion.!

One more extension of this leads to another famous formula used in precalc
books:

as for any exponent!

This important relation is called De Moivre's thereom and has many


applications.It is easy to see from Euler's formula.!
Example: Using De Moivre theorem,find z^3 where z= 3[cos 30 +isin30]=3cis30

A Math Tidbit
We have seen the expansion of exp(x) and the Euler's formula.Here is
another interesting number:
What is ?
You can expand this with the formula:

We get
This is called 'Gelfond's constant after Alexsand Gelfond.

[HN:
De Moivre was a contemporary of the English and scottish mathematicians of Newton's
time.There is an interesting anedote.He found that he slept 15 minutes longer at certain
age.Then he made a sum with arithmetic progression of 15 mins and predicted the day of his
death,which was true!.]

PART 7

Interpolating Polynomials

Certain polynomials are used for 'interpolating' between data points ,usually
found from experiments.
For instance, you measure the solubility of a chemical in water at three
temperatures.You write the function: y=f(x) where y is the solubility and x is the
temperature.
We wish to find solubility at some temperature between the measured ones.We
need to know f(x) ,but we can approximate f(x) by simple polynomials.

[Again this topic is not discussed in many math text books,except as additional
problems.It is of major interest to all science/engineering students!]

Linear Interpolation
The simplest interpolation is linear interpolation where we join neighbouring
points by a straight line or linear variation of y with x.

Let three data points be P(xo,y0) , Q(x1,y1) and R(x2,y2).


Then linear interpolation between P and Q is this:
y= mx+c
y1=mx1+c
Subtract: y - y1= m(x-x1) [slope-point formula]
or y= y1+ m(x-x1)
= y1 + [(y1-yo)/(x1 - xo)] (x-x1)
---------------------equation (1)
A similar one you can write for the two points Q and R.

Example: Prof Cavendish of Smart University measured the solubility of his


favourite sugar-substitute sweetener in water at three temperatures, as follows:

Temperature: {x} [deg C] 25 35 45


Solubility {y}[mg/100cc of water] 5.5 6.3 7.5

Linear interpolation: For temp: [25,35] : y = 6.3 + [(6.3-5.5)/10 ] (x-35)


=6.3 + 0.08 (x-35)
y= 0.08 x + 6.3-2.8=0.08x +3.5
Using this , solubility at 28 deg C: y= 0.08x28 + 3.5 = 5.74 mg/100cc
For temperature in the interval[35 ,45] y = 6.3 +0.12 (x-35))

Quadratic or parabolic interpolation:

We take the three data points and find a parabola which passes through these
points ---and then employ the quadratic equation of the parabola for
interpolation.
First we derive the formula for the quadratic equation.
Note that we have taken the simpler case,when x values are equally spaced:
x2-x1=x1-xo=10 in this case.
Let the spacing between x values be h.
Then write : y = ax^2 + bx + c

Our aim is to find the values of the coeffcients,a,b and c from the given three
data points;
To reduce our work, we shift the x values such that xo=-h , x1=0 & x2=h
{This trick of shifting the x values we often do in algebra/calculus to reduce our
work}

The three points are: (-h,yo), (0,y1) and (h,y2)

Now we can solve for a,b and c;


c= y1

Add eqn(1) and eqn(3):

Subtract eqn(3) from eqn(1):

Therefore the interpolating quadratic polynomial is this:

---------------- equation (2)

Let us write this polynomial for the solubility data of Prof.Cavendish and find the
solubility at 28deg:
y = [(5.5-12.6+7.5)/200] x^2 + [(7.5 -5.5)/20] x + 6.3
= 0.002 x^2 + 0.1 x + 6.3

Now , 28deg C correspond to x=-7;


y(28) = 0.002(49) + 0.1(-7) + 6.3
y = 0.098 - 0.7 + 6.3 = 5.698 mg/100cc

Prof Cavendish should be happy with this increased precision in our


interpolation,compared to linear interpolation which gave y(28) =5.74
mg/100cc.Here we have used all the three data points for interpolation.

One can develop interpolating polynomial for four data points using a cubic
polynomial.If we have n+1 data points, we use a polynomial of nth degree.
We can also have polynomials for data not equally spaced in x values.These are
treated in books on Numerical methods.

Average values of functions

I mention this topic in passing because this has been treated in another tutorial
on integrals.
Prof Cavendish is interested in finding the average solubility in the temp range 25
to 45 deg C.
This is really easy using the interpolating polynomial:Integrate the polynomial
for the temperature range and divide by 20:

between the limits x=10 and x=-10

The average solubility of Prof Cavendish's sweetener is 6.47 mg /100 cc of water


in the temperature range of 25 to 45 deg C.He can use this data to dissolve the
required amount of sweetener in his brew!.
Prof Cavendish could have used the simple average of three data values:average
solubility = 19.3/3=6.43,slightly less than the value of integration method.

[Note: The integration between the limits 25 to 45 degrees ,gives the area under
this curve,between x=25 and x=45.Dividing by the interval 20 gives the average
height of a rectangle of same area;hence we get the average value of y.]
This method of finding average of a function is widely used in science and
engineering.!

Numerical Differentiation
Prof Cavendish wants to know the rate of change of solubility of his sweetener
with temperature, from his data points.Can we find this for him?
Since we already have the interpolating polynomial from the three data points,we
can differentiate the polynomial to get the derivative:
Solubility y = 0.002x^2 + 0.1x + 6.3 where x is the
temperature.

dy/dx = 0.004x +0.1


This expression is ,of course,an approximate relation based on three values of y
and is applicable only in the temperature range of 25 to 45 degrees Centigrade.
-------------------------------------------------------------------------------------------

A few practice problems

1 Find the square root of 68 using Heron's iterative formula.


2 Find the cube-root of 729 using the iterative formula given .
3 Solve the equation: exp(0.1x)-x =0 using the method of successive
approximation.Start with x =2.
4 Prove for Fibo sequence: F(n+1).F(n-1)-F(n)F(n) = (-1)^n

5 Find the infinite series expansion for f(x) = 3/ (2x- 1) using the geometric
series. [around x=0]
6 Find the approximate value of sin (18 degrees) using Taylor series.
7 Find the approximate value of ln(1.3) using Taylor series to three decimal
places.

8 Expand using the Taylor series expansion for exp(x) and then
integrate term by term to find the error integral:

which is important for many applications in probability

9 Find the power series for using the Taylor series expansion given.
10 Find the power series expansion for
11 Find the binomial series for (x+a)^8 using Pascal triangle.

12 The data on lead emissions in the USA for the years 1992,94 and 96 are as
follows:

year 1992 1994 1996


Lead emission[million tons] yo=3.80 y1=4.04 y2= 3.87
The year can be indexed as: x=-2 for 1992, x=0 for 1994 and x=2 for 1996.

Find the interpolating 'quadratic' polynomial for the data and find the interpolated
value of y for the year 1995.Find also the average value of lead emissions in the
years 1992-96.
[Ans: y= 4.04 + 0.0175x - 0.051 x^2 For 1995, y= 4.007]
13 Evaluate the stopping distance for a car when it moves at a speed x (miles per
hour) and brake is applied: d (feet) = 0.14x.x -4.4x + 58.0 for x=60 mph using
Horner's rule.
Ans:134.8 feet

-------------------------------------------------------------------------------------

PART 7

Solving Algebraic equations

I shall give a method to solve an algebraic equation with an iterative procedure.

The Bisection Method .[due to Bolzano]

Suppose you want to solve y= f(x) =0. Assume that the function f(x) is
continuous.Then choose two numbers x1 and x2 such that f(x1) is negative (<0)
and f(x2) is positive (>0).Since the function is continuous,it passes through the x
axis [when y=f(x)=0] and the root x* must lie between x1 and x2.Now take the
root x* = (x1+x2)/2

Find f(x*); if f(x*) is negative,the root must be in the interval [x*,x2] If f(x*) is
positive,the root must be in the interval [x1,x*]
Find the new root and proceed as before.

Let us take a simple example.

Example: Solve" x.exp(x) -2 =0


Ist iteration:
Let us try the first interval x:[0.5,1]
f(0.5)= 0.5exp(.5)-2 = -1.176 f(1)= 2.72 - 2=0.72
Since they are of opposite signs,we take x*= (0.5+1)/2= 0.75

2nd iteration:
f(.75)=0.75exp(.75) - 2 = 2.117x0.75-2=-0.4122 <0
The root must lie in the interval: x: [0.75,1]
Take x* = (0.75+1)/2=0.875

3rd iteration:
f(0.875)= 0.875.exp(.875)-2 =2.099-2=0.099 >0
The root must lie in the interval:[0.75,0.875]
Take x*=0.8125 f(0.8125)= 0.8125exp(0.8125)-2=-0.169

The root must lie in the interval: [0.8125,0.875]


Take x* = 0.84375

Note that ,with each iteration,we are halving the interval.If the original interval
was 1,then after 8 iterations,we will get an interval of (1/2)^8=0.125 or the
root obtained will be < |0.125| of the actual root.
You may feel that this method is rather slow and involves lot of function-
evaluation;this is a kind of trial and error method.But it is easy to do with
computers and always works.Hence it is very popular with computer software
people.

Practice Problem
Try this problem:
Solve
and find the root as the golden ratio by the bisection method.Start with
x:[1.5,1.7]

The Secant or Chord method


This method is similar to the Bisection method but more efficient.
To solve y=f(x)=0,to find the root x*, find two numbers x1 and x2,close to the
approximate root.Then join the two points f(x1) and f(x2) by a straight line and
extend to the x axis.We are drawing a chord , a straight line with the slope:
m= [f(x2)-f(x1)]/(x2-x1)
y= mx+c
f(x1)=mx1+c

Subtract: y-f(x1)=m(x-x1) [point-slope form]


Now to find the root,set y=0
0= f(x1) + m(x-x1)
mx= m(x1)-f(x1)

x* = x1-f(x1)/m----------------------equation (1)

{Note that in this method,f(x1) and f(x2) need not be of opposite signs ,like in
Bisection method.}

Secant method--see the chord line connecting xn and x(n-1)

Example: Solve xexp(x)-2=0


As before ,take x1=0.5 x2=1
f(x1)= 0.5exp(.5)-2= -1.176 f(x2)=0.72
Using equation (1): m= (0.72 +1.176)/0.5= 1.896/0.5=3.792

x* = 0.5 - (-1.176)/3.792=0.8101
f(x*)= 0.81exp(.81)-2=0.81(2.248)-2=-0.179

First iteration: x1=0.81 x2= 1


m= ( 0.72 +0.179)/0.19 = 1.995
x*= 0.81+0.179/1.995=0.8997
f(x*)=0.8997exp(.8997)-2=.2122

Second iteration: x1=0.81 x2=0.8997


m= (0.2122+0.179)/(0.0897)= 4.361
x*=0.81+0.179/4.361=0.85104

Compare this with bisection method....

One warning though: Bisection method will always work,but secant method fails
in those cases when the slope m is close to zero,because m is in the denominator
and instead of getting close to root ,we may wander away.!
Once you know where the root is by the bisection method,then you can apply the
secant method.
These methods are interesting because both use very simple mathematics.
They are widely used in computer programming for solving equations.

Practice Problems
1 Leonardo of Pisa [Fibonacci again] solved this equation in the year 1225 by a
method close to the secant method.
You can now try with secant method:

The root is near 1.35. Leonardo got the result: x= 1.368 808 107.

2 Math historians tell us that Isaac Newton solved the following equation using
Calculus [his Newton-Raphson method] in 1669. You can try to solve using the
secant method.Take the initial interval as x1=1.8 and x2=2.2.

3 Solve this problem using the secant method: with intial values:
x=0.6 and x=0.8
{Ans [0.865]

----------------------------------------------------------------------------------------------------------------

PART 8
Finding the area under a curve

You are asked to find the area under a parabola : y=-x.x +9 between x = -3
and x =+3.
This becomes easy once you learn the topic of "integration" in Calculus.But now
we shall explore a simple numerical procedure,used later in Calculus of course.I
am discussing here the midpoint method:
I cut up this area into small vertical strips, between close values of x.Then take
the middle value of the function y in each strip.I assume this area is close to the
area of a rectangular strip.
Area of the strip a(1) = width. height = width .(y at the midpoint of x)
For convenience ,I divide the x interval, [-3,3] into equal width of 1 units:
[-3,-2], [-2,-1],[-1,0],[01],[1.2][2,3] along the x axis.
I have six widths and so six rectangular strips.What are the y values?:
Let us construct a small table for these calculations:
X width midvalue of x y value area of strip
[-3,-2] -2.5 y(-2.5)=- 6.25 +9 a0= 1(2.75) = 2.75
[-2,-1] -1.5 y(-1.5)= -2.25+9 a1 = 1(6.75) = 6.75
[-1,0] -0.5 y(-0.5) = -.5+9 a2= 1(4.5)= 8.5
[0,1] 0.5 y(0.5) = -0.5 +9 a3= 1(4.5) = 8.5
[1,2] 1.5 y(1.5) = -2.25+9 a4 = 1(6.75) =6.75
[2,3] 2.5 y(2.5) = -6.25 + 9 a5 = 1(2.75)=2.75
Total area = a0+a1 +a2 +a3 + a4 +a5= 35.5 units.

Interestingly, Archimedes gave a formula for area under parabolas: Area=


(2/3)width x apex height
= (2/3)(6)(9)=36 units.
The formula given by Archimedes gives the exact value! What we did by adding
areas of strips is approximate.How do imporve our accuracy? Well,cut up into 12
strips of 0.5 width or 24 strips of 0.25 width and add the areas.That is what we
do with numerical integration;the tedious caluculation is done swiftly with a
computer program! Can you write one program and run it? Try that!!

One mathematician Thomas Simpson [1710 - 1761] gave a better formula to


find area under the curves;It is called the Simpson Rule
Take only three points: [-3,0] and [0,3]
Find the y values at the three points: y(-3) =-( -3.-3) + 9 = 0
y(0) = 0+9 = 9
y(3) = 0
Simpson gave the formula or Rule as follows:
Area = width {[ y(-3) + 4 y(0) + y(3) ]/6} = 6 [ 0 +4.9 +0]/6 = 36
units..the same value given by Archimedes formula.Did Archimedes use the same
formula as Simpson...I do not know!
[Simpson method uses a parabolic or quadratic equation for the y =f(x) and finds
the integration.Since we have taken a parabola itself, Simpson's formula is
exact.The term in the { } bracket is the weighted average of y values.But I am
still intrigued how Archimedes arrived at the 2/3(base)(height) formula by
empirical methods.! You will learn more of such formulae in calculus /numerical
methods course.]

Practice Problem:
1 Find the area under the curve: y=1/(1+x.x) for x=0 to x =1 by taking
midpoint values of width 0.25, using the midpoint method.
[Hint: area = 0.25 [ y(.125)+ y(.375) + y(.625)+y(.875)] ]
2 Do the same problem using the Simpson's rule with three points along the x
axis 1,0.2,05 and another 0.5,0.75,1.0.
What do you find? The area under this curve should be equal to .How close is
your value? This provides yet another method for finding 'pi'.
----------------------------------------------------------------------------------------------------------------
PART 9

Recurrence Relations and Difference Equations--Chaos and Fractals

Suppose you are given an Arithmetic series: 2,4,6,8,10......


You could write the nth term :
starting with
That is, the nth term is previous term ,n-1 th term plus 2.
This way of writing using the previous terms is called a recurrence relation.

Take the case of compound- interest formula.Suppose your bank is adding the
interest for the previous year to the previous year's principal amount and treat
that amount as the new principal for this year.We can write a recurrence
relation:

where the principal for (t+1) year is related to the principal of 't' th year and r is
the annual rate of interest.
We have already seen one important recurrence relation: the Fibonacci
sequence:

starting with
We are adding the two previous terms , and this is called a second order relation.

In general, a difference equation [ a poor cousin of differential equations you will


study in a Calculus course] can be wriiten as follows:
Second order Difference Equation:

where A and B are constants.


How to solve this equation?
Try the solution:

Substitute:

Divide by :

Now solve the quadratic equation:


and find r1 and r2 the roots.[The roots may be real or complex.]The solution is
then :
where c and d are constants.
You recall that we did just that for Fibo series: with A =1 and
B=1
to find x ,the Golden ratio.It all ties up neatly now!

Now let us see several applications of difference equations:

1 You can use them for interest related calculations and annuities as given
earlier;

2 Paul Samuelson, a great economist at MIT and Nobel Laureate for economics
[year:1970] developed an equation relating consumer spending and investments
with a relation:

where n refers to some reference year.


Read about this in economics books ,including Samuelson's well-known text...You
may attempt to get a Nobel prize with such mathematical models.!

3 Difference relations are widely used in population models.You know that Fibo
series is also a population model for rabbits.!
When you have a biological system with hosts and parasites, you can write
coupled difference equations :
Host population:
Parasite population:

You can see how the parasite population increases as the host population
increases,and the host population decreases as the parasites increase.! This is
called Nicholson-Bailey model.
Such 'prey-predator models' are widely used in biology and wild life conservation
projects.

Practice problem:
1 Develope the sequence : with
x1= 46 x2= 1.8 x 46 + 10 = 92.8 x3= 1.8x92.8+10 .......
[You can use nested multiplication you learnt [Horner's rule] for such
problems.]

2 When Sarah was born,her grandma, Florence, gave a gift of


$5000.Amanda,Sarah's mother created a college fund which would yield 10%
every year.Amanda decided to add $1000 every year from first birthday of
Sarah.How much Sarah will have on her 19th birth day in the college fund?
The difference equation is: starting with
Solve for n+1 = 19.

Logistic map & Chaos theory

An interesting recurrence relation is this:

For a given value of r, one can find the x values starting with a given value for
x.This leads to logistic growth map; "r" is the growth rate; the curve eventually
leads to a stable value for r <1.

[The logistic function or equation: y =f(x)= rx(1-x) reaches the maximium at


x=0.5;it is a parabola.If y=4x(1-x) -->at the maximum,x=0.5,y=1]

For some values of r ,say r=1,the relation will lead to a 'fixed point' . After that
,further numbers in the series will be the same:
Let xo= 0.2, r=2
xo=0.2 x1==2*0.2*0.8=0.32 x2= 2*0.32*0.68=0.435
x3=2*0.435*0.565=0.4915
x4=2*0.49*0.51=0.5014
x5= 2*0.5014*0.4986=0.4999
This series,sometimes called time series,' reaches the fixed point of 0.50.It will
not change further.
But if you choose r= 3.9,the story is different.

What happens when r is 3?The values of x will oscillate between some values..If r
exceeds the magic number 3.57,chaos starts.The values of x keep changing
almost crazy---like a random stuff,but not exactly random. It is chaos!

Snow flakes and Koch Curve

Snowflakes,Koch curve and Fractals

It is easy to construct a snow flake on a paper.Draw an equilateral triangle of


side,say,6 cm length.Divide the sides into three parts.In the central 2cm
length,construct an equilateral triangle.Erase the original central part.Now the
length of each side is increased by a factor of 4/3.Continue doing this in all the
three sides..divide into three parts each side,construct an equilateral triangle in
the middle,erase the central part...Keep iterating this.By this the triangular area
will keep increasing.
With each iteration, the number of sides is increasing by a factor (4).With each
iteration,the length of the side of a triangle decreases by 1/3.Therefore it is easy
to work out the increase in the area of the snow-flake triangles by a recurrence
relation:
Area after nth iteration:

With each iteration,the snow flake grows but at a lesser rate.As n appraoches
infinity,the area An tends to 8/5 of the original area of the triangle=8/5(initial
area)=1.6Ao ----- a neat result!
You can create beautiful pictures of Koch curves , as these are called ,due to Koch
around 1904.

It is easy to see that for Koch curve, the area tends to a constant finite value
with each iteration while the perimeter P increase to infinity: P = number of
sides,N x length of each line l.
Now N increase in the ratio of 4/3 and so explodes as (4/3)^n where n is the
number of iterations.

Study also constructing 'Sierpinski triangle' and carpet,suing a triangular grid.You


can also construct pentagrams fractals.
Pentagram -Fractal

There is another curve called 'Anti-Koch curve' where the reverse is true.The
perimeter reaches a constant value while the area keeps increasing and tending
to infinity.How to draw this curve? Instead of drawing an equilateral triangle,draw
a trough,triangle upside down at each side of the original triangle and iterate.

Fractals have two interesting properties: self-similarity and fractional


dimension.Benoit Mendelbrot, a mathematician[ hailing from Poland]] at IBM,
studied self-similarity and coined the word fractal from latin: fractum or part.He
developed the Fractal geometry, to study rough edges and jagged coastlines.
Fractal dimension: For Koch curve, the fractal dimension is (log4/log3)=0.6020
/0.4771=1.2617
We have Fibonacci Fractals too.

Practice Problems
1 Construct a Koch curve using an equilateral triangle of 6 cms,on paper with
pencil.Try to approximate the area after 4 iterations by enclosing another bigger
triangle.[You can use a triangular gird, download form www.math.rice.edu]
2 Construct a square fractal using a procedure similar to Koch curve...
3 Find an equation for the increase in perimeter of Koch curve with each
iteration.Does this series converge.? Ans:p(n)=3(4/3)^n.
4 What would be the equivalent figure for 3-dimensional Koch 'curve' or prism
using a triangular prism.?
5 Define fractal dimension.

Fractal Food: Study the shape of the vegetable 'Romansco Broccoli" and relate to
problem 4.This vegetable,a form of cauliflower, is called a Fractal food;the shape
of each cone follows the logarithmic spiral which we have learned earlier.
[H N
What I am writing here is recent history in math ,not 17th or 18th century math!Poincare did
some early work too--but this is 20th century math.
Edward Lorenz ,a meterology professor at MIT, found that the logistic equation can lead to
chaos.He found that small changes in the inital value led to tremendous randomness in the
values of x found..He was trying to predict weather;but he founded the chaos theory.H e spoke
of "butterfly effect"---how a small change in initial value can result in chaos.Then comes the
work of May and Feigenbaum and later fractals by Julia sets and Mendelbrot sets ,with beautiful
computer graphic pictures you have seen,like the Maine coast in USA...The Koch curve given
here is a simple way.
Mandelbrot coined the word: "fractals".
Most early workers toyed by putting r = 4 in Logistic map, including the great mathematician
and early computer wiz, John Von Neumann.Try reading about this relation when r =4 or
higher..In 1970,May and Feigenbaum discovered that this logistic map leads to Chaos when r is
close to 4.You can demonstrate that by starting with x= 0.3,r=4 and repeat the recurrence
relation given earlier.Write a computer program!
The relation is well-behaved if r is less than 1;that is what the population experts like
Verhulst used.

Read the following two books for starter:


James Glieck---Chaos-making a new science---Penguin books{more historical,vey little math}
Edward Lorenz---Essence of chaos theory--Washington Univ press.{right balance of math and
story}]

Refer to this website: www.math.rice.edu ----Cynthia Lanius web pages Click here
-->
Website on Koch curves,fractals ]
----------------------------------------------------------------------------------------------------------------
PART 10

Mathematical models -- A few samples

We can study many dynamic systems in real life using linear relations[straight
lines] and quadratic equations.These equations resemble recurrence relations,but
a bit more complicated.Consider this scenario:
Farmers have large yields of corn this year.After six month,when they are
harvested and brought to the market,the supply is huge and the price falls.
Therefore, the equation of price versus quantity is a straight line with negative
slope:
price = P = a - b Q
But this involves the time factor.Let t be counted in six-month period.

The price depends on quantity grown in the previous time period.This we call a
'delay or lag equation".
This equation is the demand equation of economists.
Now, traders usually increase the price when the demand quantity goes up.This is
a sraight line with positive slope: P=c +dQ
Again there is a time shift : This is called the supply equation.
The two lines will intersect at the equilibrium value: [Q*,P*]

But things are not that simple.We do not always have the equilibrium value
operating at a given time..You start with some value of Q,Q1 away from Q*.
Then you get a value of P1 .Then for that P1,certain quantity Q2 is made
available in the market.But for this quantity Q2,there is a price p2 from the
demand equation...These changes keep happening over time intervals,till you
reach the equilibrium value...This leads to a powerful model ,called Cobweb
model.Though mathematically simple,the real-world implications are huge.

Note the the equilibium may be reached after some time period.This point is the
fixed point discussed earlier.Next year's yield may be high or low.Another cycle
starts.
Population Models are the most widely used models, in several subjects, not just
demography.Most of them are modified forms of exponential growth-- modified in
some way.

Recall the exponential function:

-----equation(1)
where P(0) is the population at some time t=0 as reference year.'k' is the growth
rate.The doubling time, the time for the population to double itself, is given by:

Taking log both sides:

For instance, if k=2%= 0.02, then doubling time

If the growth rate is 2%, the population doubles itself in about 35 years or just
one generation!.This did happen for human population in the early 20th century
and may happen in third world countries and African states.!
A thumb rule to remember is this: if the growth rate is k %,the doubling time is
nearly 70/k.

Biologists study 'drososphila' or fruit fly for genetic studies---which doubles its
population in a few days. Bacteria double their population in 20 mins to one
hour.!

Equation (1)implies that the population keeps growing at the same rate for
ever.It would lead to infinite population.But in real world,the population--human
or fish or tiger or cell phones,gets limited.

Thomas Malthus [1776-1834],an english economist and demographer,told that


human population would get limited due to famine,pestilence [diseases like
plague which used to wipe out nearly 50% of population of a city in medieval
times] and wars.He was one of the early demographers.His statement ran as
follows: population increases in geometric ratio or series,while food production
grows in arithmetic ratios.He inspired Charles Darwin.Mankind ,due to science and
technology, has almost eliminated large scale famine and terrible diseases.{A
grave thought-->What about nuclear holocaust in future?}

The resource limitation, for instance, food for a fish population in a lake,could
restrict the population growth.The population grows exponentially but tends to
reach
a maximum value.

We use the "modified exponential form":

----------equation (2)
When t =0, P(t) =0.The population grows and, as t tends to infinity, exp(-kt)
goes to zero, P(t)= N,the maximum value or stable value for the
population.When P(t) is close to N, we note that the birth rate and death rate of
the species are the same! N is the population that can be 'sustained' by the lake
for fish population.! This model may not hold for all population scenarios.

Another well-known model is that the growth rate increases first and then starts
decreasing:
For this we use the Logistic equation we have seen before in Chaos theory.This is
called Verhulst model.
y= r x (1-x) = rx - rx.x
Here the maximum growth rate is reached when x= 1/2, that is half of the max
population predicted.. 'r' is called the growth rate; y varies from 0 to 1.
You can also write logistic equation as a quadratic equation:
Growth rate = ----------equation (3)
The first term gives the exponential growth, but the second term ,which is
negative, reduces the growth rate and is proportional to the square of the
population.By adjusting the value of b,we can get realisitic growth rate for any
population .
This is the process of modeling.We pick some equations and then adjust the
parameters and constants to fit the real-world data or experimental data.

Consider the human population;The growth rate [birth rate - death rate], 'a, in
the above equation was nearly 2% per year, with a doubling time of about 35
years.

In most countries, the growth rate has reduced to 1.1% or less.For USA, it is
around 1%.Some countries may have a negative growth too...the population
keeps decreasing.!
Demographers take the average growth rate for World human population as
1.4%.[base on a UN report.]
Then the doubling time =0.69/0.014= 70/1.4= 50, nearly 50 years.
If the trends don't change, we will have a human population of 12.4 billion [from
the present 6.2 billion in 50 years],that is by 2059.
A pictorial representation of growth rates for various countries based on a UN
report is given here..

Possibly, the growth rate will decrease in all countries to 1.1% or less and the
human population may stabilise around 8 billion.I do not expect that large scale
famine or disesases or wars will wipe out large population,the ""Malthusian devils"
will not operate in the next 50 years.!Nuclear holocaust is another problem.

Many of these models are often used by ecologist/environmentalists/wild-life


conservationists to study the population of animals/insects and so on.Note that a
decrease in bee population can fail certain crops totally and reduce crop
production.Again locusts in large numbers can destroy crops too.There is a
delicate balance between species which can be easily altered by pesticides and
other chemicals.Mathematical modelers can help a great deal in these studies.

Stopping Distance for cars and trucks.


When you apply brakes to a moving vehicle,the vehicle stops after some distance
,called stopping distance.This distance has two components: distance moved
during your reaction to apply the brake ,called reaction distance R and the actual
braking distance d which depends on the friction between the tires and road
surface and any gradient or incline the road may have.

A simple model would be a linear one--straight line relationship between stopping


distance and speed.
Stopping distance S= R + d = vt + kv
where v is the speed in miles per hour and t is the reaction time ,usually given in
seconds and k a constant.
Experiments show that the linear equation is not that good and one uses a
quadratic equation relating braking distance with a v.v term.

This stopping distance is of great use for three sets of people: vehicle designers,
the traffic cops who investigate the vehicle speed and road conditions during
accidents ,and highway engineers.[Traffic cops measure the length of scratch
marks on the road to estimate the stopping distance and the speed of the
vehicle.]

In one student exercise,taking average values of reaction time t and braking


distance at several speeds,the following equation was arrived at, with the data:

speed: 32 64 96 (kmph)
reaction time: 6 12 18 (secs)
braking distance: 6 18 55 (metres)
The equation is: S = 0.006 v.v +0.125 v + 2.38 metres

[You can get the coefficients by using the interpolation formula we got earlier:
See Part 7.]

What if we neglect the first term: S= 0.125 v +2.38 ? What is the % error for a
speed of 100 kmph.? Find this out!

Vehicle designers use more complex models. One such equation is:
S = 1.47 vt - v.v/ ( 30 (f+-G))
where v is the speed in mph, time in seconds, f is the coefficient of friction
between tires and the road and G is the gradient.Such models are developed
based on extensive testing by auto companies.

In some cases, airplane pilots overshoot the runway and stop the aircraft in a
ground beyond th e runway.This may happen during poor visibility conditons and
also when the landing speed is high or the runway is covered with snow or wet
with rain.The aircraft engineers again model the stopping distance by a quadratic
equation..The pilots add 15% more distance for a wet runway.You can read up on
that.

Epidemic Model -- S-I -R model

We can develop a simplified model for spread and control of epidemics, like the
recent SARS epidemic in 2003. This model is due to Kermack and Mac Kendrick
(1927).

The population is divided into three groups:


S,the susceptible,who may get the disease by contact with infectives and who
have no immunity;
I,the infectives who have contracted the disease and may transmit to
susceptibles;
R,the recovered or removed, those who have succumbed and died, or who have
been isolated [quarantined] or those who have developed immunity.The
transition is shown as follows:
S ---> I ----> R

Let us assume that the transition from Susceptible to Infective ,S--> I depends
on the contact of S with I and is proportional to the product SI.[This term is often
called 'interaction term' in these models.]
Take a time interval of one day. "a" and "b" are constants. Changes from one
day to the next is written down:
Change in S, the number of susceptible = ----------equation 1
Change in I, the number of infectives = equation
2

Change in R, the recovered or removed = equation


3
We increment the previous values of S,I and R for the next day.

equation 4

Note that the number R,depends on the number infected and b is a constant.The
number of infectives I gets increased by those getting infected from S, and
reduced by bI,the number removed.
The total change is zero:add the three equations,1,2 &3.

How to solve these equations?...[These are difference equations, but you can use
differential equations approach also, taught in Calculus courses.]

Start with some initial values of S,I and R;


S,the overall population without immunity for the disease,say 1 million
people.S=1 .
Let I ,the infective, be 100 or 10^-4 million.R=0;
Take a =0.001 and b= 0.1.[b=0.1 means that 1/10 of infectives are removed
--isolated or dead].
You have to get the solution with a set of values [S,I,R] for each day:
The calculations are easy to perform in a tableau...See the table below.

This is a simple numerical method of solving such equations.It is the same as


Euler method for solving differentialequations.
{dx/dt = f(x) is approximated to: and here ...
}

We can understand the trend of the epidemic--how it progresses.

Find the ratio of I/S: We are interested in the ratio of I to S,which should not
increase! This ratio will increase with the onset of the epidemic,reach a maximum
and then start decreasing!
Dividing the first two equations, [1/2] we get
an equation that is independent of time.This shows that the change in infectives
is proportional to the ratio of b/a, the two constants....

One powerful method is to decrease b or isolate or quarantine infectives.Then the


product IS will decrease.
[If R=as/b, called basic number,then if R < 1,epidemic does not occur..it is called
endemic--only a few are infected and their number remains constant...
If R > 1, we get full-blown epidemic like SARS.]

Now let us return to solve the system of equations using a tabular calculation:
Take s= 1 million, a=0.001, b=0.1,I=100 , R=0.
Run the cycle of calculations:

Solving the Difference equations -SIR model

Day S I R S'=S+ I'=I+

1 1 10^-4 0 1-0.1 10^-4 + .1-0.0001

2 0.9 0.1 10^-5 0.9-0.0009 0.1+ 0.0009-0.01

3 0.8991 0.09 0.01 0.8991-0.00008 0.09+0.00008-0.009

4 0.8983 0.081 0.009 0.8983-0.00007 0.081+0.00007-0.0081

5 0.89823 0.0729 0.0081 ---------------- -----------------

You can continue with the table.Note that the increase in I ,the infectives is quite
high in the first two days and then starts decreasing slowly from day 3 ,for this
set of parameters.This is typical---the epidemic rages fast in the first few days or
weeks and then slowly tapers off.You can see the 'alarming figures' which sets
the panic during the onset of any epidemic....The value of I decreases
apporximately by 0.09 million, every day after peak. If you continue, you may
reach a figure of I=10-4 ,after 15 days or so....then the epidemic has died down.

Practice problems:
1 Plot I versus # of days using the above table.
2 Change the parameters to this set: a=0.0001.Observe the slow onset of
epidemic.
3 Change the parameters to : a=0.0001, b=0.2 Observe the variation in I.
4 Since the progress of epidemic is sensitive to 'a' and 'b', pick a few past
epidemics and collect the data for these parameters and analyse the trends as
observed.

During SARS epidemic in 2003, isolation was quickly and effectively done and the
epidemic died down.During the flu epidemic in 1917,this could not be done and
many millions died.
Note that change in I infectives,
or S = b/a . That is the point when I reaches a maximum ,before I starts to
decrease.
Let S = 30000,when the I was maximum. Then if b/a =30000.We can now
proceed to solve the equations with a =1,b=30000= 3x10-2 million,S=1

This method of solving the equations can be easily programmed for a


computer...Write a program for this!

The SIR epidemic model has other uses too. Modeling forest fires,marketing
strategies and pest control models are modified form of SIR models.

HN
The population studies, demography, and the epidemic studies have occupied
hundreds of mathematicians and stat experts in many countires.Earlier,Malthus
and Vilfredo Pareto did pioneering work---they were part demographers and part
economists.Verhulst,Gomberg and others did extensive modelling in these
fields..These models have been widely employed in business schools too...
Leslie came up with a 'model or theory,using 'Leslie matrices'.He included the
reproductive age group in the population,say % of women in the age group 15 to
45 years,with three 10 year intervals, and their fertility rates.Note that the
fertility rate may change a lot due to social mores,economic pressures and
government intervention.In a country with aging population as in Japan,the
population growth will automatically decrease.Some governments regulate the
immigration policies based on the growth rate: Canada ,Australia,New Zealand for
instance.

Practice problems

1 A small lake can support a particular fish population of nearly 5000 fishes.If the
population initially was 200 at time t=30 days, find the growth equation.When
the population would reach a figure of 4500.
Hint: 200 = 5000(1-exp(-30k)) Solve for k.Use the equation to find t for 4500.
2 Comparing China and India, find the doubling time if the pop growth rate is 0.6 for china and
1.4 for India.

3 For the population of an island, the growth rate R = aP - bp.p is quite valid. a= 0.005 and b
= 0.0001.
Find the growth rate for p= 1million and 5 million population.

4 The stopping distance [D] for a truck is given by the following data:
Speed: 30 40 50 [mph]
D: 20 32 48 [feet.]
Fit a quadratic equation using the intrepolation method given earlier.
5 Develop a population model taking into account the age groups in the population,with % of
popualtion in the age group [15 to 30] and another age group [30 to 45] with different fertility
rates,say 3% and 2% in the equation. [Hint: replace a by weighted avarage of fertility rate
taking % population in the age groups.You can get plenty of data from open sources,especially
UN /UNICEF reports.]
6 Develop an epidemic model with a =0.001, The decrease in S is mainly due deaths in early
epidemics like the Plague during the medieval renaissance time in Italy.Taking s=0.75 of intial
population of say 1 million,find the possible value of b and I =100, S= 10^6

At the height of epidemic,


Therefore, b=1000.
Now we can solve the equation step by step.,till we reach S = 0.75x10^6.

Suggested Reading and References

1 William Dunham---- Journey through Genius --Penguin Books

2 Donald E Knuth ----- Fundamental Algorithms--Pearson Education

3 Roland Larson et al-- "Calculus" and also "Precalculus" -----Houghton Mifflin

4 Steven Chapra---Applied numerical methods with MATLAB---

5 Victor Katz ---The history of Mathematics--Addison-Wesley

6 'e'-the story of a number--Eli Maor

7 Jane Muir -- of Men and numbers --Dell Publishing


8 Edward Lorenz---Essence of Chaos..Washington Univ press

------------------------------------------------------------------------------------------------------------------

Historical Note
Madhava of Sangamagrama [a village in Kerala, near Kochi,India] lived in the years 1350 to
1425.His school of mathematics discovered many results in mathematical analysis and
calculus.Madhava found the infinite series expansion we have given here ,for sine x and arctanx
.He had developed the Taylor series expansion and had discussed the correction term too.He
calculated the value of 'pi' upto 11 decimal places using his infinte series.He introduced the
concept of limits which is central to Newton-Leibniz calculus,almost 200 years before
Newton.He is also credited with concepts of convergence and ratio test,usually ascribed to
Cauchy.He/his students had also used methods similar to secant method,approximations
similar to Taylor series expansion and Rolle's theorem.He had also worked on continued fraction
which was known to Hindu mathematicians since Aryabhatta in 5th century.There are som e
surmises that the Jesuit missionaries who were located in those parts of Kerala might have
taken these concepts to Europe.
There is gradual acceptance of Madhava's works that Gregory series is now called Madhava-
Gregory series, and so on.Some have stated that Madhava is the original founder of
Mathematical analysis,though Newton and Leibniz developed calculus futher with their notations
.
The Madhava school flourished for nearly 200 years [14th to 16 th centuries] and many more
outstanding mathematicians contributed from that school.[See the corresponding web-sites ]

--------------------------------------xxxxxxxxxxxxxxxxxxxxxx-------------------------------------------------

S-ar putea să vă placă și