What we are solvingTwo drones fly along two straight routes in spaceA sensor sits at the point SCheck 1: do the two routes cross each other?Check 2: is the sensor within 5.5 units of the first route?Chapter: VectorsTopic: straight lines in three dimensionsConcept and formulasA straight line in space needs a point on it and a directionr=a+λdIn books, vectors are printed in bold; by hand, we write an arrow on topa is the position vector of a known pointd is the direction vector of the lineλ is a number that moves us along the lineWhen do two lines meet?They meet when one point lies on both linesPut the two equations equalThree equations, from x, y and z, in two unknownsSolve two of them and test the thirdIf the third one fails, the lines do not meetDistance of a point from a lineThe shortest distance is always the perpendicular distancedistance=∣d∣∣AS×d∣A is any point on the lineAS is the vector from A to the sensor SThe cross product gives the area of a parallelogramDividing by the base leaves the heightWorking: do the routes meet?Route 1, through A and BAB=(4,7,8)−(3,5,7)=(1,2,1)r=(3,5,7)+λ(1,2,1)Route 2, through C and DCD=(3,5,8)−(1,2,3)=(2,3,5)r=(1,2,3)+μ(2,3,5)A different letter, μ, because the lines are differentIf the routes meet, the two position vectors are equal3+λ=1+2μ(i)5+2λ=2+3μ(ii)7+λ=3+5μ(iii)Solve the first twoλ=2μ−25+4μ−4=2+3μμ=1,λ=0Test the third equation with these valuesLHS=7+λ=7+0=7RHS=3+5μ=3+5=87=8No point lies on both routesThe directions are not parallel eitherSuch lines are called skew linesThe routes do not intersect, requirement 1 is not satisfiedWorking: distance of S from route 1AS=(7,5,2)−(3,5,7)=(4,0,−5)d=(1,2,1)AS×d=i41j02k−51i:(0)(1)−(−5)(2)=10j:−[(4)(1)−(−5)(1)]=−9k:(4)(2)−(0)(1)=8AS×d=(10,−9,8)∣AS×d∣=100+81+64=245∣d∣=1+4+1=6distance=6245=6.39 units6.39>5.5Requirement 2 is not satisfiedConclusionThe two routes are skew, so they do not intersectThe sensor is 6.39 units from route 1, beyond the 5.5 limitThe proposed routes do not satisfy the Engineering Design requirementsAnswer: Not satisfiedTip: Always end with a sentence about the story, not just a number