The Illusion of Speed
Imagine standing on the side of a highway, watching cars zoom by. Now, imagine you are running towards those cars. They seem to be moving much faster, right? This is the core of relative velocity, and it's the secret to unlocking this problem.
The sensor isn't just sitting there; it's actively moving against the flow of traffic. This means it sweeps through the cars faster than if it were stationary.
Setting Up the Variables
Let's define what we know. The traffic is moving at a constant speed v=40 km/h. The sensor is moving in the opposite direction at u=5 km/h.
Because they are moving towards each other, the relative velocity of the traffic with respect to the sensor is the sum of their speeds:
The Effective Distance
The sensor covers a physical distance L=1 km along the highway. How long does this take? Time is simply distance divided by speed.
During this time t, how much "length" of traffic has actually passed under the sensor? We call this the relative distance, drel.
Finding the Density
The sensor counts N=360 vehicles in this effective distance. If we assume the cars are evenly spaced, we can define a linear density λ, which is the number of cars per unit length.
The total number of cars N is simply the density multiplied by the effective distance:
Rearranging this to solve for our unknown density λ:
The Final Calculation
We don't just want the density; we want the number of vehicles n in a specific length l=100 m (which is 0.1 km).
We multiply the density by this length:
Now, let's plug in the numbers. Notice how keeping all our units in kilometers and hours prevents any messy conversions!
There are exactly 4 vehicles in every 100 meters of the lane. A perfectly clean integer!