Line in space, all possible equations.

There are such forms of writing the equation of a line in space:

1) {A1x+B1y+C1z+D1=0(P1)A2x+B2y+C2z+D2=0(P2) the general equation of the line L in space, as the line of intersection of two planes P1 and P2.

Image

2) xx0m=yy0n=zz0p the canonical equation of the line L, which passes through the point M(x0,y0,z0) parallel to the vector S=(m,n,p). The vector S is the direction vector of the line L.

Image

3) xx1x2x1=yy1y2y1=zz1z2z1 the equation of the line that passes through two points A(x1,y1,z1) and B(x2,y2,z2).

4) By equating each of the parts of the canonical equation 2 to the parameter t, we obtain the parametric equation of the line:

{x=x0+mty=y0+ntz=z0+pt

The arrangement of two lines in space.

Let L1: xx1m1=yy1n1=zz1p1 and S1=(m1,n1,p1);

L2: xx2m2=yy2n2=zz2p2, and S2=(m2,n2,p2).

Condition for parallelism of two lines: Lines L1 and L2 are parallel if and only if S1S2 m1m2=n1n2=p1p2.

Condition for perpendicularity of two lines: L1L2 S1S2 m1m2+n1n2+p1p2=0.

Angle between lines:

cos(L1,L2)^= S1S2|S1||S2|=m1m2+n1n2+p1p2m12+n12+p12m22+n22+p22.

Image

The distance from a point to a line is equal to the length of the perpendicular dropped from the point to the given line.

Let the line L be defined by the equation xx0m=yy0n=zz0p, hence S=(m,n,p). Let also M2=(x2,y2,z2) be an arbitrary point belonging to the line L. Then the distance from the point M1=(x1,y1,z1) to the line L can be found using the formula:

d(M1,L)=|[M1M2,S]||S|.

Image

Examples.

1. Write the canonical equation of the line passing through the point M0(2,0,3) parallel to:

a) the vector q(2,3,5);

The canonical form of the line is given by x22=y03=z+35.

b) the line x15=y+22=z+11;

Since the line is parallel, it has the same direction ratios. The canonical equation is x25=y02=z+31.

c) the OX axis;

The direction vector of OX is (1,0,0). The canonical equation is x21=y00=z+30 (noting that division by zero indicates the component is absent).

d) the line {3xy+2z7=0,x+3y2z3=0;

First, find the direction vector by crossing the normal vectors of the planes. The canonical equation can then be formed using this direction vector and the point M0.

e) the line x=2+t,y=2t,z=112t.

The direction vector can be taken from the coefficients of t, which are (1,2,12). The canonical equation is x21=y02=z+312.

Solution.

a) Let's use formula (2) for the equation of a line in space:

xx0m=yy0n=zz0p the canonical equation of the line L, which passes through the point M(x0,y0,z0) parallel to the vector S=(m,n,p).

Given M0(2,0,3) and S=q(2,3,5), the equation becomes x22=y03=z+35x22=y3=z+35.

Answer: x22=y3=z+35.

b) A line parallel to another line should have the same direction vector. The direction vector for the line x15=y+22=z+11 is S(5,2,1). Using this for the line through M0(2,0,3) gives x25=y2=z+31.

Answer: x25=y2=z+31.

c) The OX axis has a direction vector i=(1,0,0). Thus, the equation of the line through M0(2,0,3) parallel to i(1,0,0) is x21=y0=z+30.

Answer: x21=y0=z+30.

d) The line defined by the intersection of two planes is perpendicular to the normals of both planes. Hence, the direction vector of the line {3xy+2z7=0,x+3y2z3=0; can be found as the cross product of the normal vectors of the given planes.

Image

For P1: 3xy+2z7=0, the normal vector is N1(3,1,2);

For P2: x+3y2z3=0, the normal vector is N2(1,3,2).

Calculate the cross product:

[N1,N2]=|ijk312132|=i(26)j(62)+k(9+1)=4i+8j+10k.

Hence, the direction vector S(4,8,10) gives the line equation through M0(2,0,3) as x24=y8=z+310.

Answer: x24=y8=z+310.

e) Let's find the direction vector of the line x=2+t,y=2t,z=112t. To do this, we'll express the line's equation in canonical form:

