Lesson Explainer: Equation of a Straight Line in Space: Parametric Form | Nagwa Lesson Explainer: Equation of a Straight Line in Space: Parametric Form | Nagwa

Lesson Explainer: Equation of a Straight Line in Space: Parametric Form Mathematics • Third Year of Secondary School

Join Nagwa Classes

Attend live Mathematics sessions on Nagwa Classes to learn more about this topic from an expert teacher!

In this explainer, we will learn how to find the parametric equations of straight lines in space.

Let us remind ourselves first about the different forms of equations of a straight line in the π‘₯𝑦-plane (i.e., in two dimensions, 2D). The form 𝑦=π‘šπ‘₯+𝑏 gives us the slope π‘š and the 𝑦-intercept 𝑏. In other words, the direction vector of the line is ⃑𝑑=(1,π‘š) and the line goes through the point (0,𝑏).

From the form π‘¦βˆ’π‘¦=π‘š(π‘₯βˆ’π‘₯), we know that the direction vector of the line is ⃑𝑑=(1,π‘š) and that the point of coordinates (π‘₯,𝑦) is on the line.

And, finally, when the equation of the line is in the form π‘Žπ‘₯+𝑏𝑦+𝑐=0, we find that the direction vector of the line is ⃑𝑑=(βˆ’π‘,π‘Ž) (or (𝑏,βˆ’π‘Ž) or ο€»1,βˆ’π‘Žπ‘ο‡, etc.) and that the line passes through the point ο€»0,βˆ’π‘π‘ο‡, where 𝑏≠0.

Whatever the form of the equation, the two key pieces of information that define a line are its direction vector and one of its points. Let us see how the reasoning works in 2D before moving on to three dimensions (3D).

If we have a line of direction vector ⃑𝑑=(1,π‘š) that passes through two points 𝐴(π‘₯,𝑦) and 𝐡(π‘₯,𝑦), then vector 𝐴𝐡 with components (𝑝,π‘ž)=(π‘₯βˆ’π‘₯,π‘¦βˆ’π‘¦) is collinear with vector ⃑𝑑. In other words, 𝐴𝐡 is a scalar multiple of ⃑𝑑. Therefore, we have (𝑝,π‘ž)=π‘˜(1,π‘š), where π‘˜ is a real number.

From the above equation, we find that

π‘₯βˆ’π‘₯=π‘˜οŒ‘οŒ (1)

and

π‘¦βˆ’π‘¦=π‘˜π‘š.(2)

Substituting (1) into (2), we find that π‘¦βˆ’π‘¦=(π‘₯βˆ’π‘₯)π‘š.

Therefore, the slope π‘š of the line that goes through the points 𝐴 and 𝐡 is given by π‘š=π‘¦βˆ’π‘¦π‘₯βˆ’π‘₯=π‘žπ‘.

Let us now consider a line in space whose direction vector is ⃑𝑑=(𝑙,π‘š,𝑛) and that goes through the point (π‘₯,𝑦,𝑧). For any other point 𝑀(π‘₯,𝑦,𝑧) that lies on the line, 𝐴𝑀 and ⃑𝑑 are collinear; therefore, 𝐴𝑀=𝑑⃑𝑑, where 𝑑 is a real number. The figure below illustrates this vector equation, with 𝑀 being a point of the line such that 𝑑<0.

We can find the same equation by rewriting 𝐴𝑀 as 𝐴𝑂+𝑂𝑀 and, using the vector position for 𝑀, βƒ‘π‘Ÿ=𝑂𝑀 and that for 𝐴, ⃑𝐴=𝑂𝐴, we find that 𝐴𝑀=βƒ‘π‘Ÿβˆ’βƒ‘π΄=𝑑⃑𝑑; that is, βƒ‘π‘Ÿ=⃑𝐴+𝑑⃑𝑑; it is the equation of the line in vector form.

