Can one tiny line tell you how much water is left in a Galway rainwater tank?
A rainwater tank in Galway starts draining when the water is two metres deep. You know how fast the depth is falling right now. Could you use one short straight line to predict how deep the water will be a second later?
On a depth against time graph, a downward slope means the water level is falling. Let tee be time in seconds and why be depth in metres. Suppose the rate of fall is proportional to depth, with constant zero point two per second. The minus sign shows that depth decreases.
Find the starting point at time zero and depth two metres. The model gives a slope of minus zero point four metres per second there. The short slope-field segment shows that tilt. Extend it one second to the right. The straight line drops zero point four metres to your estimated depth.
Suppose you follow a segment with a slope of minus zero point six metres per second for half a second. How much does the predicted depth change? Pick the signed change.
This is Euler’s method. Add the time step times the current slope to the current depth. At time zero and depth two metres, the slope is minus zero point four metres per second. In one second, the change is minus zero point four metres. That gives an estimated depth of one point six metres.
Try the same model with a starting depth of three metres and a step of half a second. First find the slope at three metres. What depth does one Euler step predict? Pick an answer.
Put the headings in row one. In row two, enter time zero, depth two and the slope formula. Store the step in D two. In row three, advance time, update depth using the previous slope, then recalculate the slope. The dollar signs keep D two fixed when you fill down.
With a one-second step, one update takes you from two metres to one point six. Change D two to zero point five and fill the three formulas down one more row. Now the depth is one point eight at half a second and one point six two at the same final time.
A tangent step holds its slope fixed as the curve flattens. To find the model depth, separate the variables, then integrate from the starting depth of two. Undo the logarithm. At one second the model gives about one point six three seven five metres. Both estimates are low, and the smaller step is closer.
Use Euler’s method with a step size of half a second, starting again at two metres. Estimate the depth after one and a half seconds. Show all three updates, using a fresh slope each time. Then explain one limitation of your estimate in the context of the draining tank.