Vector Theory (24 pages; 15/3/2014) Contents (1) Equation of a line (i) parametric form (ii) relation to Cartesian form (iii) vector product form (2) Equation of a plane (i) scalar product form (ii) parametric form (iii) converting between scalar product and parametric forms (3) Angle between two direction vectors (4) Perpendicular vectors (i) vector perpendicular to given (2D) vector (ii) vector perpendicular to two given (3D) vectors (5) Intersections (lines are 3D) (i) point of intersection of two lines (ii) point of intersection of a line and a plane (iii) line of intersection of two planes (6) Shortest distances (i) from a point to a plane (ii) between two parallel planes (iii) between parallel lines / from a point to a line (iv) between two skew lines 1 (1) Equation of a line (i) parametric form (2D example; but can be extended to 3D) The vector equation of the line π through the points A & B can be written in various forms: (a) r = a + πd (b) r = a + π(π − π) (c) r = (1 − π)a + ππ (a weighted average of π & π; when π = 0, π = π; when π = 1, π = 1 π; when π = , π is the average of π & π; the diagram shows π = 2 1 ) 3 (d) (π¦π₯ ) = (ππ1 ) + π (ππ1 ) 2 2 1 or (ππ1 +ππ ) +ππ 2 2 where a = (ππ1 ) and d = (ππ1 ) is any vector in the direction from A 2 2 to B (normally d1 & d2 are chosen to be integers with no common factor) 2 Note the difference between (a) the vector equation of the line through the points A & B and (b) the vector βββββ π΄π΅ : The vector βββββ π΄π΅ has magnitude |AB| (the distance between A & B) and is in the direction from A to B. Whereas the vector equation of the line through A & B is the position vector π of a general point P on the line, with completely different magnitude and direction to that of the vector βββββ π΄π΅ . (ii) relation to Cartesian form (π¦π₯ ) = (ππ1 ) + π (ππ1 ) ⇒ π = 2 ⇒ π¦ = π2 + 2 π2 π1 π₯−π1 π1 = π¦−π2 π2 . (π₯ − π1 ) the straight line through (π1 , π2 ) with gradient (iii) vector product form (3D lines only) r = a + πd can be written as (π − π) × π = 0 (since π − π and π are parallel) or π × π = π × π eg line through (1, 0, 1) and (0, 1, 0): 0 1 −1 π = (1 ) − ( 0 ) = ( 1 ) 0 1 −1 π π × π = |π π 1 0 1 −1 −1 1 | = −π + π = ( 0 ) 1 −1 3 π2 π1 −1 −1 Thus equation is π × ( 1 ) = ( 0 ) −1 1 Note: Textbooks tend to write the determinant with the elements transposed (it gives the same result though). (2) Equation of a plane (i) scalar product form Let π be the position vector of a point in the plane, π₯ and π = (π¦) be a general point in the plane. π§ Let π be a vector perpendicular to the plane. As π − π and π are perpendicular, (π − π). π = 0 ⇒ π. π = π. π = π (a constant) ⇒ ππ₯ π₯ + ππ¦ π¦ + ππ§ π§ = p (Cartesian form) 4 Example −12 1 If π = (2) and π = ( 11 ), then 4 −9 −12π₯ + 11π¦ − 9π§ = −12(1) + 11(2) − 9(4) = −26 (Another way of thinking of this is that, since π is a point on the plane, it is a solution of π. π = π, so that π = π. π, or π. π) (ii) parametric form This is an extension of the parametric form of the vector equation of a line. Let π and π be non-zero vectors in the plane (that are not parallel to each other). Then π = π + (ππ + ππ) 5 Note that π and π are direction vectors, whilst π is a position vector. π and π can of course be determined from 2 points π and π in the plane, as π − π and π − π (or π − π) (iii) converting between scalar product and parametric forms (a) to convert from scalar product to parametric form Example Suppose that the equation of the plane is 2π₯ + 3π¦ + π§ = 4 Let π₯ = π and π¦ = π‘ , so that π§ = 4 − 2π − 3π‘ and a general point is π₯ π 0 0 1 π‘ (π¦) = ( ) = ( 0) + π ( 0 ) + π‘ ( 1 ) 4 − 2π − 3π‘ π§ 4 −2 −3 (b) to convert from parametric to scalar product form Method 1 π₯ −1 1 2 Example: π = (π¦) = (2) + π ( 3 ) + π‘ (3) π§ 4 5 1 → π₯ = 1 − π + 2π‘ π¦ = 2 + 3π + 3π‘ π§ = 4 + 5π + π‘ Then eliminate s and t to obtain an equation in π₯, π¦ & π§. 6 Method 2 −1 2 For the above example, create normal vector: ( 3 ) × (3) 5 1 π = |π π −1 3 5 2 3| = −12π + 11π − 9π 1 giving −12π₯ + 11π¦ − 9π§ = −12(1) + 11(2) − 9(4) = −26 (3) Angle between two direction vectors Example 1 To find the acute angle between the line with equation 2 −1 5 π = (3) + π (−2) and the plane with equation π. ( 1 ) = 1 4 1 −1 −1 5 The two direction vectors in this case are (−2) and ( 1 ) 1 −1 −1 1 5 5 Then (−2) . ( 1 ) = | 2 | | 1 | πππ π (*), 1 −1 −1 −1 so that πππ π = (−1)(5)+(−2)(1)+(1)(−1) √1+4+1√25+1+1 = −8 √162 = −0.62854 This gives π = 128.9° Whether π is acute or obtuse depends on the relative direction of the normal vector to the plane (π) and the direction vector of the line (π) - see the diagram below. 7 In this case, the angle we want (between the plane and the line) is πΌ in the diagram. Thus πΌ = 90 − (180 − 128.9) = 38.9° Example 2 If we need to find the angle between two planes, then the angle in question will be πΌ in the diagram below. This will be acute, so that we expect π to be obtuse (as π = 180 − πΌ). If one of the normals to the planes has its direction reversed, then we obtain an acute angle from the scalar product result (*), and this has to be converted to the required angle by subtracting from 180°. 8 (4) Perpendicular vectors (i) vector perpendicular to given (2D) vector Example 3 2 Given direction vector ( ): gradient is ; hence perpendicular 2 3 2 −3 gradient = − and perpendicular direction vector is ( ) or 3 2 3 ( ) −2 (ii) vector perpendicular to two given (3D) vectors Let given vectors be π and π Method 1 π×π Method 2 π₯ Let π = (π¦) be required vector. π§ Then eliminate two of π₯, π¦ & π§ from π. π = 0 and π. π = 0 (*) to give a direction vector in terms of parameter π₯, π¦ or π§. π₯ eg (2π₯ ) 3π₯ (note: form of eq'ns (*) ensures that π¦ and π§ will be multiples of π₯) 1 which is equivalent to the direction vector (2) 3 9 (5) Intersections (lines are 3D) (i) point of intersection of two lines Note: Lines may not have a point of intersection, if the equations are not consistent; in which case they are termed 'skew'. Example: intersection of π1 & π2 , π₯ 1 1 where π1 has equation π = (π¦) = (−6) + π (2) π§ −1 3 π₯ 9 2 and π2 has equation π = (π¦) = (7) + π ( 3 ) π§ 2 −1 π₯ 3 Eliminate π & π, to give (π¦) =(−2) π§ 5 (ii) point of intersection of a line and a plane 2 1 Example: π1 has equation π = (3) + π ( 2 ) ; 4 −1 5 plane has equation π. ( 1 ) = 1 −1 2 1 5 Then ((3) + π ( 2 )) . ( 1 ) = 1 creates a linear equation in π. 4 −1 −1 (It is possible that the line is either parallel to the plane or lies in the plane; in which case the term corresponding to 10 1 5 π ( 2 ) . ( 1 ) above will vanish, since the scalar product will be −1 −1 zero; then the remaining numbers will only be consistent if the 2 vector corresponding to (3) lies in the plane; ie if the scalar 4 2 5 product corresponding to (3) . ( 1 ) equals the right-hand side.) 4 −1 (iii) line of intersection of two planes Method 1 Starting with the equations of the planes in the form π. π = π, let π₯ π (eg) π₯ = π, to obtain (π¦) = (ππ + π); ie π¦ & π§ will be expressible π§ ππ + π as linear functions of π. Note that we are effectively choosing a point on the line which has π₯ coordinate 0 (and π¦ & π§ coordinates π & π). Example 2 covers an unusual case. Example 1 Planes 2π₯ + π§ = 3 & π₯ + π¦ − π§ = 2 Let π₯ = π, so that π§ = 3 − 2π and π¦ = 2 + (3 − 2π) − π = 5 − 3π So that the equation of the line of intersection of the planes is: 11 0 1 π = (5) + π (−3) 3 −2 Example 2 Planes 2π₯ + π§ = 4 & π₯ − π§ = −1 This implies that π₯ = 1, π§ = 2 and π¦ = π, so that the equation of the line of intersection of the planes is: 1 0 π = (π) + π (1) , where any value can be chosen for p 0 2 Method 2 The required line will be perpendicular to the normal vectors of both planes. Therefore the vector product of the normal vectors to the two planes has the direction vector of the required line. Using Example 1 above, with planes 2π₯ + π§ = 3 & π₯ + π¦ − π§ = 2, π 2 1 (0 ) × ( 1 ) = | π 1 −1 π 2 0 1 1 | = −π + 3π + 2π −1 1 In order to find the equation of the line, we just need a point on it; ie a point on both planes, so that 2π₯ + π§ = 3 & π₯ + π¦ − π§ = 2 eg let π§ = 0; then π₯ = 3 2 &π¦ = 1 2 3 and the equation of the line is π = 2 (1) 2 0 12 −1 +π( 3 ) 2 0 1 Note: This can be seen to be equivalent to π = (5) + π (−3) in 3 −2 Example 1, as follows: 3 Let 0 + 2π = 3 − 2π, so that π = − π 2 3 Then 2 (1) 2 0 −1 π + π ( 3 ) = (5 − 3π) 2 3 − 2π (6) Shortest distances (i) shortest distance from a point to a plane (See "Equation of a plane" to convert between the scalar product and parametric forms of the equation of a plane, if necessary.) Method 1 Example 1 1 Point, P is (2) ; plane has equation 4π₯ + 3π¦ − 12π§ = 26 (*) 3 The position vector of the point in the plane at the shortest distance from P is: 1 4 4 (2) + π ( 3 ) for some π (to be determined), as ( 3 ) is the 3 −12 −12 direction vector normal to the plane. Since this point lies in the plane, it satisfies (*); hence 4(1 + 4π) + 3(2 + 3π) − 12(3 − 12π) = 26 (**) giving π = 4 13 13 The shortest distance is the distance travelled from P to the plane, 4 4 4 4 along the direction vector ( 3 ); ie |( 3 )| = (13) = 4 13 13 −12 −12 Example 2 In the special case where P is the origin O (and the plane has equation 4π₯ + 3π¦ − 12π§ = 26 as before), (**) becomes 4(4π) + 3(3π) − 12(−12π) = 26 4 ie π|π| = 26, where π is the normal to the plane, ( 3 ) −12 2 As before, the shortest distance from O to the plane is π|π| = 26 |π| = 26 13 =2 Alternatively, if the equation of the plane is given in 'normalised' form (ie the direction vector has unit magnitude; the word 'normal' being used here in a different sense to that of the normal to a plane); ie 4 13 π₯+ 3 13 π¦− 12 13 π§ = 2, then the distance required is simply the right-hand side of the equation. Method 2 Using the above example, we can find the equation of the plane 1 parallel to 4π₯ + 3π¦ − 12π§ = 26 and passing through (2). 3 The equation of the parallel plane will be 14 4π₯ + 3π¦ − 12π§ = 4(1) + 3(2) − 12(3) ie 4π₯ + 3π¦ − 12π§ = −26 From the special case of the Origin in Method 1, the distance between the two planes (and hence between the point and the plane) is 26−(−26) √4 2 +32 +(−12)2 = 52 13 =4 Note: This method gives rise to the standard formula: π1 , as the shortest distance from the point (π2 ) √π1 2 +π2 2 +π3 2 π3 to the plane π1 π₯ + π2 π¦ + π3 π§ = π |π1 π1 +π2 π2 +π3 π3 −π| Method 3 1 Using the same example, where P is (2) and the plane has 3 equation 4π₯ + 3π¦ − 12π§ = 26 (*), we first of all find a point Q in the plane (as in the diagram above) and create the vector βββββ ππ The required distance will then be the projection of βββββ ππ onto π (the normal to the plane); namely 15 βββββ .π| |ππ |π| In this case, putting π¦ = π§ = 0 (say) in (*) gives π₯ = 13 13 2 , so that 11 2 2 π = ( 0 ) , and βββββ ππ = (−2) −3 0 βββββ . π = (11) (4) + (−2)(3) + (−3)(−12) = 52 Then ππ 2 and the shortest distance = 52 √4 2 +32 +(−12)2 = 52 13 =4 (ii) distance between two parallel planes Using the method for finding the shortest distance from the origin to a plane (method 1, example 2 of "shortest distance from a point to a plane"), the two planes need first of all to be put into normalised form; the constant term of each equation then gives the distance of the plane from the origin, so that the distance between the planes is then the difference between the constant terms. Example: Find the distance between the planes 3π₯ + 4π¦ + 12π§ = 13 and 3π₯ + 4π¦ + 12π§ = 39 As √32 + 42 + 122 = 13, the normalised equations are 1 13 (3π₯ + 4π¦ + 12π§) = 1 and 1 13 (3π₯ + 4π¦ + 12π§) = 3 so that the distance between the planes is 3 − 1 = 2 (iii) distance between parallel lines / shortest distance from a point to a line Assuming that A and B are given points on the two lines, and that π is the common direction vector: 16 Method 1 Let C be the point on π1 with parameter π, so that π = π + ππ (*) Then we require π. (π − π) = 0 Solving this equation for π and substituting for π in (*) gives π, and the distance between the two lines is then |π − π|. Example 1 3 −2 3 Let lines be π = (0) + π (−1) and π = (−1) + π (−1) 2 1 −1 1 1 −2 1 3 If π = (0) , π = (−1) and π = (0) + π (−1), 2 −1 2 1 1 + 3π + 2 3 then (−1) . ( −π + 1 ) = 0 → 9 + 9π + π − 1 + π + 3 = 0 1 2+π+1 → 11π + 11 = 0 → π = −1 −2 Hence π = ( 1 ) and the distance between the lines is 1 √(−2 + 2)2 + (1 + 1)2 + (1 + 1)2 = √8 17 Method 2 1 + 3π Having obtained the general point, πΆ = ( −π ) on π1 in 2+π Method 1, we can minimise the distance BC by finding the stationary point of either π΅πΆ or π΅πΆ 2 : π΅πΆ 2 = (1 + 3π + 2)2 + (−π + 1)2 + (2 + π + 1)2 = 11π 2 + 22π + 19 Then and π ππ π ππ (π΅πΆ 2 ) = 22π + 22 (π΅πΆ 2 ) = 0 ⇒ π = −1, as before Method 3 As π΅πΆ = π΄π΅π πππ, π΅πΆ = βββββ ×π| |π΄π΅ |π| −3 βββββ In the above example, π΄π΅ =(−1) and βββββ π΄π΅ × π = −3 π |π −3 −1 π −3 3 2 −1| = −4π − 6π + 6π = −2 ( 3 ) −3 1 Then π΅πΆ = 2√4+9+9 √9+1+1 = 2√22 √11 = √8 (iv) shortest distance between two skew lines Method 1 eg π1 : π = π + λπ & π2 : π = π + μπ ; A has position vector π etc 18 XY is shortest distance, as it is perpendicular to both π1 and π2 unit vector in direction of XY is π×π |π×π| AE = XY ; ∠πΆπΈπ΄ = 90° (as CE is in the plane of the 'back wall' of the cuboid - because C lies on π2 ) So AE is the projection of π − π onto the direction of XY; ie onto π×π |π×π| So XY = AE = |(π − π). (π×π) |π×π| | (the modulus sign ensuring that the distance is +ve) Note: This method can't be used to find the distance between two parallel lines, as |π × π| = 0, since π πππ = 0 19 Example 1a: To find the shortest distance between the lines 0 −1 7 2 π1 : π = (−2) + π ( 2 ) and π2 : π = ( 12 ) + π (−14) 0 −1 5 4 The direction normal to the two lines is π π × π = |π π 2 2 −1 7 −6 2 −14| = (−15) ; and we can take ( 5 ) instead −42 14 4 As √4 + 25 + 196 = 15, the unit vector in this direction is 2 (5) 15 14 1 0 −1 1 2 2 1 1 We then require ((−2) − ( 12 )) . ( 5 ) = (−14) . ( 5 ) 15 15 0 5 14 −5 14 = 1 15 (2 − 70 − 70) = − 138 15 =− so that the required distance is 46 5 46 5 or 9.2 Method 2 Find the vector perpendicular to both π and π , as in Method 1: π =π×π Then the equation of the plane with normal π , containing line π1 (ie the front face of the cuboid in Method 1) will be π. π = π. π Similarly the equation of the plane with normal π , containing line π2 (ie the back face of the cuboid) will be π. π = π. π 20 The distance between these two planes (ie XY) is obtained by first adjusting the equations of the planes, so that they are based on a normal vector of unit magnitude. π.π Thus |π| = π.π |π| Then ππ = | and π.π |π| − π.π |π| π.π |π| = π.π |π| | [See "Distance between two parallel planes"] [Note that this method is algebraically equivalent to method 1.] Example 1b (Lines as in 1a) 2 From Example 1a, |π| = ( 5 ) 15 14 π 1 Then the equations of the planes in which the front and back faces of the cuboid in method 1 lie are 1 15 (2π₯ + 5π¦ + 14π§) = and 1 15 1 15 [2(0) + 5(−2) + 14(0)] = − (2π₯ + 5π¦ + 14π§) = 1 15 10 15 [2(−1) + 5(12) + 14(5)] = 128 15 So the distance between the two planes, and hence between the two lines is = 128−(−10) 15 = 138 15 = 46 5 = 9.2 Method 3 Referring to the earlier diagram, suppose that X and Y have position vectors π = π + ππ π & π = π + ππ π respectively. Then, if π is the vector normal to both π and π, π + ππ π = π + ππ π + ππ (*) 21 (ie Y is reached by travelling first to X and then along XY) and XY will then = π|π| (*) gives 3 simultaneous equations in π, π & π: π1 + ππ π1 π1 + ππ π1 + ππ1 (π2 + ππ π2 ) = (π2 + ππ π2 + ππ2 ) , from which π can be found π3 + ππ π3 π3 + ππ π3 + ππ3 Example 1c: (Lines as in 1a) 2 From Example 1a, π = ( 5 ) 14 We need to find π such that −1 7 0 2 2 ( 12 ) + ππ (−14) = (−2) + ππ ( 2 ) + π ( 5 ) 5 4 0 −1 14 So 7ππ − 2ππ − 2π = 1 −14ππ − 2ππ − 5π = −14 4ππ + ππ − 14π = −5 ππ 1 7 −2 −2 or (−14 −2 −5 ) (ππ ) = (−14) π 4 1 −14 −5 . ππ 1 → (ππ ) = ( . 7(33) + 14(30) + 4(6) −6 π →π= 414 675 22 . . −15 . 1 . ) (−14) −42 −5 and ππ = 414 675 × √4 + 25 + 196 = 9.2 Method 4 As in method 3, suppose that X and Y have position vectors π = π + ππ π & π = π + ππ π respectively. βββββ = π + ππ π − (π + ππ π) Then ππ βββββ . π = ππ βββββ . π = 0 (*) and ππ Solving (*) enables ππ & ππ to be determined, βββββ | can be found from which |ππ Example 1d: (Lines as in 1a) −1 7 0 2 βββββ ππ = ( 12 ) + ππ (−14) − (−2) − ππ ( 2 ) 5 4 0 −1 −1 + 7ππ − 2ππ = (14 − 14ππ − 2ππ ) 5 + 4ππ + ππ −1 + 7ππ − 2ππ 2 Then (14 − 14ππ − 2ππ ) . ( 2 ) = 0 5 + 4ππ + ππ −1 −1 + 7ππ − 2ππ 7 and (14 − 14ππ − 2ππ ) . (−14) = 0 5 + 4ππ + ππ 4 → −2 + 14ππ − 4ππ + 28 − 28ππ − 4ππ − 5 − 4ππ − ππ = 0 23 and −7 + 49ππ − 14ππ − 196 + 196ππ + 28ππ + 20 + 16ππ + 4ππ =0 ie → 21 − 18ππ − 9ππ = 0 or 7 − 6ππ − 3ππ = 0 and −183 + 261ππ + 18ππ = 0 or −61 + 87ππ + 6ππ = 0 −6 −3 ππ −7 or ( ) (π ) = ( ) 61 87 6 π ππ 1 6 3 −7 → (π ) = ( )( ) −36+261 −87 −6 61 π = 1 225 ( 1 47 141 )= ( ) 75 81 243 −1 + 7ππ − 2ππ 92 1 Then βββββ ππ = (14 − 14ππ − 2ππ ) = (230) 75 5 + 4ππ + ππ 644 βββββ | = and |ππ 1 75 √476100 = 9.2 24