Considering the components of 𝐴𝑀 and ⃑𝑑, since 𝐴𝑀=𝑑⃑𝑑, we find (π‘₯βˆ’π‘₯,π‘¦βˆ’π‘¦,π‘§βˆ’π‘§)=𝑑(𝑙,π‘š,𝑛); that is, π‘₯=π‘₯+𝑑𝑙,𝑦=𝑦+π‘‘π‘š,𝑧=𝑧+𝑑𝑛.

If we let 𝑑 vary from βˆ’βˆž to +∞, the above three equations describe the coordinates of all the points on the line. They describe the coordinates of point 𝐴 when 𝑑=0.

This set of three equations is called the parametric equations of a straight line in space. Since there are infinitely many points that lie on the line and any vector (𝑙′,π‘šβ€²,𝑛′)=π‘˜(𝑙,π‘š,𝑛) is a direction vector of the line, there is not a unique set of parametric equations. However, they will all describe the coordinates of all the points on the line (as 𝑑 varies from βˆ’βˆž to +∞, there is no limitation!), and they all define unambiguously the same line.

Definition: Parametric Equations of a Straight Line in Space

The parametric equations of a line in space are a nonunique set of three equations of the form π‘₯=π‘₯+𝑑𝑙,𝑦=𝑦+π‘‘π‘š,𝑧=𝑧+𝑑𝑛. where (π‘₯,𝑦,𝑧) are the coordinates of a point that lies on the line, (𝑙,π‘š,𝑛) is a direction vector of the line, and 𝑑 is a real number (the parameter) that varies from βˆ’βˆž to +∞.

Let us look at the first example.

Example 1: Finding the Parametric Equation of a Line Given a Point and Its Direction Vector

Give the parametric equation of the line on point (2,βˆ’4,4), with direction vector (1,βˆ’1,5).

Answer

The parametric equations of a line are of the form π‘₯=π‘₯+𝑑𝑙,𝑦=𝑦+π‘‘π‘š,𝑧=𝑧+𝑑𝑛. where (π‘₯,𝑦,𝑧) are the coordinates of a point that lies on the line, (𝑙,π‘š,𝑛) is a direction vector of the line, and 𝑑 is a real number (the parameter) that varies from βˆ’βˆž to +∞.

Here, we know that (2,βˆ’4,4) lies on the line; therefore, we will substitute these coordinates into the equation for (π‘₯,𝑦,𝑧); the components of the direction vector are (1,βˆ’1,5), so we substitute these for (𝑙,π‘š,𝑛). We find π‘₯=2+𝑑,𝑦=βˆ’4βˆ’π‘‘,𝑧=4+5𝑑.

This is a parametric equation of the line on point (2,βˆ’4,4), with direction vector (1,βˆ’1,5).

It is worth noting that this set of equations that defines the line on point (2,βˆ’4,4), with direction vector (1,βˆ’1,5) is not unique. We could take, for instance, 2(1,βˆ’1,5)=(2,βˆ’2,10) as the direction vector of the line and find the parametric equations π‘₯=2+2𝑑,𝑦=βˆ’4βˆ’2𝑑,𝑧=4+10𝑑.

We could also find the coordinates of another point that lies on the line by choosing a value for 𝑑. With, for example, 𝑑=1, we find, using our first set of parametric equations, that the point of coordinates (3,βˆ’5,9) lies on the line. Using these coordinates gives another set of parametric equations; namely, π‘₯=3+𝑑,𝑦=βˆ’5βˆ’π‘‘,𝑧=9+5𝑑.

Let us now find the parametric equations of a line that passes through two given points.

Example 2: Finding the Parametric Equation of a Line Given Two Points

Write the equation of the straight line 𝐿 passing through the points 𝑃=(4,1,5) and 𝑃=(βˆ’2,1,3) in parametric form.

  1. π‘₯=βˆ’2βˆ’6𝑑, 𝑦=1, 𝑧=3+2𝑑, for βˆ’βˆž<𝑑<∞
  2. π‘₯=4βˆ’6𝑑, 𝑦=1, 𝑧=5βˆ’2𝑑, for βˆ’βˆž<𝑑<∞
  3. π‘₯=4+2𝑑, 𝑦=1+𝑑, 𝑧=5+3𝑑, for βˆ’βˆž<𝑑<∞
  4. π‘₯=βˆ’2+6𝑑, 𝑦=1+𝑑, 𝑧=3+2𝑑, for βˆ’βˆž<𝑑<∞
  5. π‘₯=6+4𝑑, 𝑦=1, 𝑧=5+2𝑑, for βˆ’βˆž<𝑑<∞

