I had a heated discussion with my co-worker today, and was wondering if someone here could shed some light on this situation. The post is a bit lengthy, but I wanted to put all my intuition down in writing so you all only need to help as minimally as possible.
I live in a town called Mathelia, and every day I commute from my workplace at $x=0$ to my house at $x=1$. I've been starting my commute home at $t=0$, and this gets me home at $t=2$, since there's quite a bit of traffic.
My friend told me that the traffic lulls down over time, and if I were to leave after $t=0$, I might be able to commute a less amount of time. He's right, in fact, and if I leave at $t=1$, I end up at home at roughly $t=2.5$, saving $0.5$ time from my commute.
Theorem: I will never be able to arrive home before $t=2$.
Proof: Let's say that I arrive home at some time $t<2$. Then, at some point I would have coincided in position and time with the "ghost car" that left exactly at $t=0$. Since the position and time are the same, the time remaining for the rest of the journey must be the same, and thus I must arrive home at $t=2$.
My question is this: is it possible to leave at a time $t>0$ and still arrive home at $t=2$?
I make the following assumptions. Let's assume we have some traffic function $f(x,t) > 0$ which gives us the traffic $f$ (in miles/hour; $f$ really tells us the speed we can travel, with high $f$ being low traffic and vice versa) at every point $0 \leq x \leq 1$ and $0 \leq t$. We assume that $f$ is continuous and differentiable everywhere in this region.
My first thought was that if we allow $f(x,t) = 0$ for some $x$ and $t$, we could let $f(x,t) = 0$ for $t \leq 1$, and then have the $t > 1$ portion complete continuity and differentiability. This would mean that I would go literally nowhere for the first hour, at which point leaving at $t=1$ would make me coincident with the "ghost car" immediately.
But since $f(x,t) > 0$, I don't know how to approach this problem. I think there's something weird going on, because if we know that $f(x_1, t_1) = c$, this value of $c$ tells us which "path" we take on the surface $f$. If $c$ is large, we then have small increases in $t$ with large increases in $x$; if $c$ is small, we then have small increases in $x$ with large increases in $t$. This makes me feel like the entire system can be described by just one parameter: $t_0$, or when you start the journey.
I reason that everything from there should be deterministic: you know $x_0 = 0$ and $t_0$, so you know the initial value of $f$. Depending on $f$, the values for $x$ and $t$ change ($f$ will tell you the local value of $\frac{dx}{dt}$, I think), and you can work out a new value for $f$.
So, the question is are there multiple paths that intersect the state $x=1, t=2$?
I think there's maybe a system of ODEs I can write, but I don't know how to translate "given $f$, is there a path where $t_0 > 0 \text{ and } (x = 1, t = 2) \text{ is part of the solution curve}$" into actual mathematics.
This is about when I actually left work for my commute home, and I typed this up.
UPDATE
After thinking about this some more, I think what I'm modeling looks something like:
$$\frac{dx}{dt} = f(x,t), x(t_0)=0$$
As long as we know $f$ and $t_0$, we should be able to find the curve $x(t)$ which gives us our position at any time $t$. Then we need to find $t_f$ such that $x(t_f) = 1$.
The question then becomes: can we find multiple $t_0$ such that $t_f = 2$? Maybe someone well-versed can answer if this is ever possible, or how we might choose $f$ such that this is possible.
UPDATE #$2$
Let me make my question much more explicit without the background information.
I have a function $f(x,t)$ which gives you the speed you're allowed to travel at a position $x$ and a time $t$ ($0 \leq x \leq 1$, $0 \leq t$).
We know the following:
- If you leave at $t = 0$ from $x = 0$, you will arrive at $x = 1$ at $t = 2$.
- If you leave at $t = \delta$ from $x = 0$, you will never be able to arrive before $t = 2$.
The second bullet indicates that there might be some $\delta$ which allows you to arrive exactly at $t = 2$.
My question is how, given $f(x,t)$, can we determine whether or not such a $\delta$ exists?
Might it be true that for no $f(x,t)$ is this satisfied?
You're over-thinking it. The time you arrive home on a given day, with given patterns for other cars, is a non-decreasing function of $t_0$, the time you leave work. The fact that it is non-decreasing follows from your "ghost car" argument. However there will be intervals which result in the same time. For example if you hit a red light, it doesn't matter whether you arrive just after it turned red or just before it turned green. You wind up in the same spot behind the light, and you will get home at the same time.
That said your speculation time would probably be better used in not thinking of this as a straight line "always following the same path" problem, but rather in thinking of it in terms of which route is best. Which makes the problem greatly more complicated. However the need for real time feedback from many paths that you are not currently on will suggest looking for a source of such data that other people are collecting. This in turn could lead you to the pragmatic approximation of installing Waze and following its directions.
Have good luck commuting!