For the shortest time, the swimmer heads perpendicular to the bank, giving a time of D divided by v. To cross over the shortest distance, the swimmer must head upstream to cancel the river's v/2 current, resulting in an upstream component of v times the sine of the angle equal to v/2. This creates a right triangle where the effective speed across the river is v times the cosine of the angle, which equals v times the square root of 3 divided by 2. The time for this path is D divided by the effective speed, and dividing the shortest time by this time gives a ratio of the square root of 3 divided by 2.