Answer

The parametric equations of a line are of the form π‘₯=π‘₯+𝑑𝑙,𝑦=𝑦+π‘‘π‘š,𝑧=𝑧+𝑑𝑛, where (π‘₯,𝑦,𝑧) are the coordinates of a point that lies on the line, (𝑙,π‘š,𝑛) is a direction vector of the line, and 𝑑 is a real number (the parameter) that varies from βˆ’βˆž to +∞.

Here, we are given two points that lie on the line. To find the components of a direction vector, we simply need to find the components of, for example, οƒ‘π‘ƒπ‘ƒοŠ§οŠ¨. They are ο€Ήπ‘₯βˆ’π‘₯,π‘¦βˆ’π‘¦,π‘§βˆ’π‘§ο…=(βˆ’6,0,βˆ’2).

We could now substitute the coordinates of either π‘ƒοŠ§ or π‘ƒοŠ¨ for (π‘₯,𝑦,𝑧) and the components (βˆ’6,0,βˆ’2) (or, e.g., (3,0,1)=βˆ’12(βˆ’6,0,βˆ’2)) for (𝑙,π‘š,𝑛).

Since we have here a limited choice of answers, we can start by identifying the components of the direction vectors used in each set of equationsβ€”they are given by the coefficients of 𝑑 in each equation:

  1. (βˆ’6,0,2)
  2. (βˆ’6,0,βˆ’2)
  3. (2,1,3)
  4. (6,1,2)
  5. (4,0,2)

We see that only answer B uses a correct direction vector. Let us now check that the coordinates (π‘₯,𝑦,𝑧) used in the equations in answer B are correctβ€”these are the constants in each equation, that is, the coordinates obtained when 𝑑=0. We find (4,1,5), that is, the coordinates of π‘ƒοŠ§. Hence, answer B is a correct set of parametric equations.

Note that the coordinates of (π‘₯,𝑦,𝑧) used in the equations could be those of neither π‘ƒοŠ§ nor π‘ƒοŠ¨, but the equations could still be correct. In this case, having found a direction vector of the line ((βˆ’6,0,βˆ’2)), we would have to check that the point π‘ƒοŒ  of coordinates (π‘₯,𝑦,𝑧) lies on the line. For this, we need to verify that the vector οƒ‘π‘ƒπ‘ƒοŒ οŠ§ (or οƒ‘π‘ƒπ‘ƒοŒ οŠ¨) is collinear with 𝑃𝑃=(βˆ’6,0,βˆ’2), that is, verify that 𝑃𝑃=π‘˜οƒ‘π‘ƒπ‘ƒ=π‘˜(βˆ’6,0,βˆ’2).

We see that it is equivalent to checking that there exists a value π‘˜ such that the coordinates of π‘ƒοŠ§ verify the parametric equations: π‘₯=π‘₯βˆ’6π‘˜,𝑦=𝑦,𝑧=π‘§βˆ’2π‘˜.

How can we find parametric equations of a line from its Cartesian equations? Remember that the Cartesian equations of a line in space are in the form π‘₯βˆ’π‘₯𝑙=π‘¦βˆ’π‘¦π‘š=π‘§βˆ’π‘§π‘›, where (π‘₯,𝑦,𝑧) are the coordinates of a point that lies on the line, and (𝑙,π‘š,𝑛) is a direction vector of the line where 𝑙, π‘š, and 𝑛 are all nonzero real numbers. This form of equations is closely related to the set of parametric equations since they simply give the three expressions for 𝑑 that we get from each of the parametric equations: 𝑑=π‘₯βˆ’π‘₯𝑙=π‘¦βˆ’π‘¦π‘š=π‘§βˆ’π‘§π‘›οŒ οŒ οŒ  is equivalent to π‘₯=π‘₯+𝑑𝑙,𝑦=𝑦+π‘‘π‘š,𝑧=𝑧+𝑑𝑛.

