{"id":5810,"date":"2011-08-12T10:51:22","date_gmt":"2011-08-12T10:51:22","guid":{"rendered":"http:\/\/scienceblogs.com\/principles\/2011\/08\/12\/scientific-commuting-when-does\/"},"modified":"2011-08-12T10:51:22","modified_gmt":"2011-08-12T10:51:22","slug":"scientific-commuting-when-does","status":"publish","type":"post","link":"http:\/\/chadorzel.com\/principles\/2011\/08\/12\/scientific-commuting-when-does\/","title":{"rendered":"Scientific Commuting: When Does It Make Sense to Take Alternate Routes?"},"content":{"rendered":"<p>I am an inveterate driver of &#8220;back ways&#8221; to places. My preferred route to campus involves driving through a whole bunch of residential streets, rather than taking the &#8220;main&#8221; road leading from our neighborhood to campus. I do this because there are four traffic lights on the main-road route, and they&#8217;re not well timed, so it&#8217;s a rare day when I don&#8217;t get stuck at one or more of them. My preferred route has a lot of stop signs, but very little traffic, so they&#8217;re quick stops, and I spend more time in motion, which makes me feel like I&#8217;m getting there faster.<\/p>\n<p>That&#8217;s the psychological reason, but does this make physical sense? That is, under what conditions is it actually faster to take the back route, rather than just going down the main road?<\/p>\n<p>Some parameters: the main road route covers 1.7 miles and contains four traffic lights. The back way covers 2.2 miles and has nine stop signs. The speed limit on all of these streets is 30mph, but I usually drive more like 35mph, or 16 m\/s to put it in round numbers. I don&#8217;t really gun my car after any of the stops, so the acceleration is around 2 m\/s\/s (I&#8217;m enough of a dork to have checked this with the accelerometer in my phone, as well as counting &#8220;one thousand one, one thousand two&#8230;&#8221; while accelerating up to speed).<\/p>\n<p>Given that information, how can I estimate the conditions under which it makes practical sense, rather than just psychological sense, to take the longer route rather than the main roads?<\/p>\n<p><!--more--><\/p>\n<p>I&#8217;m a physicist, not an engineer, so I&#8217;m going to abstract away a lot of the difficult stuff about this problem. Let&#8217;s imagine that both the traffic lights and the stop signs are evenly spaced (they aren&#8217;t) along the route. This divides the 1.7 mile main-road route into five segments (each with a length of 547 m), and the 2.2 mile back way into ten segments (each with a length of 354 m). For each segment, I have to accelerate up to speed at the start, cruise at constant speed for some distance, then decelerate to a stop. In reality, the deceleration tends to be a little faster than the acceleration, but for simplicity, we&#8217;ll say they&#8217;re both the same.<\/p>\n<p>So, a little math. We know from introductory kinematics that the time required to accelerate up to some speed <i>v<sub>f<\/sub><\/i> at some acceleration <i>a<\/i> is:<\/p>\n<blockquote>\n<p><img decoding=\"async\" src=\"http:\/\/scienceblogs.com\/principles\/wp-content\/blogs.dir\/467\/files\/2012\/04\/i-41a002b54c5eda8e3923c7489ada3515-commute1.png\" alt=\"i-41a002b54c5eda8e3923c7489ada3515-commute1.png\" \/><\/p>\n<\/blockquote>\n<p>And the distance <i>x<\/i> covered during that time is:<\/p>\n<blockquote>\n<p><img decoding=\"async\" src=\"http:\/\/scienceblogs.com\/principles\/wp-content\/blogs.dir\/467\/files\/2012\/04\/i-ba666bb9ef3cac3d529b4c56f5dc4299-commute2.png\" alt=\"i-ba666bb9ef3cac3d529b4c56f5dc4299-commute2.png\" \/><\/p>\n<\/blockquote>\n<p>To find the time required to cover one of the segments, then, we need to include both the time required to speed up at the start and slow down at the end, and also the time to cover the remaining distance. That distance is the length of the segment minus the distance covered while speeding up and slowing down, so using the two equations above, we have:<\/p>\n<blockquote>\n<p><img decoding=\"async\" src=\"http:\/\/scienceblogs.com\/principles\/wp-content\/blogs.dir\/467\/files\/2012\/04\/i-154f5031a434f73f94b22c0eff927b67-commute3.png\" alt=\"i-154f5031a434f73f94b22c0eff927b67-commute3.png\" \/><\/p>\n<\/blockquote>\n<p>That looks a little scary, but if you look carefully at that second term, the bit that&#8217;s subtracted in the numerator simplifies to half of the first term in the equation. which means that the time to complete one segment is just:<\/p>\n<blockquote>\n<p><img decoding=\"async\" src=\"http:\/\/scienceblogs.com\/principles\/wp-content\/blogs.dir\/467\/files\/2012\/04\/i-d94297937363963691227ce7e4a3afb1-commute4.png\" alt=\"i-d94297937363963691227ce7e4a3afb1-commute4.png\" \/><\/p>\n<\/blockquote>\n<p>Does this look right? Well, looking at the equation, we see that if we increase the acceleration, we decrease the total time. That makes sense, because we spend less time speeding up, and more time cruising at maximum speed. Increasing the final velocity is a little more ambiguous&#8211; it decreases the second term, because the cruising speed is higher, but increases the first, because it takes more time to speed up. Whether this leads to a net increase or a net decrease will depend on the exact values of <i>a<\/i>, <i>x<sub>seg<\/sub><\/i>, and <i>v<sub>f<\/sub><\/i>.<\/p>\n<p>The total time required is just the time per segment multiplied by the number of segments, <i>N<\/i>. This gives us a simple expression for the total time:<\/p>\n<blockquote>\n<p><img decoding=\"async\" src=\"http:\/\/scienceblogs.com\/principles\/wp-content\/blogs.dir\/467\/files\/2012\/04\/i-e4fa5c97bb90d65f1d3ee699bf310ff0-commute5.png\" alt=\"i-e4fa5c97bb90d65f1d3ee699bf310ff0-commute5.png\" \/><\/p>\n<\/blockquote>\n<p>(where I&#8217;ve used the fact that <i>N<\/i> times the segment length is the total length).<\/p>\n<p>So, this gives a simple formula for the time spent to cover each route, which depends on the cruising speed, the acceleration of the car, and the total distance to be covered. this is a dramatic simplification, of course, but it gives you a good idea of the important factors.<\/p>\n<p>So, putting in the numbers from up above, we get a travel time of 210 seconds for the shorter, main-road route, and 300 seconds for the longer back way. Which makes the main-road route clearly better, right?<\/p>\n<p>There&#8217;s one factor missing, though: the above model assumes that I stop at every light, but does not include time spent waiting for the light to change, which can even things out. The formula is the time spent driving, but if I end up sitting and waiting for more than about a minute and a half, then the two routes are equal in time.<\/p>\n<p>Of course, there&#8217;s also a best-case scenario for the main-road route, namely hitting all of the lights perfectly so I don&#8217;t need to stop at all (this essentially never happens, but it&#8217;s conceivable that it might). The time in that case would just be the time for a single 1.7 mile segment, or about 179 seconds.<\/p>\n<p>So, to sum up: the back way is almost certainly slower, unless I end up sitting at the lights for more than a minute and a half, which isn&#8217;t that unusual. The main-road route is almost certainly faster, but more variable in time, as there&#8217;s an unknown waiting time to factor in.<\/p>\n<p>Ultimately, as I said, my reasons for going the back way are psychological, not practical&#8211; sitting at traffic lights pisses me off in a way that having to stop at stop signs does not. So, taking the back way gets me to campus in a better mood than taking the main roads, and that&#8217;s what really matters, particularly for students in my morning classes.<\/p>\n<p>This calculation does prove once again, though, that if you have a little knowledge of basic physics, there&#8217;s nothing you can&#8217;t <strike>overthink to a preposterous degree<\/strike> model mathematically.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am an inveterate driver of &#8220;back ways&#8221; to places. My preferred route to campus involves driving through a whole bunch of residential streets, rather than taking the &#8220;main&#8221; road leading from our neighborhood to campus. I do this because there are four traffic lights on the main-road route, and they&#8217;re not well timed, so&hellip; <a class=\"more-link\" href=\"http:\/\/chadorzel.com\/principles\/2011\/08\/12\/scientific-commuting-when-does\/\">Continue reading <span class=\"screen-reader-text\">Scientific Commuting: When Does It Make Sense to Take Alternate Routes?<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"1","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,7,147,11,145],"tags":[181,658,218,157,659,92,88,227,660,661],"class_list":["post-5810","post","type-post","status-publish","format-standard","hentry","category-education","category-physics","category-playing-with-graphs","category-science","category-travel","tag-acceleration","tag-driving","tag-kinematics","tag-math-2","tag-modeling","tag-physics-2","tag-science-2","tag-silly","tag-speed","tag-velocity","entry"],"_links":{"self":[{"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/posts\/5810","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/comments?post=5810"}],"version-history":[{"count":0,"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/posts\/5810\/revisions"}],"wp:attachment":[{"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/media?parent=5810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/categories?post=5810"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/chadorzel.com\/principles\/wp-json\/wp\/v2\/tags?post=5810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}