lecture 15 - users.sussex.ac.uktn41/pdfs/mathematicalconcepts/lectur… · mathematical concepts...

38
Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays 15:00-16:45 [email protected]

Upload: others

Post on 24-Jul-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Mathematical Concepts (G6012)

Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays 15:00-16:45 [email protected]

Page 2: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

LIMITS

Page 3: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

The idea

•  Problem: Sequence of numbers, e.g.

and

What happens to if we make n ever larger?

Mathematicians write

Two typical cases: The numbers go ever larger (the series diverges), or (more interesting) it converges to a number (here 0).

Page 4: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Formal Definition

A sequence converges to a number

if for all (small) there is a number

such that for all .

Intuition: BB

Page 5: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

BB Intuition: Convergence

Blue dots: up to some

Green dots: for all larger

Page 6: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Examples

The limit for the sequence for to infinity does not exist, it grows without bound, people write:

BB

Page 7: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

BB

Claim:

Proof: Let .

We choose .

Then, for all , we know

Page 8: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Practical rules for limits

•  If all limits involved exist,

Page 9: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

“Thumb” rules for calculating limits

(Please don’t show this slide to proper mathematicians)

If

then

Page 10: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Example

Page 11: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Some more (Please don’t show this slide to proper mathematicians)

Page 12: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Another example (Please don’t show this slide to proper mathematicians)

Page 13: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Warning: Not everything converges or diverges (goes to )

What about ? It does not exist at all!

Page 14: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Big O notation: Speed of divergence

•  Is used especially in Computer Science

•  A function is , where is another function, if for , and some .

•  In other words, if is on the order of for large (or less than …)

Page 15: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Examples

It is also

is

is

Note: if is and converges to 0, then converges to 0 as well!

Page 16: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

DERIVATIVES

Page 17: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Slope, Derivative

The slope or derivative is the ratio of the change of f(x) and the change of x.

First for linear functions:

BB

Page 18: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

BB

Page 19: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

BB Calculating the linear example

Page 20: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Linear functions are easy …

•  Because the slope is the same everywhere

•  We can make any size we want and get the same value

Page 21: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Generalisation for any smooth function

•  Locally any smooth function looks more and more linear the further we zoom in:

Page 22: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays
Page 23: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays
Page 24: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays
Page 25: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays
Page 26: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays
Page 27: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Derivative of a smooth function

•  The derivative of a smooth function is the value the ratio converges to for smaller and smaller

, mathematicians write

Page 28: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

In the form as for the limits before

Sequence

Page 29: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Alternative notations

If is a smooth function

Then the derivative of f is denoted as

Page 30: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Note …

The derivative f’(x) of a function is again a function because we can calculate it for any point x.

Page 31: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

BB Example - Derivative of

Page 32: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Applications

•  If f(x) is your distance from home as a function of the time x. Then f’(x) is the speed you are driving towards (or away from) home.

•  If you take the derivative of the derivative f’’(x), that would be your acceleration.

(These are important for animating things!)

Page 33: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

More Applications

•  If f(x) describes the height of a hill, then f’(x) is the steepness.

•  f(x) is your total money as a function of time, f’(x) is your instantaneous spending rate.

•  (your example here)

Page 34: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Derivative of a polynomial

•  For we saw just now

•  Generally, for the derivative is

then

• Last time:

Page 35: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

For those interested: General case

Page 36: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Derivatives: Basic rules

Rule name Function Derivative

Polynomials

Constant factor

Sum and Difference

Page 37: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Examples: Polynomial rule Example 1

Example 2

Page 38: Lecture 15 - users.sussex.ac.uktn41/pdfs/MathematicalConcepts/Lectur… · Mathematical Concepts (G6012) Lecture 15 Thomas Nowotny Chichester I, Room CI-105 Office hours: Tuesdays

Special functions Function Derivative