When one component of the direction vector is zero, it means that the corresponding coordinate of all the points lying on the line is constant. For instance, if the direction vector of a line is (𝑙,π‘š,0) and the point 𝐴(π‘₯,𝑦,𝑧) lies on the line, then the parametric equations of the line are π‘₯=π‘₯+𝑑𝑙,𝑦=𝑦+π‘‘π‘š,𝑧=𝑧.

The Cartesian equations of the line are then π‘₯βˆ’π‘₯𝑙=π‘¦βˆ’π‘¦π‘š,𝑧=𝑧.

The line is perpendicular to the 𝑧-axis and is in a plane parallel to the (π‘₯,𝑦)-plane.

If the direction vector is unidimensional, that is, two of its components are zero, then the line is parallel to one of the axes. For instance, if the line is parallel to the π‘₯-axis and passes through the point 𝐴(π‘₯,𝑦,𝑧), its parametric equations are π‘₯=𝑑,𝑦=𝑦,𝑧=𝑧, and its Cartesian equations would be 𝑦=π‘¦οŒ , 𝑧=π‘§οŒ . Compare this equation in 3D with the equation of a line in 2D that is parallel to the π‘₯-axis: 𝑦=π‘¦οŒ . The value of 𝑦 is the same for all points (𝑦) and nothing is said about the π‘₯-coordinate because it can take up any value; the set of the π‘₯ -coordinates of all points lying on the line is ℝ. It is the meaning of π‘₯=𝑑 as well when 𝑑 varies from βˆ’βˆž to +∞. Note that we could take as well π‘₯=π‘₯+π‘‘π‘™οŒ β€”all values of π‘₯ would describe ℝ as well when 𝑑 varies from βˆ’βˆž to +∞.

Let us practice converting Cartesian equations of a line into parametric equations.

Example 3: Finding the Parametric Equation of a Line Given Its Cartesian Equations

Find the parametric equations of the straight line 3π‘₯βˆ’7βˆ’9=8π‘¦βˆ’34=βˆ’8βˆ’6π‘§βˆ’9.

Answer

The Cartesian equations given here have been slightly rearranged from the standard form π‘₯βˆ’π‘₯𝑙=π‘¦βˆ’π‘¦π‘š=π‘§βˆ’π‘§π‘›οŒ οŒ οŒ . However, it does not matter, as we simply need to write that 3π‘₯βˆ’7βˆ’9=𝑑,8π‘¦βˆ’34=𝑑,βˆ’8βˆ’6π‘§βˆ’9=𝑑 to find a set of parametric equations by rearranging each equation. We find 3π‘₯βˆ’7βˆ’9=π‘‘βŸΊ3π‘₯βˆ’7=βˆ’9π‘‘βŸΊ3π‘₯=7βˆ’9π‘‘βŸΊπ‘₯=73βˆ’3𝑑,8π‘¦βˆ’34=π‘‘βŸΊ8π‘¦βˆ’3=4π‘‘βŸΊ8𝑦=3+4π‘‘βŸΊπ‘¦=38+12𝑑,βˆ’8βˆ’6π‘§βˆ’9=π‘‘βŸΊβˆ’8βˆ’6𝑧=βˆ’9π‘‘βŸΊβˆ’6𝑧=8βˆ’9π‘‘βŸΊπ‘§=βˆ’43+32𝑑.

Note that there is not a unique set of parametric equations as there is not a unique set of Cartesian equations of the same line either. Here, for instance, as we have found that the direction vector is ο€Όβˆ’3,12,32, we could have chosen to take (βˆ’6,1,3) to write our parametric equations. This is equivalent to taking as parameter 𝑑′=𝑑2 instead of 𝑑=3π‘₯βˆ’7βˆ’9=8π‘¦βˆ’34=βˆ’8βˆ’6π‘§βˆ’9, that is, having as Cartesian equations 3π‘₯βˆ’7βˆ’18=8π‘¦βˆ’38=βˆ’8βˆ’6π‘§βˆ’18(=𝑑′).

