Recall that adding the temporal derivative to the EV shifts the EV in time.
Mathematically, this can be seen from the first order Taylor expansion:
f(t+delay) ~ f(t) + df(t)/dt *delay
where f(t) is the EV at time t, and df(t)/dt is the first derivative of the EV at time t.
In practice, we are looking to fit the shifted EV to our FMRI data, Y:
Y = f(t+delay)*C + error
If we insert the first order Taylor expansion for f(t+delay), then we get:
Y = f(t)*C + df(t)/dt *delay*C + error
So, if we fit the following GLM to our FMRI data,
Y = X1*A + X2*B + error
where X1 is the EV and X2 is the temporal derivative of the EV, then we can see that C=A and delay*C=B. Hence, we can calculate the delay as B/A.