Today: Introduction to dynamic problems#

Tom Ranner

../_images/5d22a56f15569627d41bb5e80ebb758e54a86037198b41c68210ebf7b09dfac0.png

Static vs dynamic problems#

Examples so far have focussed on static problems that don’t change in time:

Image showing sample temperature and relations in a room

Static vs dynamic problems#

There are many other problems that require models to change in time, that is the models are dynamic:

Rates of change#

Suppose we know that a person is walking at constant 3 meters per second (m/s) - what does that mean?

So how far will they travel in:

  • \(0.1\) seconds?

  • \(0.01\) seconds?

  • \(0.001\) seconds?

  • \(10^{-6}\) seconds?

What does this tell us about speed?

\[ \text{Distance travelled} = \text{speed} \times \text{time} \]

That is, $\( \text{speed} = \dfrac{\text{distance travelled}}{\text{time}} \)$

Equivalently, $\( \text{speed} = \dfrac{(\text{distance at end}) - (\text{distance at start})}{\text{time}}. \)$

The derivative as a rate of change#

What if the object’s speed was not constant? For example, \(S(t) = -(t-1.0)(t+0.5)\).

../_images/b3edc159c9764b9b0aec31253d2046d4ea933684aac2a50133f4693f71176354.png

How far would the object travel in one second now? – with difficulty :(

We could consider each tenth of a second separately and estimate the distance covered at each tenth (assuming the \(s\) is approximately constant in each interval):

D, t = 0.0, 0.0
for i in range(10):
    D = D + 0.1 * S(t)
    t = t + 0.1
../_images/3a63411c447fabfd2ce1e6398a3850978bce87e34e6cec8c70bebb0419f69834.png

We could consider each hundredth of a second separately and estimate the distance covered at each hundredth (assuming the \(s\) is approximately constant in each interval):

D, t = 0.0, 0.0
for i in range(100):
    D = D + 0.01 * S(t)
    t = t + 0.01
../_images/25c6e0f049134141c163156ad7bc3faa6a24b535d3e8004e86b517b38c223b65.png

We could consider each thousandth of a second separately and estimate the distance covered at each thousandth (assuming the \(s\) is approximately constant in each interval):

D, t = 0.0, 0.0
for i in range(1000):
    D = D + 0.001 * S(t)
    t = t + 0.001
../_images/8038f5a318831ea489e1c458b64ba1a02ce6f40e05e131990b7df224c1533687.png

What values do we get?#

Total distance as a function of number of steps
  # intervals increment size dt total distance
0 10 0.100000 0.440000
1 100 0.010000 0.419150
2 1000 0.001000 0.416916
3 10000 0.000100 0.416692
4 100000 0.000010 0.416669

… we appear to be converging to an answer in the limit as \(\mathrm{d}t \to 0\)

So what’s going on#

At any instant of time, the speed is the rate of change in distance:

\[ \text{speed} = \dfrac{\text{change in distance}}{\text{time}} \]

so

\[ \text{change in distance} = \text{time} \times \text{speed} \]

Mathematically speaking#

Call the speed \(S(t)\) and distance \(D(t)\):

\[ S(t) = \frac{D(t + \mathrm{d}t) - D(t)}{\mathrm{d}t} \]

In fact, to obtain a converged answer, we must take smaller and smaller choices for \(\mathrm{d}t\):

\[ S(t) = \lim_{\mathrm{d}t \to 0} \frac{D(t + \mathrm{d}t) - D(t)}{\mathrm{d}t} \]

We say that speed, \(S(t)\), is the derivative of distance, \(D(t)\), with respect to time and write \(S(t) = D'(t)\).

A graphical interpretation#

../_images/bc21ca288e1a77dc36aa8a17bc76834276f84a5282f21db25b7219f37eba3974.png

We see the gradient (slope) of the orange curve is the value of the blue curve.

The derivative as a gradient#

What is the gradient of a line?

../_images/f8b0b631af46e38c6519638373f703481654b9ff44ea83edaeaeac66b61f227b.png

The equation of a straight line with slope \(m\) is given by

\[ y(t) = m t + c. \]

Slope of a curve#

What is the gradient of a curve?

Well… the gradient of the straight-line approximation (chord) for a small step is

\[ \frac{y(t + \mathrm{d}t) - y(t)}{\mathrm{d}t}. \]
../_images/9056911628033e996ae14db376214765569dc418ab44bafddc0f79fda8b6c729.png

What about reducing \(\mathrm{d}t\)?

../_images/eb441db721664401b3f2db36f2a29a6f5049bc7bad87bdde4a5acafb12218fe0.png

Even more?

../_images/7bab97684179cb095ca00e2ad3f215843441a4b202d9bc7f8c23f60b8539ad36.png

By taking smaller and smaller values of \(\mathrm{d}t\), it becomes clear that we can assign an instantaneous value to the slope at any point \(t\):

\[ \lim_{\mathrm{d}t \to 0} \frac{y(t+\mathrm{d}t) - y(t)}{\mathrm{d}t}. \]

But this is precisely the definition of derivative \(y'(t)\)!

Do you feel more confident?#

../_images/5d22a56f15569627d41bb5e80ebb758e54a86037198b41c68210ebf7b09dfac0.png