Real Analysis

Arun Ram
Department of Mathematics and Statistics
University of Melbourne
Parkville, VIC 3010 Australia
aram@unimelb.edu.au

Last update: 9 July 2014

Lecture 11

The interest sequence

If you borrow $500 on your credit card at 14% interest, find the amounts due at the end of two years if the interest is compounded

(a) annually,
(b) quarterly,
(c) monthly,
(d) daily,
(e) hourly,
(f) every second,
(g) every nanosecond,
(h) continuously.

(a) You owe 500+500(.14)=500(1+.14) after one year and 500(1+.14)(1+.14) after two years.

(c) You owe 500+500(.1412)= 500(1+.1412) after one month, 500(1+.1412) (1+.1412) after two months, and 500(1+.1412)24 after two years.

(f) You owe 500+500(.14365·24·2600) after 1 second, and 500(1+(.14365·24·2600))2·365·24·2600 after two years.

(h) You owe limn500 (1+.14n)2n after 2 years. limn500 (1+.14n)2n = 500limnelog(1+.14n)2n = 500limn e2nlog(1+.14n) = 500limn e2·(.14)log(1+.14n).14/4 = 500limne.28log(1+.14n).14/n. Recall limx0 log(1+x)x=1. So you owe 500·e.28 after two years.

Note: 500(1+.14)2 = 649.80 500(1+.1412)24 660.49 500e.28 661.56

Newton Iteration – Solving f(x)=0

The Taylor series of f(x) at x=a is f(x)=f(a)+ (dfdx|x=a) (x-a)+12! (d2fdx2|x=a) (x-a)2+ Then, for nice functions f (functions that don't jump around much) f(x)f(a)+ (dfdx|x=a) (x-a)=f(a)+f (a)(x-a). Create a sequence: z0 = your choice z1 = -f(z0)f(z0) +z0, z2 = -f(z1)f(z1) +z1, = Then, if limnzn=z (the sequence zn converges) then f(zn+1) is very close to f(zn)+ f(zn)(zn+1-zn) =f(zn)+f(zn) ( -f(zn)f(zn) +zn-zn ) =0. So f(z)=0.

This "trick" for solving f(z)=0 totally fails if f(zn) ever comes out 0 (or very very small) or if f jumps around wildly.

Picard iterlation – Solving f(x)=x.

Create a sequence (an): a1 = your choice a2 = f(a1), a3 = f(a2), = Then, if limnan=a (the sequences (an) converges) then f(a)=a (because f(an)=an+1 is very close to an for large enough n).

Show that the equation x3+x-1=0 has a solution between 0 and 1. y=x3 - 1 1 x - 1 1 y y=x3+1 x 1 2 y y=x3-1 - 1 x - 2 - 1 y y=x - 1 1 x - 1 1 y y=x3+x-1 1 x - 1 1 y Notes:

(a) If x=0 then x3+x-1=-1.
(b) If x=1 then x3+x-1=1+1-1=1.
So x3+x-1 has a zero between x=0 and x=1 (because x3+x-1 is continuous).

Transform the equation x3+x-1=0 to the form x=f(x) and use Picard iteration to find the solution to 3 decimal places.

Since x3+x-1=0 is the same as x(x2+1)=1, x=1x2+1 is of the form x=f(x).

Let a1=12. Then a2 = 1(12)2+1= 114+1= 154=45=0.8 a3 = 1(45)2+1= 11625+1= 14125=2541 .6097560975 a4 = 1(2541)2+1= 16251681+1= 1625+16811681=16812306 .728967 a5 = .6530046 a6 = .7010582 a7 = .6704737 a8 = .68987635 a9 = .67753918 a10 = .68537308 a11 = .680394233 a12 = .6835567 a13 = .681547222 a14 = .68282382 a15 = .6820126 So, to 3 decimal places of accuracy x=.682 is a zero of x3+x-1=0.

Note: Another expression for x3+x-1=0 is x=1-x3.

Let a1 = 12 a2 = 1-(12)3= 1-18=78=.875 a3 = 1-(78)3 .330078 a4 1-(.330078)3 .964037 a5 .104055, = and this sequence is not converging, but oscillating between close to 1 and close to 0.

Notes and References

These are notes from a 2010 course on Real Analysis 620-295. This page comes from 100324suggLect11.pdf and was given on 24 March 2010.

page history