Topic: Vectors equation of line in 3D, Distance from a point to a line in 3D Food for thought • What is π₯-intercept? • What is π¦-intercept? Line in 2D (plane) and in 3D (Space) A Line in plane (2D): A line in the ππ-plane is determined when π-coordinate of a point (that is yintercept) on the line and the direction of the line (its slope or angle of inclination) are given. The equation of the line can then be written using the point-slope form. Recall: Point-slope form: For any point (ππ , ππ ) on the line having slope π is given by the equation π − ππ = π(π − ππ ) If we fix the point, to be any point on the π-axis (π-intercept), then ππ = π and ππ = π, ∀ π ∈ β and above equation becomes π − π = ππ or π = ππ + π A Line in a Space (3D): A line π³ in three-dimensional space is determined when we know a point π·π (ππ , ππ , ππ ) on π³ and the direction of line π³. In three dimensions, the direction β be a vector parallel to of a line is conveniently described by a vector, so we let π the line π³. Vector Equation for a Line in space: Let π·(π, π, π) be an arbitrary point on π³ and ββββπ and π β be the position vectors of π·π and let π π’ β π· (that is, they have representations ββββββββ πΆπ·π and ββββββ β is the vector with representation πΆπ·). If π ββββββββ π·π π·, as in Figure 1, then the Triangle Law for vector addition gives Figure 1 β =π ββββπ + π β π β and π β are parallel vectors, there is a scalar π ∈ (−∞, +∞) such that But, since π β = ππ β . Thus π β =π ββββπ + ππ β _____________(π) π which is a vector equation of a line π³. Each value of the parameter π gives the β of a point on π³. In other position vector π words, as π varies, the line is traced out by β . As Figure 2 the tip of the vector π indicates, positive values of π correspond to points on π³ that lie on one side of π·π . Figure 2 β that gives the direction of the line π³ is written in component form as If the vector π β =< π, π, π >, then we have ππ β =< ππ, ππ, ππ >. π β =< π, π, π >and π ββββπ =< ππ , ππ , ππ >, so the vector equation We can also write π becomes < π, π, π > = < ππ + ππ, ππ + ππ, ππ + ππ > Two vectors are equal if and only if corresponding components are equal. Therefore, we have the three scalar equations: π = ππ + ππ, π = ππ + ππ, π = ππ + ππ _________________________(π) where π ∈ β. These equations are called parametric equations of the line π³ through the point π·π (ππ , ππ , ππ ) and parallel to the vector βπ =< π, π, π >. Each value of the parameter π gives a point (π, π, π) on π³. Parametric Equation for a Line in space Parametric equations for a line through the point π·π (ππ , ππ , ππ ) and parallel to β =< π, π, π > are the direction vector π π = ππ + ππ π = ππ + ππ π = ππ + ππ Note: β and π β are parallel if π β =ππ β , where π is scalar. We understand it Two vectors π with the help of an example given below. β = < π, π, π > π β = < π, π, π > π Then β = π < π, π, π > π β = ππ β π β &π β are parallel. This implies that π Example 1: Find parametric equation & vector equation for the line through the point (−π, π, π) and parallel to the vector β β = ππ + ππ − ππ π Solution: Since the given point is π = (π₯0 , π¦0 , π§0 ) = (−2,0,4) and the vector is β = π£1 π + π£2 π + π£3 π β = 2π + 4π − 2π β π£ = aπ + bπ + cπ Here we have π₯0 = −2, π = 2, π¦0 = 0, π = 4, π§0 = 4 π = −2 Parametric equation of line in space: π₯ = π₯π + π‘π = −2 + 2π‘ π¦ = π¦π + π‘π = 0 + 4π‘ = 4π‘ π§ = π§π + π‘π = 4 − 2π‘ That is, π₯ = −2 + 2π‘ π¦ = 4π‘ π§ = 4 − 2π‘ where −∞ < π < ∞. Vector Equation of Line in space: π = π0 + π‘ π£ β = (−2π + 0π + 4π β ) + π‘ (2π + 4π − 2π β ) ; −∞ < π‘ < ∞ π₯π + π¦π + π§π β = (−2βπ + 0βπ + 4βββπ) + (2π‘ π + 4π‘ π − 2π‘ π β) π₯π + π¦π + π§π β = (−2 + 2π‘) π + (0 + 4π‘)π + (4 − 2π‘) π β π₯π + π¦π + π§π β = (−2 + 2π‘) π + (4π‘)π + (4 − 2π‘) π β π₯π + π¦π + π§π Example 2: Find the parametric equation of the line passing through origin and parallel to the vector π£ = 2πΜ + πΜ Solution: Given that Origin= π = (0,0,0) = π(π₯0 , π¦0 , π§0 ) π£ = 0πΜ + 2πΜ + πΜ = ππΜ + ππΜ + ππΜ Then the parametric equations of line are π₯ = π₯0 + ππ‘ = 0 + 0π‘ = 0 π¦ = π¦0 + ππ‘ = 0 + 2π‘ = 2π‘ π§ = π§0 + ππ‘ = 0 + π‘ = π‘ Then the required parametric equations are π=π π = ππ π=π Example 3: Find the parametric equation and vector equation of the line through π·(−π, π, −π) and πΈ(π, −π, π). Solution: π = (π₯0 , π¦0 , π§0 ) = (−3,2, −3) π = (π₯1 , π¦1 , π§1 ) = (1, −1,4) The vector parallel to line is βββββ =< π₯1 − π₯0 , π£ = ππ π¦1 − π¦0 , π§1 − π§0 > βββββ =< 1 − (−3), π£ = ππ −1 − 2, 4 − (−3) > βββββ =< 4, −3, 7 > =< π, π, π > π£ = ππ We can write the vector in standard form as β = ππ − ππ + ππ β β = ππ + ππ + ππ π Parametric equation of a line in space: π₯ = π₯π + π‘ π£1 = −3 + 4π‘ π¦ = π¦π + π‘ π£2 = 2 − 3π‘ π§ = π§π + π‘ π£3 = −3 + 7π‘ where −∞ < π‘ < ∞. Vector equation for a line in space: π₯π + π¦π + π§π = (−3π + 2π − 3π) + π‘ (4π − 3π + 7π) , −∞ < π‘ < ∞ π₯π + π¦π + π§π = (−3π + 2π − 3π) + (4π‘ π − 3π‘ π + 7π‘ π) ππ + ππ + ππ = (−π + ππ) π + (π − ππ)π + (−π + ππ)π Do yourself Exercise 12.5 (Textbook: Thomas Calculus 11th Edition): Q # 1 to 20. Example 4: Find the parametric equation of the line passing through the point (3, −2,1) and parallel to the line having parametric equations π₯ = 1 + 2π‘ π¦ =2−π‘ π§ = 3π‘ Solution: Since we have given the parametric equations as π₯ = 1 + 2π‘ = π₯0 + ππ‘ π¦ = 2 − π‘ = π¦0 + ππ‘ π§ = 0 + 3π‘ = π§0 + ππ‘ This implies that π = 2, π = −1, π=3 which are the components of a vector π, given as π =< π, π, π >=< π, −π, π > The given point is π = (3, −2,1) = π(π₯0 , π¦0 , π§0 ) π =< π, π, π ≥< π, −π, π > That is, π₯0 = 3, π¦0 = −2, π§0 = 1 π = 2, π = −1, π=3 Then the parametric equation of the line passing through the point π(3, −2,1) and parallel to the line with the given parametric equations are given below: π₯ = π₯0 + ππ‘ π¦ = π¦0 + ππ‘ π§ = π§0 + ππ‘ Putting the values, we have π = π + ππ π = −π − π π = π + ππ which are the required parametric equations of the line. Example 5: Find the parametric equations of the line passing through the point (2, 3, 0), and perpendicular to the vectors π’ β = πΜ + 2πΜ + 3πΜ and π£ = 3πΜ + 4πΜ + 5πΜ. Solution: Since the line is perpendicular to the vectors π’ β and π£, therefore using the cross product, we have πΜ πΜ πΜ π’ β × π£ = |1 2 3 | 3 4 5 π’ β × π£ = πΜ(10 − 12) − πΜ(5 − 9) + πΜ(4 − 6) π’ β × π£ = −2πΜ + 4πΜ − 2πΜ = ππΜ + ππΜ − ππΜ The given point is π = (2,3,0) = π(π₯0 , π¦0 , π§0 ) Then the parametric equations of line are π₯ = π₯0 + ππ‘ = 2 − 2π‘ π¦ = π¦0 + ππ‘ = 3 + 4π‘ π§ = π§0 + ππ‘ = 0 − 2π‘ Then the required parametric equations are π₯ = 2 − 2π‘ π¦ = 3 + 4π‘ π§ = −2π‘ Practice questions: (Textbook: Thomas Calculus 11th Edition) Ex. 12.5: 1-7, 10. Parameterization of a Line segment Example: Parameterize the line segment joining the points π· (−π, π, −π) and πΈ (π, −π, π). Solution: First of all, we will find the parametric equation of the line through the points π· (−π, π, −π) and πΈ (π, −π, π) and then restrict the domain of parameter π to obtain the parametric equation of the line segment from π· to πΈ. Step 1: (Equation of line) βββββ = (1 + 3)πΜ + (−1 − 2)πΜ + (4 + 3)πΜ π£ = ππ Μ = ππΜ + ππΜ + ππ Μ β = ππΜ − ππΜ + ππ π Let us consider the point π· (−π, π, −π) = π·(ππ , ππ , ππ ). (NOTE: We can also consider point Q here). Then the parametric equations of line are π = ππ + ππ = −π + ππ π = ππ + ππ = π − ππ π = ππ + ππ = −π + ππ Step 2: (Line segment) In order to find the value of π‘ for which an arbitrary point (π, π, π) of the line is at π· (−π, π, −π), we solve the equation −3 = −3 + 4π‘ }⇒π‘=0 2 = 2 − 3π‘ −3 = −3 + 7π‘ Similarly, when (π, π, π) is at πΈ (π, −π, π), we solve 1 = −3 + 4π‘ −1 = 2 − 3π‘} ⇒ π‘ = 1 4 = −3 + 7π‘ So, the parametric equation of the line segment is π₯ = −3 + 4π‘ π¦ = 2 − 3π‘ π§ = −3 + 7π‘; 0≤π‘≤1 Question 19: Find the parametric equations of the line segment joining the points π·(−π, π, π) and πΈ(π, π, π). Practice Questions (Textbook: Thomas Calculus 11th Edition) Ex. 12.5: 13-20. The Distance from a Point to a Line in Space β be a vector parallel Let π³ be a line and let π β ||π³. to the line π³. This means that π Let π·π be a point in space from which we need to measure the distance to the line π³, i.e., we need to measure the distance between π·π and π³. We consider an arbitrary point π·π on the line π³ assuming it might give us a distance from the point π·π . β π and π β π respectively from Considering π·π and π·π , we draw their position vectors π the origin. β at an angle π½ from π·π to π·π such that by head to tail rule we We draw a vector π have, βπ+π β =π βπ π This implies that β = βππ − βππ . π Now logically the shortest distance of a point from a line is the length of the perpendicular drawn from the point to the line. Let us consider a point π·π on the line π³, such that π·π π·π is perpendicular to the line Μ Μ Μ Μ Μ Μ Μ π³. i.e., π·π π·π ⊥ π³. We say that π· π π·π = π . Distance is a scalar quantity. From the figure, we can write πππ π½ = π·ππππππ ππππππ π = π―πππππππππ ββββπ − π ββββπ | |π πππ π½ = π β| |π |π β | πππ π½ = π β | πππ π½ π = |π β and π β . π·π π·π ⊥ π³ and π β ||π³ implies that π·π π·π ⊥ π β. Here π½ is the angle between π β and π β , we have Now considering π β × π β = |π β | |π β | π¬π’π§ π½ π We can rearrange as β × π β = |π β ||π β | πππ π½ π β |πππ π½ We know π = |π β × π β = |π β |π π or β × π β = π |π β| π Since distance is a scalar quantity thus, we need to take the magnitude of the cross product to balance the equation. |π β ×π β | = π |π β| |π β ×π β| =π |π β| This implies that the distance between the line π³ and a point can be computed by the formula, π= |π β ×π β| |π β| β =π ββββπ − π ββββπ Where π Example: Find the distance from the point π·π (π, π, π) to the line: π=π+π π³: {π = π − π π = ππ Solution: Since the given point is π·π (ππ , ππ , ππ ) = π·π (π, π, π). And the given parametric equations of line are π = ππ + ππ = π + π π = ππ + ππ = π − π π = ππ + ππ = π + ππ β =< π, π, π > =< π, −π, π >. This means that π·π (ππ , ππ , ππ ) = π·π (π, π, π) and π Thus, the vector parallel to the line π³ is Μ β = πΜ − πΜ + ππ π The Line passes through the point π·π (π, π, π) π’ β = ββββββββ π0 π1 = βββββββ ππ1 − βββββββ ππ0 π’ β = ββββββββ π0 π1 = (πΜ + πΜ + 5πΜ) − (πΜ + 3πΜ + 0 Μπ) π’ β = (1 − 1)πΜ + (1 − 3)πΜ + (5 − 0)πΜ π’ β = 0πΜ − 2πΜ + 5πΜ. Now, πΜ πΜ πΜ π’ β × π£ = |0 −2 5| 1 −1 2 π’ β × π£ = πΜ | 0 −2 −2 5 0 5 | − πΜ | | + πΜ | | 1 −1 −1 2 1 2 π’ β × π£ = πΜ(−4 + 5) − πΜ(0 − 5) + πΜ(0 + 2) π’ β × π£ = πΜ + 5πΜ + 2πΜ β ×π β , we have Taking magnitude of π |π’ β × π£| = √(1)2 + (5)2 + (2)2 |π’ β × π£| = √30 β , we have Similarly, taking magnitude of vector π |π£| = √(1)2 + (−1)2 + (2)2 = √6 Now, apply the formula, we have π= |π’ β × π£| |π£ | Putting values, we have π= √30 √6 =√ 30 = √5 6 π = √5 = 2.24 Hence the distance of a point π·π to the line π³ is 2.24 units. Practice Questions: Textbook: Thomas Calculus 11th Edition Ex. 12.5: 33-38