{x=2+t,y=2t,z=112t {t=x+2,t=y2,t=z112 x+21=y2=z112.

From this, we find the direction vector S(1,2,12). To eliminate the fraction, we can multiply the components of the direction vector by 2: S1(2,4,1).

Next, we need to find the equation of the line passing through the point M0(2,0,3) parallel to the vector S(2,4,1):

x22=y04=z+31x22=y4=z+31.

Answer: x22=y4=z+31.

2. Write the equation of the line passing through two given points M1(1,2,1) and M2(3,1,1).

Solution.

We will use formula (3) for the line equation in space:

xx1x2x1=yy1y2y1=zz1z2z1 the equation of the line passing through two points A(x1,y1,z1) and B(x2,y2,z2).

Substitute the given points:

x131=y+21+2=z111 x12=y+23=z12.

Answer: x12=y+23=z12.

3. Find the distance between parallel lines

x23=y+14=z2 and x73=y14=z32.

Solution.

The distance between parallel lines L1 and L2 is equal to the distance from any point on line L1 to line L2. Therefore, it can be found using the formula d(L1,L2)=d(M1,L2)=|[M1M2,S]||S|, where M1 is an arbitrary point on line L1, M2 is an arbitrary point on line L2, and S is the direction vector of line L2.

From the canonical equations of the lines, we take points M1=(2,1,0)L1, M2=(7,1,3)L2, and S=(3,4,2).

From here, we find M1M2=(72,1+1,30)=(5,2,3);

[M1M2,S]=|ijk523342|=i(412)j(109)+k(206)= =8ij+14k.

|[M1M2,S]|=82+12+142=64+1+196=261=929=329.

|S|=32+42+22=9+16+4=29

d(L1,L2)=|[M1M2,S]||S|=32929=3.

Answer: 3.

4. Find the distance from the point A(2,3,1) to the given line L:

{2x2y+z+3=0,3x2y+2z+17=0

Solution.

To find the distance from point A to line L, we need to choose an arbitrary point M on line L and find the direction vector of this line.

Let's choose point M. Assume z=0. Substitute this value into the system:

{2x2y+0+3=0,3x2y+0+17=0 {2x2y+3=0,3x2y+17=0 {x+14=0,2x2y+3=0 {x=14,282y+3=0 {x=14,y=252.

Thus, M=(14,252,0)

The direction vector is found as the cross product of the normals to the given planes:

For the plane P1:2x2y+z+3=0 the normal vector has coordinates N1(2,2,1);

for the plane P2:3x2y+2z+17=0, the normal vector has coordinates N2(3,2,2).

We find the cross product:

[N1,N2]=|ijk 221 322|=i(4+2)j(43)+k(4+6)=2ij+2k.

Thus, the direction vector for the line {2x2y+z+3=0,3x2y+2z+17=0 has coordinates S(2,1,2).

Now we can use the formula d(A,L)=|[AM,S]||S|.

AM=(2(14),3(252),10)=(16,1512,1)

[AM,S]=|ijk1615,51212|=i(311)j(322)+k(16+31)= =30i30j+15k.

|[AM,S]|=302+302+152=900+900+225=2025=45.

|S|=22+12+22=4+1+4=3

d(A,L)=|[AM,S]||S|=453=15.

Answer: The distance from point A to line L is 15.

5. Write the canonical equation of the line passing through the point M0(3,2,4), parallel to the plane P: 3x2y3z7=0, and intersecting the line L: x23=y+42=z12.

Solution:

Let's write the equation of the plane P1 passing through the point M0(3,2,4) parallel to the plane 3x2y3z7=0:

P:3x2y3z7=0N=(3;2;3). The desired plane passes through the point M0(3,2,4) perpendicular to the vector N(3,2,3).

P1:3(x3)2(y+2)3(z+4)=0

P1:3x92y43z12=0

P1:3x2y3z25=0.

Further, let's find the point of intersection of the plane P1 and the line L. To do this, we'll write the equation of the line L in parametric form:

L:x23=y+42=z12=t

{x=3t+2,y=2t4,z=2t+1.

Next, we'll substitute the values of x,y, and z expressed in terms of t into the equation of the plane P1, and from the resulting equation, we'll solve for t:

3x2y3z25=0

3(3t+2)2(2t4)3(2t+1)25=0

9t+6+4t+86t325=0

7t14=0

t=147=2

Substituting the found value of t into the equation of the line L, we find the coordinates of the point of intersection:

{x=3t+2,y=2t4,z=2t+1. {x=6+2=8,y=44=8,z=4+1=5.

Thus, the line L and the plane P1 intersect at the point M1(8,8,5).

Now, let's write the equation of the line passing through the points M0(3,2,4) and M1(8,8,5)-- this will be the desired line. We'll use formula (3) xx1x2x1=yy1y2y1=zz1z2z1:

x383=y+28+2=z+45+4 x35=y+26=z+49.

Answer: x35=y+26=z+49.

Homework:

1.

b) Write the equation of the line passing through two given points M1(3,1,0) and M2(1,0,3).

Answer: x32=y+11=z3.

2.

b) Find the distance from the point A(2,3,1) to the given line L: {x=3t+5,y=2t,z=2t25.

Answer: 21.

3. Prove that the lines L1:{2x+2yz10=0,xyz22=0, and L2:x+73=y51=z94. are parallel and find the distance ρ(L1,L2)

Answer: 25.

4. Write the equations of the line passing through the intersection points of the plane x3y+2z+1=0 with the lines x55=y+12=z31 and x34=y+46=z52.

Answer: x+17=y21=z35.

5. Write the equation of the line passing through the point M0(7,1,0) parallel to the plane 2x+3yz15=0 and intersecting the line x1=y14=z32.

Answer: x767=y128=z70.

Tags: Angle between lines, canonical equation of the line, distance, line in space