We will now look at a final example where we need to find the parametric equations of the diagonal of a cube.

Example 4: Finding the Parametric Equation of a Line in Two Steps

A cube of side length 3 sits with a vertex at the origin and three sides along the positive axes. Find the parametric equations of the main diagonal from the origin.

Answer

Let us start by drawing a diagram of the cube.

The main diagonal of the cube goes from the origin of coordinates (0,0,0) to the furthest vertex from that at the origin, namely, the point (3,3,3), since the side of the cube is 3 length units.

The line that contains the diagonal has therefore as direction vector the vector that goes from the origin to the point (3,3,3), that is, the vector of components (3,3,3)

The parametric equations of a line are of the form π‘₯=π‘₯+𝑑𝑙,𝑦=𝑦+π‘‘π‘š,𝑧=𝑧+𝑑𝑛, where (π‘₯,𝑦,𝑧) are the coordinates of a point that lies on the line, (𝑙,π‘š,𝑛) is a direction vector of the line, and 𝑑 is a real number (the parameter) that varies from βˆ’βˆž to +∞.

Taking here the origin (0,0,0) for the point that lies on the line, we find π‘₯=3𝑑,𝑦=3𝑑,𝑧=3𝑑.

Note that we could have taken the point (3,3,3) instead, leading to π‘₯=3+3𝑑,𝑦=3+3𝑑,𝑧=3+3𝑑.

Or we could have taken (1,1,1) as direction vector, leading to the simplest equations π‘₯=𝑑,𝑦=𝑑,𝑧=𝑑.

In short, any point on this line has equal π‘₯-, 𝑦-, and 𝑧-coordinates.

In the previous example, we could have limited the possible values for the parameter t to describe only the diagonal of the cube, that is, the line segment that goes from (0,0,0) to (3,3,3). With the equations π‘₯=3𝑑, 𝑦=3𝑑, 𝑧=3𝑑, it means that 0≀𝑑≀1. The range of 𝑑 depends on the equations used. If we take the parametric equations π‘₯=𝑑, 𝑦=𝑑, 𝑧=𝑑, then the range 0≀𝑑≀3 makes these equations describe the diagonal of the cube.

Key Points

  • The parametric equations of a line are a nonunique set of three equations of the form π‘₯=π‘₯+𝑑𝑙,𝑦=𝑦+π‘‘π‘š,𝑧=𝑧+𝑑𝑛, where (π‘₯,𝑦,𝑧) are the coordinates of a point that lies on the line, (𝑙,π‘š,𝑛) is a direction vector of the line, and 𝑑 is a real number (the parameter) that varies from βˆ’βˆž to +∞.
  • When 𝑙, π‘š, and 𝑛 are all nonzero real numbers, the parametric equations of a straight line can be derived from its Cartesian equations by writing 𝑑=π‘₯βˆ’π‘₯𝑙=π‘¦βˆ’π‘¦π‘š=π‘§βˆ’π‘§π‘›οŒ οŒ οŒ  and rearranging each of the three resulting equations.
  • When one component of the direction vector is zero, it means that the corresponding coordinates of all the points lying on the line are constant. For instance, if the direction vector of a line is (𝑙,π‘š,0) and the point 𝐴(π‘₯,𝑦,𝑧) lies on the line, then the parametric equations of the line are π‘₯=π‘₯+𝑑𝑙,𝑦=𝑦+π‘‘π‘š,𝑧=𝑧, and the Cartesian equations of the line are then π‘₯βˆ’π‘₯𝑙=π‘¦βˆ’π‘¦π‘š,𝑧=𝑧.
  • If two components of the direction vector are zero, the line is parallel to one axis, meaning that only one coordinate varies, while the other two are fixed. For instance, the parametric equations of a line parallel to the π‘₯-axis and passing through point 𝐴(π‘₯,𝑦,𝑧) are π‘₯=𝑑,𝑦=𝑦,𝑧=𝑧, and its Cartesian equations are 𝑦=π‘¦οŒ , 𝑧=π‘§οŒ .

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy