A cyclist stops pedalling in Phoenix Park. Where will they be two seconds later?
A cyclist in Phoenix Park stops pedalling just as they pass a point ten metres beyond a marker. They're moving at six metres per second. If the bike slows as it coasts along a level path, where will it be two seconds later?
Start with position, measured in metres from the marker. Differentiate it with respect to time to get velocity in metres per second. Differentiate velocity with respect to time to get acceleration in metres per second squared. So acceleration is the second derivative of position.
On the level path, assume the acceleration opposes the motion and is proportional in size to the speed. That gives minus k times v, with k positive. Write v as the first derivative of x. Now acceleration is the first derivative of v, so the velocity equation is first order.
Suppose a different model says the second derivative of x is minus zero point two times v. Once you use v for velocity, which equation gives its rate of change? Pick the first-order equation.
Take k as one half per second. While the bike moves forward, divide by v to separate the variables. Integrate from six to the current velocity on the left and from zero to the current time on the right. Evaluate the integrals, then exponentiate: six times e to the minus t over two.
Velocity is the derivative of position. Integrate to get a constant minus twelve times e to the minus t over two. At time zero the exponential is one and position is ten, so the constant is twenty-two. That gives position as twenty-two minus twelve times e to the minus t over two.
A second cyclist has velocity four times e to the minus two t in metres per second. Their position at time zero is five metres. Integrate the velocity and use that starting position. Pick the expression for position.
Suppose you know the bike starts at six metres per second. Does that fix its position? It could start at zero metres or ten metres, with the same velocity at every time. The initial position is a separate condition. Set it to ten metres to fix the position function.
Read time across and position up. The exact curve flattens towards twenty-two metres as the bike slows. The dots show Euler estimates. In each spreadsheet row, add the old velocity times one second to the old position, and halve the old velocity. Use both new values in the next row.
Read the instruction closely: find the displacement from O after two seconds. Here O is the marker. Substitute two into the position expression to get twenty-two minus twelve over e. That puts the bike about seventeen point six metres beyond the marker.