1 of 53

BI 559 Lecture 3: Math Review Pt. 1

2 of 53

BI 559 Lecture 3: Math Review Pt. 1

Today:

  • Review exponentials and calculus to prepare for upcoming section on modeling growth

Next week:�

  • Probability and statistics�
  • Differential equations

3 of 53

From last time

Ballistic motion

Brownian/diffusive motion

Average distance traveled increases with square root of time!

Average distance traveled increases linearly with time.

 

 

average distance traveled

time

constant speed

time

average distance traveled

diffusion constant

4 of 53

How far do you go on average after N steps? Let’s actually compute the average for different values of N in one dimension

N (number of steps)

1

0

1

2

0

2

3

0

3

 

 

 

5 of 53

Diffusive vs. ballistic

Motor protein speed vs. diffusion constant of a small protein

6 of 53

Diffusion

 

 

In 3D:

7 of 53

Math review: exponential growth

Let’s say you open a bank account with 10% interest compounded once a year.��What does that mean?

Each year, you get 10% return, i.e. your money gets multiplied by 1.1:

 

initial amount of money

rate of return

Imagine you keep your money there for 2 years:

 

 

 

 

With exponential growth, in each increment of time, the population is multiplied by a certain number instead of adding a number!!!

Example: interest on a bank account

money after 1 year

8 of 53

Math review: exponential growth

Instead of computing the return every year, what if we compute half of it every 6 months so that the return can earn more return?

For mathematical simplicity, I’ll assume an interest rate of 100%:

 

initial

1 year

$$$

$1

$2

 

initial

1 year

$$$

$1

$2.25

6 months

 

$1.50

We made more money!

Computed annually:

Computed twice a year:

9 of 53

Math review: exponential growth

What about 1/3rd computed every 4 months?

 

initial

1 year

$$$

$1

$2

Computed annually:

initial

1 year

$$$

$1

$2.25

6 months

$1.50

Computed twice a year:

initial

1 year

$$$

$1

$2.37

4 months

$1.33

Computed three times a year:

$1.77

 

8 months

 

The more often we compute the interest, the more money we get!

10 of 53

Math review: exponential growth

 

 

2

2.2500

3

2.3704

4

2.441

5

2.488

6

2.522

10

2.594

100

2.705

1000

2.717

?

 

 

 

11 of 53

Exponential growth contrasted with linear growth

For something growing exponentially, with every interval of time, the amount of it is multiplied by a number instead of adding a number!

Linear growth: every regular time interval, a constant amount is added

If the shoveler shovels at a steady rate, the volume of the pile will grow linearly.

The size of the pile is a straight line on a linear axis!

12 of 53

Exponential growth contrasted with linear growth

If somehow the snow pile could grow exponentially, then its size would be multiplied by a certain number every regular time interval

Exponential growth is not a line on a linear axis!

A more useful way to plot exponential curves is using a logarithmic axis

13 of 53

Logarithmic axes

Linear axis

Logarithmic axis

Each tick is adding a number

Each tick is multiplying by a number

 

 

14 of 53

Exponential growth is linear on any log axis!

Base 2

Base 10

What changes is just the numerical value of the slope!

15 of 53

For a base-2 log axis, the slope is the inverse of the doubling time

 

 

1 log unit

16 of 53

A logarithm is the inverse of an exponential

 

 

 

 

 

 

17 of 53

Math review: Derivatives

(the great Eric Koston)

18 of 53

Derivatives

19 of 53

Derivatives: rates of change

Time derivative: reaction rates, speed, etc

Spatial derivative: gradients

*iGEM

20 of 53

How do we define the derivative?

 

 

 

 

 

 

 

 

 

What is the rate of change of concentration?

 

Decaying chemical:

Note: we will not do a lot of math manipulations. We mainly need to get the concepts!

21 of 53

What does the derivative of this function look like?

time, t

rate of change, dN/dt

?

0

22 of 53

What does the derivative of this function look like?

23 of 53

Notation we will use

 

 

 

 

24 of 53

Common derivatives and rules (polynomial, exponential, chain rule)

 

 

 

 

 

 

 

25 of 53

Derivatives act linearly

 

26 of 53

Derivatives: rates of change

Very important note on units!

 

 

 

 

 

units of concentration

units of time

27 of 53

Derivatives: rates of change

Very important note on units!

 

 

 

 

 

units of concentration

units of time

Becomes very important when dealing with units of constants that appear in equations!

28 of 53

Derivatives: rates of change

Very important note on units!

Say we have an equation

 

 

 

(units)

 

29 of 53

A key application of differential calculus

CILSE

Star Market

30 of 53

A key application of differential calculus

Boston

Manchvegas, NH

31 of 53

A key application of differential calculus

Tehran

Perth

Tehran

Perth

Isfahan

Isfahan

32 of 53

Tehran

Perth

Isfahan

Plane tangent to Tehran

Isfahan and Tehran are approximately connected by a straight line/plane.

There are many planes that go through Tehran.

How do you find the right one?

Use the derivative to make a linear approximation of the Earth’s curved surface!!!

33 of 53

To see how we do this, let’s take a function that’s curved, but not as complicated as the Earth’s surface

 

34 of 53

 

 

 

35 of 53

 

 

36 of 53

We want a tangent line at x = 3.5

 

What is the equation for that line?

 

 

 

 

 

 

 

 

37 of 53

 

 

 

 

 

(near x = 3.5)

 

Now let me do something weird!

We can approximate a non-linear function as a line with a slope equal to the derivative of the function!

We want a tangent line at x = 3.5

 

What is the equation for that line?

38 of 53

Taylor Series

  •  

 

constants!

→ this is a polynomial

In this course, we only care about the first two terms:

 

The derivative lets us approximate the function as a line near x = a. This makes math much easier.

39 of 53

 

 

 

 

 

!

 

40 of 53

Looks . . .

Kind of linear, no?

I’m going to plot another curve here.

41 of 53

 

42 of 53

Let’s zoom back out.

43 of 53

 

 

 

44 of 53

45 of 53

46 of 53

47 of 53

48 of 53

49 of 53

50 of 53

51 of 53

52 of 53

53 of 53