Linear AlgebraDot and Cross Products4 of 5
Dot and Cross Products · 4

Lines and Planes

We need a way to capture all the points on a line or a plane in a single short equation.

1

Parametric Form of a Line

A line in 2D or 3D is traced out by picking one point on the line to start at and taking steps forward or backward along the line's direction.

Parametric Form of a Line
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
(1,3)(1, 3)
(5,5)(5, 5)
[xy]=  ?\begin{bmatrix} x \\ y \end{bmatrix} = \;?
Text solution
Subtract the two points to find the step directionStepping from (1,3)(1, 3) to (5,5)(5, 5) gives the direction vector running along the line.
d\displaystyle \stepone{\mathbf{d}} =⟨5−1,5−3⟩\displaystyle = \langle 5 - 1, 5 - 3 \rangle =⟨4,2⟩\displaystyle = \stepone{\langle 4, 2 \rangle}
Add t\stepone{t} steps in that direction to the starting pointMultiplying the direction vector by the parameter t\stepone{t} reaches every point on the line from (1,3)(1, 3).
⟨x,y⟩\displaystyle \langle x, y \rangle =⟨1,3⟩⏟starting point+t⏟parameter⟨4,2⟩⏟direction\displaystyle = \underbrace{\langle 1, 3 \rangle}_{\text{starting point}} + \underbrace{\stepone{t}}_{\stepone{\text{parameter}}}\underbrace{\stepone{\langle 4, 2 \rangle}}_{\stepone{\text{direction}}}
Include the third coordinate for a line in 3DFor the line through (1,3,0)(1, 3, 0) and (5,5,−2)(5, 5, -2), the step from the first point to the second is ⟨5−1,5−3,−2−0⟩=⟨4,2,−2⟩\langle 5 - 1, 5 - 3, -2 - 0 \rangle = \stepone{\langle 4, 2, -2 \rangle}.
⟨x,y,z⟩\displaystyle \langle x, y, z \rangle =⟨1,3,0⟩+t⟨4,2,−2⟩\displaystyle = \langle 1, 3, 0 \rangle + \stepone{t\langle 4, 2, -2 \rangle}
2

Parametric Form of a Plane

A single direction vector only lets us walk back and forth along a line. To sweep out a flat plane in 3D space, we start at one point on the plane and take steps in two independent directions.

Parametric Form of a Plane
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
z\htmlClass{lc-mute}{z}
AA
BB
CC
A=(1,0,2)B=(3,1,2)C=(1,4,5)\begin{aligned} A &= (1, 0, 2) \\ B &= (3, 1, 2) \\ C &= (1, 4, 5) \end{aligned}
plane=  ?\text{plane} = \;?
Text solution
Subtract the starting point AA from BB and CC to get two step directionsStarting both arrows at A=(1,0,2)A = (1, 0, 2) gives two independent vectors that lie flat in the plane.
u=B−A=⟨3−1,1−0,2−2⟩=⟨2,1,0⟩v=C−A=⟨1−1,4−0,5−2⟩=⟨0,4,3⟩\displaystyle \begin{aligned} \stepone{\mathbf{u}} &= B - A = \langle 3 - 1, 1 - 0, 2 - 2 \rangle \\ &= \stepone{\langle 2, 1, 0 \rangle} \\[4pt] \steptwo{\mathbf{v}} &= C - A = \langle 1 - 1, 4 - 0, 5 - 2 \rangle \\ &= \steptwo{\langle 0, 4, 3 \rangle} \end{aligned}
Combine the starting point with both step directionsTurning the two independent dials s\stepone{s} and t\steptwo{t} reaches every point on the plane.
⟨x,y,z⟩\displaystyle \langle x, y, z \rangle =⟨1,0,2⟩⏟starting point+s⟨2,1,0⟩⏟first direction u+t⟨0,4,3⟩⏟second direction v\displaystyle = \underbrace{\langle 1, 0, 2 \rangle}_{\text{starting point}} + \stepone{s}\underbrace{\stepone{\langle 2, 1, 0 \rangle}}_{\stepone{\text{first direction } \mathbf{u}}} + \steptwo{t}\underbrace{\steptwo{\langle 0, 4, 3 \rangle}}_{\steptwo{\text{second direction } \mathbf{v}}}

Two step vectors u\stepone{\mathbf{u}} and v\steptwo{\mathbf{v}} sweep out a full plane through the starting point whenever they point in independent directions, but they only trace out a single line if v\steptwo{\mathbf{v}} lines up with u\stepone{\mathbf{u}}.

Two step vectors from the starting point sweep out a plane whenever they point in independent directions, and collapse into a single line whenever one lines up with the other.
3

Normal Form of a Line in 2D

Checking whether a point like (7,11,8)(7, 11, 8) lies on a parametric plane means solving three equations for s\stepone{s} and t\steptwo{t} at once. To test a point in a single step, we build an equation using a normal vector n\normalvec{\mathbf{n}}: a vector that sticks straight out of the line or plane at a 90∘90^\circ angle.

Normal Form of a Line in 2D
[xyz]=[102]+s[210]+t[043]\begin{bmatrix} x \\ y \\ z \end{bmatrix} = \begin{bmatrix} 1 \\ 0 \\ 2 \end{bmatrix} + \htmlClass{lc-green}{s}\htmlClass{lc-green}{\begin{bmatrix} 2 \\ 1 \\ 0 \end{bmatrix}} + \htmlClass{lc-pink}{t}\htmlClass{lc-pink}{\begin{bmatrix} 0 \\ 4 \\ 3 \end{bmatrix}}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
z\htmlClass{lc-mute}{z}
AA
u\htmlClass{lc-green}{\mathbf{u}}
v\htmlClass{lc-pink}{\mathbf{v}}
(7,11,8)  ?(7, 11, 8)\;?
Text solution
Set the dot product of the normal vector and the arrow along the line to zeroFor X=(x,y)X = (x, y) to sit on the line through P=(1,3)P = (1, 3), the arrow ⟨x−1,y−3⟩\stepone{\langle x - 1, y - 3 \rangle} along the line must be perpendicular to n=⟨2,5⟩\normalvec{\mathbf{n}} = \normalvec{\langle 2, 5 \rangle}.
⟨2,5⟩⋅⟨x−1,y−3⟩\displaystyle \normalvec{\langle 2, 5 \rangle} \cdot \stepone{\langle x - 1, y - 3 \rangle} =0\displaystyle = 0
Use n\normalvec{\mathbf{n}} for the left-hand coefficients and plug the starting point into the rightDistributing the dot product puts (x,y)(x, y) on the left and the starting point (1,3)(1, 3) on the right.
⟨2,5⟩⋅⟨x,y⟩⏟n⋅x=⟨2,5⟩⋅⟨1,3⟩⏟n⋅p2x+5y=2(1)+5(3)2x+5y=17\displaystyle \begin{aligned} \underbrace{\normalvec{\langle 2, 5 \rangle} \cdot \langle x, y \rangle}_{\normalvec{\mathbf{n}} \cdot \mathbf{x}} &= \underbrace{\normalvec{\langle 2, 5 \rangle} \cdot \langle 1, 3 \rangle}_{\normalvec{\mathbf{n}} \cdot \mathbf{p}} \\ \normalvec{2}x + \normalvec{5}y &= \normalvec{2}(1) + \normalvec{5}(3) \\ \normalvec{2}x + \normalvec{5}y &= 17 \end{aligned}

As a test point X=(x,y)X = (x, y) moves around the flat 2D grid, the arrow from PP to XX is 90∘90^\circ to n\normalvec{\mathbf{n}} (making n⋅X\normalvec{\mathbf{n}} \cdot X equal to n⋅P\normalvec{\mathbf{n}} \cdot P) if and only if XX sits directly on the line.

A point sits on the line exactly when the arrow to it from a starting point on the line makes a right angle with the normal vector, giving both points the same dot product with that normal vector.
4

Normal Form of a Plane in 3D

In 3D space, being perpendicular to a single normal vector n=⟨a,b,c⟩\normalvec{\mathbf{n}} = \normalvec{\langle a, b, c \rangle} leaves a whole flat plane of directions, so the exact same rule n⋅x=n⋅p\normalvec{\mathbf{n}} \cdot \mathbf{x} = \normalvec{\mathbf{n}} \cdot \mathbf{p} defines a plane instead of a line.

Normal Form of a Plane in 3D
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
z\htmlClass{lc-mute}{z}
n=[abc]\htmlClass{lc-blue}{\mathbf{n}} = \htmlClass{lc-blue}{\begin{bmatrix} a \\ b \\ c \end{bmatrix}}
every arrow⊥n sweeps out  ?\text{every arrow} \perp \htmlClass{lc-blue}{\mathbf{n}}\text{ sweeps out}\;?
Text solution
Write the normal vector's coordinates as the coefficients of xx, yy, and zzTaking the dot product of n=⟨3,−1,5⟩\normalvec{\mathbf{n}} = \normalvec{\langle 3, -1, 5 \rangle} with ⟨x,y,z⟩\langle x, y, z \rangle gives the left side of the plane equation.
3x−y+5z⏟n⋅x\displaystyle \underbrace{\normalvec{3}x \normalvec{-} y + \normalvec{5}z}_{\normalvec{\mathbf{n}} \cdot \mathbf{x}} =n⋅p\displaystyle = \normalvec{\mathbf{n}} \cdot \mathbf{p}
Plug in the starting point (2,1,4)(2, 1, 4) to get the right-hand sideEvery point on the plane has to give the same dot product with n\normalvec{\mathbf{n}} as the starting point.
3x−y+5z=3(2)−1(1)+5(4)3x−y+5z=25\displaystyle \begin{aligned} \normalvec{3}x \normalvec{-} y + \normalvec{5}z &= \normalvec{3}(2) \normalvec{- 1}(1) + \normalvec{5}(4) \\ \normalvec{3}x \normalvec{-} y + \normalvec{5}z &= 25 \end{aligned}
Test (1,2,5)(1, 2, 5) by plugging its coordinates into the equationBecause the left side does not equal 2525, the point (1,2,5)(1, 2, 5) does not lie on the plane.
3(1)−(2)+5(5)\displaystyle \normalvec{3}(1) \normalvec{-} (2) + \normalvec{5}(5) =26≠25\displaystyle = \miss{26} \miss{\neq} 25

All the arrows perpendicular to n=⟨a,b,c⟩\normalvec{\mathbf{n}} = \normalvec{\langle a, b, c \rangle} form a single flat plane in 3D, with the coordinates of n\normalvec{\mathbf{n}} appearing directly as the coefficients in ax+by+cz=d\normalvec{a}x + \normalvec{b}y + \normalvec{c}z = d.

In 3D, all the directions perpendicular to a single normal vector form a flat plane, and the normal’s coordinates are the coefficients in the plane’s equation.
line in 2D
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
n\htmlClass{lc-blue}{\mathbf{n}}
ax+by=d\htmlClass{lc-blue}{a}x + \htmlClass{lc-blue}{b}y = d
plane in 3D
ax+by+cz=d\htmlClass{lc-blue}{a}x + \htmlClass{lc-blue}{b}y + \htmlClass{lc-blue}{c}z = d
line in 3D
5

Converting Normal Form to Parametric Form

When we are given the normal equation of a plane and want its parametric form, we need any one starting point that satisfies the equation and two independent walking directions that are perpendicular to the normal vector.

Converting Normal Form to Parametric Form
x−2y+3z\displaystyle x \normalvec{- 2}y + \normalvec{3}z =4\displaystyle = 4
[xyz]=p+s u+t v\displaystyle \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \mathbf{p} + \stepone{s\,\mathbf{u}} + \steptwo{t\,\mathbf{v}}
p, u, v\displaystyle \mathbf{p},\ \stepone{\mathbf{u}},\ \steptwo{\mathbf{v}} =  ?\displaystyle = \;?
Text solution
Set two variables to zero to find an easy starting pointChoosing y=0y = 0 and z=0z = 0 in x−2y+3z=4x \normalvec{- 2}y + \normalvec{3}z = 4 gives a point on the plane right away.
x−2(0)+3(0)=4  ⟹  p=⟨4,0,0⟩\displaystyle \begin{aligned} x \normalvec{- 2}(0) + \normalvec{3}(0) &= 4 \\ \implies \mathbf{p} &= \langle 4, 0, 0 \rangle \end{aligned}
Build two independent direction vectors whose dot product with n=⟨1,−2,3⟩\normalvec{\mathbf{n}} = \normalvec{\langle 1, -2, 3 \rangle} is zeroPutting a 00 in the third coordinate and then in the second coordinate lets us choose the other two numbers in our head so the dot product is zero.
u=⟨2,1,0⟩since 1(2)−2(1)+3(0)=0v=⟨−3,0,1⟩since 1(−3)−2(0)+3(1)=0\displaystyle \begin{aligned} \stepone{\mathbf{u}} &= \stepone{\langle 2, 1, 0 \rangle} \\ & \text{since } \normalvec{1}(\stepone{2}) \normalvec{- 2}(\stepone{1}) + \normalvec{3}(\stepone{0}) = 0 \\[4pt] \steptwo{\mathbf{v}} &= \steptwo{\langle -3, 0, 1 \rangle} \\ & \text{since } \normalvec{1}(\steptwo{-3}) \normalvec{- 2}(\steptwo{0}) + \normalvec{3}(\steptwo{1}) = 0 \end{aligned}
Alternatively, solve for one variable and set the other two equal to s\stepone{s} and t\steptwo{t}Solving for xx and letting y=s\stepone{y = s} and z=t\steptwo{z = t} splits the coordinates into the exact same starting point and step vectors.
x=4+2y−3z⟨x,y,z⟩=⟨4+2s−3t,s,t⟩=⟨4,0,0⟩+s⟨2,1,0⟩+t⟨−3,0,1⟩\displaystyle \begin{aligned} x &= 4 + \stepone{2y} \steptwo{- 3z} \\ \langle x, y, z \rangle &= \langle 4 + \stepone{2s} \steptwo{- 3t}, \stepone{s}, \steptwo{t} \rangle \\ &= \langle 4, 0, 0 \rangle + \stepone{s\langle 2, 1, 0 \rangle} \\ &\quad + \steptwo{t\langle -3, 0, 1 \rangle} \end{aligned}
6

Converting Parametric Form to Normal Form

Going the other way, from parametric form back to a single normal equation, means finding a normal vector n\normalvec{\mathbf{n}} whose dot product with every walking direction on the line or plane is zero.

Converting Parametric Form to Normal Form
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
(1,3)(1, 3)
d\htmlClass{lc-green}{\mathbf{d}}
[xy]=[13]+t[42]\begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 1 \\ 3 \end{bmatrix} + \htmlClass{lc-green}{t}\htmlClass{lc-green}{\begin{bmatrix} 4 \\ 2 \end{bmatrix}}
? x  +  ? y=  ?\htmlClass{lc-blue}{?}\,x \;+\; \htmlClass{lc-blue}{?}\,y = \;?

For the 2D line ⟨x,y⟩=⟨1,3⟩+t⟨4,2⟩\langle x, y \rangle = \langle 1, 3 \rangle + \stepone{t\langle 4, 2 \rangle}, there is only one direction vector to make perpendicular:

Text solution
Swap the two direction coordinates and flip one signFor d=⟨4,2⟩\stepone{\mathbf{d}} = \stepone{\langle 4, 2 \rangle}, this immediately gives a normal vector with n⋅d=0\normalvec{\mathbf{n}} \cdot \stepone{\mathbf{d}} = 0.
n=⟨−2,4⟩since (−2)(4)+(4)(2)=0\displaystyle \begin{aligned} \normalvec{\mathbf{n}} &= \normalvec{\langle -2, 4 \rangle} \\ & \text{since } (\normalvec{-2})(\stepone{4}) + (\normalvec{4})(\stepone{2}) = 0 \end{aligned}
Plug the starting point (1,3)(1, 3) into n⋅x=n⋅p\normalvec{\mathbf{n}} \cdot \mathbf{x} = \normalvec{\mathbf{n}} \cdot \mathbf{p}Using ⟨−2,4⟩\normalvec{\langle -2, 4 \rangle} as the coefficients completes the normal equation.
−2x+4y=−2(1)+4(3)−2x+4y=10\displaystyle \begin{aligned} \normalvec{-2}x + \normalvec{4}y &= \normalvec{-2}(1) + \normalvec{4}(3) \\ \normalvec{-2}x + \normalvec{4}y &= 10 \end{aligned}

For the 3D plane ⟨x,y,z⟩=⟨1,0,\langle x, y, z \rangle = \langle 1, 0, 2⟩+s⟨2,1,0⟩+t⟨0,4,3⟩2 \rangle + \stepone{s\langle 2, 1, 0 \rangle} + \steptwo{t\langle 0, 4, 3 \rangle}, the normal vector n=⟨a,b,c⟩\normalvec{\mathbf{n}} = \normalvec{\langle a, b, c \rangle} must be perpendicular to both walking directions at the same time:

Text solution
Set the dot product of n=⟨a,b,c⟩\normalvec{\mathbf{n}} = \normalvec{\langle a, b, c \rangle} with each direction vector to zeroEach walking direction gives a simple equation linking the coordinates of n\normalvec{\mathbf{n}}.
⟨a,b,c⟩⋅⟨2,1,0⟩=0  ⟹  2a+b=0⟨a,b,c⟩⋅⟨0,4,3⟩=0  ⟹  4b+3c=0\displaystyle \begin{aligned} \normalvec{\langle a, b, c \rangle} \cdot \stepone{\langle 2, 1, 0 \rangle} &= 0 \\ \implies 2\normalvec{a} + \normalvec{b} &= 0 \\[4pt] \normalvec{\langle a, b, c \rangle} \cdot \steptwo{\langle 0, 4, 3 \rangle} &= 0 \\ \implies 4\normalvec{b} + 3\normalvec{c} &= 0 \end{aligned}
Pick an easy value for the shared variable b\normalvec{b} and solve for a\normalvec{a} and c\normalvec{c}Choosing b=−6\normalvec{b} = -6 avoids fractions in both equations at once (which the cross product also computes in a single step).
2a+(−6)=0  ⟹  a=34(−6)+3c=0  ⟹  c=8n=⟨3,−6,8⟩\displaystyle \begin{aligned} 2\normalvec{a} + (-6) = 0 &\implies \normalvec{a} = 3 \\ 4(-6) + 3\normalvec{c} = 0 &\implies \normalvec{c} = 8 \\ \normalvec{\mathbf{n}} &= \normalvec{\langle 3, -6, 8 \rangle} \end{aligned}
Plug in the starting point (1,0,2)(1, 0, 2) and test (7,11,8)(7, 11, 8)With the plane in normal form, checking (7,11,8)(7, 11, 8) takes one line of arithmetic.
3x−6y+8z=3(1)−6(0)+8(2)=193(7)−6(11)+8(8)=21−66+64=19(on the plane)\displaystyle \begin{aligned} & \normalvec{3}x \normalvec{- 6}y + \normalvec{8}z \\ & \quad = \normalvec{3}(1) \normalvec{- 6}(0) + \normalvec{8}(2) = 19 \\[6pt] & \normalvec{3}(7) \normalvec{- 6}(11) + \normalvec{8}(8) \\ & \quad = 21 - 66 + 64 \\ & \quad = 19 \quad \text{(on the plane)} \end{aligned}
7

Parallel and Perpendicular Lines and Planes

To decide whether two lines or planes are parallel or perpendicular, or to build a new line or plane aligned with an old one, we compare their direction and normal vectors. Because a line's direction d\stepone{\mathbf{d}} runs along the line while a plane's normal n\normalvec{\mathbf{n}} sticks out at 90∘90^\circ, a quick sketch shows whether we need the two vectors to be parallel (one is a multiple of the other) or perpendicular (their dot product is zero).

Parallel and Perpendicular Lines and Planes
n1\htmlClass{lc-blue}{\mathbf{n}_1}
parallel or perpendicular?\text{parallel or perpendicular?}
parallel planes
n1=kn2\htmlClass{lc-blue}{\mathbf{n}_1} = k\htmlClass{lc-violet}{\mathbf{n}_2}
perpendicular planes
n1⋅n2=0\htmlClass{lc-blue}{\mathbf{n}_1} \cdot \htmlClass{lc-violet}{\mathbf{n}_2} = 0
line parallel to a plane
d⋅n=0\htmlClass{lc-green}{\mathbf{d}} \cdot \htmlClass{lc-blue}{\mathbf{n}} = 0
line perpendicular to a plane
d=kn\htmlClass{lc-green}{\mathbf{d}} = k\htmlClass{lc-blue}{\mathbf{n}}

Once we see which vectors point the same way, we can build parallel or perpendicular lines and planes by reusing the vector we need directly from the given equation:

Text solution
Plane through (1,2,1)(1, 2, 1) parallel to 3x−y+5z=25\normalvec{3}x \normalvec{-} y + \normalvec{5}z = 25: reuse the plane's normalParallel planes have the same tilt, so we keep n=⟨3,−1,5⟩\normalvec{\mathbf{n}} = \normalvec{\langle 3, -1, 5 \rangle} and plug in (1,2,1)(1, 2, 1).
3x−y+5z\displaystyle \normalvec{3}x \normalvec{-} y + \normalvec{5}z =3(1)−(2)+5(1)\displaystyle = \normalvec{3}(1) \normalvec{-} (2) + \normalvec{5}(1) =6\displaystyle = 6
Line through (4,0,−1)(4, 0, -1) perpendicular to 3x−y+5z=25\normalvec{3}x \normalvec{-} y + \normalvec{5}z = 25: use the plane's normal as the line's directionA line going straight out of the plane at 90∘90^\circ walks in the exact direction of n=⟨3,−1,5⟩\normalvec{\mathbf{n}} = \normalvec{\langle 3, -1, 5 \rangle}.
⟨x,y,z⟩\displaystyle \langle x, y, z \rangle =⟨4,0,−1⟩+t⟨3,−1,5⟩\displaystyle = \langle 4, 0, -1 \rangle + \stepone{t\langle 3, -1, 5 \rangle}
Plane through (2,3,1)(2, 3, 1) perpendicular to ⟨x,y,z⟩\langle x, y, z \rangle =⟨1,3,0⟩+t⟨4,2,−2⟩{}= \langle 1, 3, 0 \rangle + \stepone{t\langle 4, 2, -2 \rangle}: use the line's direction as the plane's normalBecause the line goes straight through the plane at 90∘90^\circ, its direction d=⟨4,2,−2⟩\stepone{\mathbf{d}} = \stepone{\langle 4, 2, -2 \rangle} sticks out of the plane as n\normalvec{\mathbf{n}}.
4x+2y−2z\displaystyle \normalvec{4}x + \normalvec{2}y \normalvec{- 2}z =4(2)+2(3)−2(1)\displaystyle = \normalvec{4}(2) + \normalvec{2}(3) \normalvec{- 2}(1) =12\displaystyle = 12

Because the plane's normal n\normalvec{\mathbf{n}} sticks out at 90∘90^\circ, the tests between a line and a plane flip: the line is parallel to the plane when d\stepone{\mathbf{d}} is perpendicular to n\normalvec{\mathbf{n}} (d⋅n=0\stepone{\mathbf{d}} \cdot \normalvec{\mathbf{n}} = 0), and perpendicular to the plane when d\stepone{\mathbf{d}} is parallel to n\normalvec{\mathbf{n}}.

Because the normal vector sticks straight out of the plane, a line and a plane are parallel when their vectors are perpendicular, and perpendicular when their vectors are parallel.
8

Where a Line Intersects a Plane

To find the exact point where a parametric line crosses a plane in normal form, we find the value of t\stepone{t} where the point on the line satisfies the plane's equation.

Where a Line Intersects a Plane
[xyz]=[120]+t[2−13]\begin{bmatrix} x \\ y \\ z \end{bmatrix} = \begin{bmatrix} 1 \\ 2 \\ 0 \end{bmatrix} + \htmlClass{lc-green}{t}\htmlClass{lc-green}{\begin{bmatrix} 2 \\ -1 \\ 3 \end{bmatrix}}
2x+3y+z=20\htmlClass{lc-blue}{2}x + \htmlClass{lc-blue}{3}y + z = 20
d\htmlClass{lc-green}{\mathbf{d}}
??
Text solution
Read the coordinates of a point on the line in terms of t\stepone{t}Combining the starting point ⟨1,2,0⟩\langle 1, 2, 0 \rangle and step t⟨2,−1,3⟩\stepone{t\langle 2, -1, 3 \rangle} gives xx, yy, and zz for any value of t\stepone{t}.
x\displaystyle x =1+2t,y\displaystyle = 1 + \stepone{2t}, \quad y =2−t,z\displaystyle = 2 \stepone{- t}, \quad z =3t\displaystyle = \stepone{3t}
Substitute the line's coordinates into the plane 2x+3y+z=20\normalvec{2}x + \normalvec{3}y + z = 20 and solve for t\stepone{t}This finds the value of t\stepone{t} when the point on the line lands on the plane.
2(1+2t)+3(2−t)+(3t)=202+4t+6−3t+3t=208+4t=204t=12t=3\displaystyle \begin{aligned} \normalvec{2}(1 + \stepone{2t}) + \normalvec{3}(2 \stepone{- t}) + (\stepone{3t}) &= 20 \\ 2 + 4\stepone{t} + 6 - 3\stepone{t} + 3\stepone{t} &= 20 \\ 8 + 4\stepone{t} &= 20 \\ 4\stepone{t} &= 12 \\ \stepone{t} &= 3 \end{aligned}
Plug t=3\stepone{t} = 3 back into the line equation to find the intersection pointPutting t=3\stepone{t} = 3 into the line equation gives the coordinates where the line crosses the plane.
⟨x,y,z⟩\displaystyle \langle x, y, z \rangle =⟨1,2,0⟩+3⟨2,−1,3⟩\displaystyle = \langle 1, 2, 0 \rangle + \stepone{3\langle 2, -1, 3 \rangle} =⟨7,−1,9⟩\displaystyle = \langle 7, -1, 9 \rangle

So the line intersects the plane at (7,−1,9)(7, -1, 9). When d⋅n=0\stepone{\mathbf{d}} \cdot \normalvec{\mathbf{n}} = 0, the line runs parallel to the plane and all the t\stepone{t} terms cancel out during substitution: an impossible result like 8=20\miss{8 = 20} means the line never touches the plane, while an always-true result like 20=2020 = 20 means the entire line lies inside the plane.

Key concepts

Every line or plane problem comes down to which way the vectors point:

Parametric form

starts at a point p\mathbf{p} and steps along the line or plane. One direction vector traces a 1D line in any dimension (⟨x,y,z⟩\langle x, y, z \rangle =⟨1,3,0⟩+t⟨4,2,−2⟩{}= \langle 1, 3, 0 \rangle + \stepone{t\langle 4, 2, -2 \rangle}), while two independent direction vectors sweep out a 2D plane (⟨x,y,z⟩=⟨1,0,\langle x, y, z \rangle = \langle 1, 0, 2⟩+s⟨2,1,0⟩+t⟨0,4,3⟩2 \rangle + \stepone{s\langle 2, 1, 0 \rangle} + \steptwo{t\langle 0, 4, 3 \rangle}). When given points on the line or plane, always subtract the starting point first (B−AB - A and C−AC - A) to get step vectors along it.

Normal form

uses a normal vector n\normalvec{\mathbf{n}} sticking out at 90∘90^\circ to test whether a point is on the line or plane:

n⋅x\displaystyle \normalvec{\mathbf{n}} \cdot \mathbf{x} =n⋅p\displaystyle = \normalvec{\mathbf{n}} \cdot \mathbf{p}
The coordinates of n\normalvec{\mathbf{n}} are the coefficients on the left, and plugging in the starting point gives the right-hand side. For n=⟨3,−1,5⟩\normalvec{\mathbf{n}} = \normalvec{\langle 3, -1, 5 \rangle} through (2,1,4)(2, 1, 4), that is 3x−y+5z=25\normalvec{3}x \normalvec{-} y + \normalvec{5}z = 25. Because one normal blocks a single dimension of movement, one normal equation defines a line in 2D (ax+by=d\normalvec{a}x + \normalvec{b}y = d) and a plane in 3D (ax+by+cz=d\normalvec{a}x + \normalvec{b}y + \normalvec{c}z = d), so in 3D we keep lines in parametric form and planes in normal form.

Converting between forms

uses direction⋅n=0\stepone{\text{direction}} \cdot \normalvec{\mathbf{n}} = 0. From normal to parametric (x−2y+3z=4x \normalvec{- 2}y + \normalvec{3}z = 4), set two coordinates to 00 for a starting point (⟨4,0,0⟩\langle 4, 0, 0 \rangle) and put 00 in different positions to find two vectors whose dot product with n=⟨1,−2,3⟩\normalvec{\mathbf{n}} = \normalvec{\langle 1, -2, 3 \rangle} is zero (⟨2,1,0⟩\stepone{\langle 2, 1, 0 \rangle} and ⟨−3,0,1⟩\steptwo{\langle -3, 0, 1 \rangle}), or solve for one variable. From parametric to normal, swap the coordinates and flip one sign in 2D (d=⟨4,2⟩→n=⟨−2,4⟩\stepone{\mathbf{d} = \langle 4, 2 \rangle} \to \normalvec{\mathbf{n} = \langle -2, 4 \rangle}), or solve n⋅u=0\normalvec{\mathbf{n}} \cdot \stepone{\mathbf{u}} = 0 and n⋅v=0\normalvec{\mathbf{n}} \cdot \steptwo{\mathbf{v}} = 0 in 3D.

When not to convert

Don't convert a normal plane into parametric form to test a point or intersect it with a line. Instead, substitute the line's coordinates (1+2t,2−t,3t)(1 + \stepone{2t}, 2 \stepone{- t}, \stepone{3t}) straight into the plane equation 2x+3y+z=20\normalvec{2}x + \normalvec{3}y + z = 20 and solve for t\stepone{t}. And don't set up equations to build a parallel or perpendicular line or plane when you can reuse the vector directly: two planes match their normals (parallel when n1=kn2\normalvec{\mathbf{n}_1} = k\normaltwo{\mathbf{n}_2}, perpendicular when n1⋅n2=0\normalvec{\mathbf{n}_1} \cdot \normaltwo{\mathbf{n}_2} = 0), while a line's direction d\stepone{\mathbf{d}} and a plane's normal n\normalvec{\mathbf{n}} flip roles (parallel when d⋅n=0\stepone{\mathbf{d}} \cdot \normalvec{\mathbf{n}} = 0, perpendicular when d=kn\stepone{\mathbf{d}} = k\normalvec{\mathbf{n}}).

9

Practice

1

Write the parametric form of the line in 3D passing through the points (2,−1,4)(2, -1, 4) and (5,3,2)(5, 3, 2).

Pick (2,−1,4)(2, -1, 4) as the starting point, then find the step vector needed to walk from that point to (5,3,2)(5, 3, 2).

Using (2,−1,4)(2, -1, 4) as the starting point, we find the direction vector by subtracting the starting point from the second point:
d\displaystyle \stepone{\mathbf{d}} =⟨5−2,3−(−1),2−4⟩\displaystyle = \langle 5 - 2, 3 - (-1), 2 - 4 \rangle =⟨3,4,−2⟩\displaystyle = \stepone{\langle 3, 4, -2 \rangle}
Watch out not to put the second point (5,3,2)(5, 3, 2) directly behind tt, which would give the wrong line ⟨x,y,z⟩=⟨2,−1,4⟩\langle x, y, z \rangle = \langle 2, -1, 4 \rangle +t⟨5,3,2⟩{}+ t\langle 5, 3, 2 \rangle. Putting the starting point and direction vector together gives the parametric equation of the line:
⟨x,y,z⟩\displaystyle \langle x, y, z \rangle =⟨2,−1,4⟩+t⟨3,4,−2⟩\displaystyle = \langle 2, -1, 4 \rangle + t\langle 3, 4, -2 \rangle
2

Write the parametric form of the plane passing through the three points A=(2,1,−1)A = (2, 1, -1), B=(4,0,2)B = (4, 0, 2), and C=(2,5,3)C = (2, 5, 3).

Use AA as the starting point, and build two walking directions by stepping from AA to BB and from AA to CC.

Starting at A=(2,1,−1)A = (2, 1, -1), we subtract AA from BB and CC to form the two step vectors:
B−A=⟨4−2,0−1,2−(−1)⟩=⟨2,−1,3⟩C−A=⟨2−2,5−1,3−(−1)⟩=⟨0,4,4⟩\displaystyle \begin{aligned} \stepone{B - A} &= \langle 4 - 2, 0 - 1, 2 - (-1) \rangle \\ &= \stepone{\langle 2, -1, 3 \rangle} \\ \steptwo{C - A} &= \langle 2 - 2, 5 - 1, 3 - (-1) \rangle \\ &= \steptwo{\langle 0, 4, 4 \rangle} \end{aligned}
Watch out not to use the points BB and CC themselves as the direction vectors, which gives ⟨x,y,z⟩=⟨2,1,−1⟩\langle x, y, z \rangle = \langle 2, 1, -1 \rangle +s⟨4,0,2⟩+t⟨2,5,3⟩{}+ s\langle 4, 0, 2 \rangle + t\langle 2, 5, 3 \rangle and misses BB and CC. Attaching the two step vectors to our starting point AA gives the parametric form of the plane:
⟨x,y,z⟩=⟨2,1,−1⟩+s⟨2,−1,3⟩+t⟨0,4,4⟩\displaystyle \begin{aligned} \langle x, y, z \rangle &= \langle 2, 1, -1 \rangle + s\langle 2, -1, 3 \rangle \\ &\quad + t\langle 0, 4, 4 \rangle \end{aligned}
3

Write the normal equation of the plane passing through (3,−2,1)(3, -2, 1) with normal vector n=⟨4,1,−3⟩\normalvec{\mathbf{n}} = \normalvec{\langle 4, 1, -3 \rangle}, and determine whether the point (2,5,2)(2, 5, 2) lies on this plane.

Which vector gives the coefficients on the left-hand side of n⋅x=n⋅p\normalvec{\mathbf{n}} \cdot \mathbf{x} = \normalvec{\mathbf{n}} \cdot \mathbf{p}, and which point sets the number on the right?

Using n⋅x=n⋅p\normalvec{\mathbf{n}} \cdot \mathbf{x} = \normalvec{\mathbf{n}} \cdot \mathbf{p}, we put the normal vector ⟨4,1,−3⟩\normalvec{\langle 4, 1, -3 \rangle} in front of x,y,zx, y, z on the left and plug the point (3,−2,1)(3, -2, 1) into the right:
4x+y−3z=4(3)+1(−2)−3(1)4x+y−3z=7\displaystyle \begin{aligned} \normalvec{4}x + y \normalvec{- 3}z &= \normalvec{4}(3) + \normalvec{1}(-2) \normalvec{- 3}(1) \\ 4x + y - 3z &= 7 \end{aligned}
Watch out not to swap the normal vector and the point, which gives the wrong plane 3x−2y+z=73x - 2y + z = 7 and falsely says (2,5,2)(2, 5, 2) is not on the plane because 3(2)−2(5)+2=−2≠73(2) - 2(5) + 2 = -2 \neq 7. To check whether (2,5,2)(2, 5, 2) lies on our plane, we plug its coordinates into 4x+y−3z=7\normalvec{4}x + y \normalvec{- 3}z = 7:
4(2)+5−3(2)\displaystyle \normalvec{4}(2) + 5 \normalvec{- 3}(2) =8+5−6\displaystyle = 8 + 5 - 6 =7\displaystyle = 7
Since both sides match, yes, (2,5,2)(2, 5, 2) lies on the plane.
4

Convert the plane x+3y−2z=6x + \normalvec{3}y \normalvec{- 2}z = 6 from normal form to parametric form.

Set y=0y = 0 and z=0z = 0 to find a starting point, then either solve for xx or find two independent vectors whose dot product with n=⟨1,3,−2⟩\normalvec{\mathbf{n}} = \normalvec{\langle 1, 3, -2 \rangle} is zero.

Setting y=0y = 0 and z=0z = 0 in x+3y−2z=6x + \normalvec{3}y \normalvec{- 2}z = 6 gives x=6x = 6, so (6,0,0)(6, 0, 0) is our starting point, and solving the plane equation for xx in terms of the free parameters y=sy = \stepone{s} and z=tz = \steptwo{t} gives:
x\displaystyle x =6−3s+2t\displaystyle = 6 \stepone{- 3s} + \steptwo{2t}
Watch out for the signs on the step vectors when moving 3y−2z\normalvec{3}y \normalvec{- 2}z to the other side (or when making the dot product with ⟨1,3,−2⟩\normalvec{\langle 1, 3, -2 \rangle} equal zero): keeping the original signs gives ⟨x,y,z⟩=⟨6,0,0⟩\langle x, y, z \rangle = \langle 6, 0, 0 \rangle +s⟨3,1,0⟩+t⟨−2,0,1⟩{}+ s\langle 3, 1, 0 \rangle + t\langle -2, 0, 1 \rangle, whose direction vectors are not perpendicular to n\normalvec{\mathbf{n}}. Writing all three coordinates together in vector form gives the parametric equation:
⟨x,y,z⟩=⟨6,0,0⟩+s⟨−3,1,0⟩+t⟨2,0,1⟩\displaystyle \begin{aligned} \langle x, y, z \rangle &= \langle 6, 0, 0 \rangle + s\langle -3, 1, 0 \rangle \\ &\quad + t\langle 2, 0, 1 \rangle \end{aligned}
5

Convert the 2D line ⟨x,y⟩=⟨4,−1⟩+t⟨3,5⟩\langle x, y \rangle = \langle 4, -1 \rangle + \stepone{t\langle 3, 5 \rangle} from parametric form to normal form.

How do you turn the walking direction d=⟨3,5⟩\stepone{\mathbf{d}} = \stepone{\langle 3, 5 \rangle} into a perpendicular normal vector n\normalvec{\mathbf{n}} so that n⋅d=0\normalvec{\mathbf{n}} \cdot \stepone{\mathbf{d}} = 0?

To get a normal vector perpendicular to the walking direction d=⟨3,5⟩\stepone{\mathbf{d}} = \stepone{\langle 3, 5 \rangle}, we swap its coordinates and flip one sign so that n⋅d=0\normalvec{\mathbf{n}} \cdot \stepone{\mathbf{d}} = 0:
n\displaystyle \normalvec{\mathbf{n}} =⟨5,−3⟩\displaystyle = \normalvec{\langle 5, -3 \rangle}
Watch out not to use ⟨3,5⟩\stepone{\langle 3, 5 \rangle} directly as the coefficients, which gives 3x+5y=73x + 5y = 7, a line perpendicular to the one we want. Using n=⟨5,−3⟩\normalvec{\mathbf{n}} = \normalvec{\langle 5, -3 \rangle} for the left-hand side and plugging in the starting point (4,−1)(4, -1) on the right gives the normal form (or −5x+3y=−23-5x + 3y = -23 if you flipped the other sign):
5x−3y=5(4)−3(−1)5x−3y=23\displaystyle \begin{aligned} \normalvec{5}x \normalvec{- 3}y &= \normalvec{5}(4) \normalvec{- 3}(-1) \\ 5x - 3y &= 23 \end{aligned}
6

Convert the plane ⟨x,y,z⟩=⟨2,0,1⟩+s⟨1,3,0⟩+t⟨0,2,−1⟩\langle x, y, z \rangle = \langle 2, 0, 1 \rangle + \stepone{s\langle 1, 3, 0 \rangle} + \steptwo{t\langle 0, 2, -1 \rangle} from parametric form to normal form.

Write out ⟨a,b,c⟩⋅⟨1,3,0⟩=0\normalvec{\langle a, b, c \rangle} \cdot \stepone{\langle 1, 3, 0 \rangle} = 0 and ⟨a,b,c⟩⋅⟨0,2,−1⟩=0\normalvec{\langle a, b, c \rangle} \cdot \steptwo{\langle 0, 2, -1 \rangle} = 0; which coordinate appears in both equations?

A normal vector n=⟨a,b,c⟩\normalvec{\mathbf{n}} = \normalvec{\langle a, b, c \rangle} must have a dot product of zero with both step vectors:
a+3b=02b−c=0\displaystyle \begin{aligned} \normalvec{a} + 3\normalvec{b} &= 0 \\ 2\normalvec{b} - \normalvec{c} &= 0 \end{aligned}
Since b\normalvec{b} appears in both equations, we can pick b=−1\normalvec{b} = -1, which gives a=3\normalvec{a} = 3 and c=−2\normalvec{c} = -2:
n\displaystyle \normalvec{\mathbf{n}} =⟨3,−1,−2⟩\displaystyle = \normalvec{\langle 3, -1, -2 \rangle}
Watch out when solving 2b−c=02\normalvec{b} - \normalvec{c} = 0: picking b=−1\normalvec{b} = -1 gives c=−2\normalvec{c} = -2, not c=2c = 2, and missing that negative sign gives n=⟨3,−1,2⟩\mathbf{n} = \langle 3, -1, 2 \rangle and the wrong plane 3x−y+2z=83x - y + 2z = 8. Using n=⟨3,−1,−2⟩\normalvec{\mathbf{n}} = \normalvec{\langle 3, -1, -2 \rangle} with the starting point (2,0,1)(2, 0, 1) gives the normal equation:
3x−y−2z=3(2)−1(0)−2(1)3x−y−2z=4\displaystyle \begin{aligned} \normalvec{3}x \normalvec{-} y \normalvec{- 2}z &= \normalvec{3}(2) \normalvec{- 1}(0) \normalvec{- 2}(1) \\ 3x - y - 2z &= 4 \end{aligned}
7

Determine whether the line ⟨x,y,z⟩=⟨1,0,4⟩+t⟨2,−3,1⟩\langle x, y, z \rangle = \langle 1, 0, 4 \rangle + \stepone{t\langle 2, -3, 1 \rangle} is parallel, perpendicular, or neither to (a) the plane 4x−6y+2z=9\normalvec{4}x \normalvec{- 6}y + \normalvec{2}z = 9 and (b) the plane x+y+z=12x + y + z = 12.

Sketch the line's direction d\stepone{\mathbf{d}} and the plane's normal n\normalvec{\mathbf{n}}: when a line runs parallel to a plane, what angle does d\stepone{\mathbf{d}} make with n\normalvec{\mathbf{n}}?

We compare the line's direction vector d=⟨2,−3,1⟩\stepone{\mathbf{d}} = \stepone{\langle 2, -3, 1 \rangle} with each plane's normal vector n\normalvec{\mathbf{n}}. Watch out to remember that the plane's normal n\normalvec{\mathbf{n}} sticks out at 90∘90^\circ: treating n\normalvec{\mathbf{n}} as if it ran along the plane reverses both answers, calling (a) parallel because n=2d\normalvec{\mathbf{n}} = 2\stepone{\mathbf{d}} and (b) perpendicular because d⋅n=0\stepone{\mathbf{d}} \cdot \normalvec{\mathbf{n}} = 0.
For (a), the plane 4x−6y+2z=9\normalvec{4}x \normalvec{- 6}y + \normalvec{2}z = 9 has normal vector n=⟨4,−6,2⟩\normalvec{\mathbf{n}} = \normalvec{\langle 4, -6, 2 \rangle}, which is a multiple of d\stepone{\mathbf{d}}:
n\displaystyle \normalvec{\mathbf{n}} =⟨4,−6,2⟩\displaystyle = \normalvec{\langle 4, -6, 2 \rangle} =2⟨2,−3,1⟩\displaystyle = 2\stepone{\langle 2, -3, 1 \rangle} =2d\displaystyle = 2\stepone{\mathbf{d}}
Because n\normalvec{\mathbf{n}} is parallel to d\stepone{\mathbf{d}}, the line goes straight through the plane in the normal direction, so the line is perpendicular to the plane.
For (b), the plane x+y+z=12x + y + z = 12 has normal vector n=⟨1,1,1⟩\normalvec{\mathbf{n}} = \normalvec{\langle 1, 1, 1 \rangle}, and its dot product with d\stepone{\mathbf{d}} is zero:
d⋅n=⟨2,−3,1⟩⋅⟨1,1,1⟩=2−3+1=0\displaystyle \begin{aligned} \stepone{\mathbf{d}} \cdot \normalvec{\mathbf{n}} &= \stepone{\langle 2, -3, 1 \rangle} \cdot \normalvec{\langle 1, 1, 1 \rangle} \\ &= 2 - 3 + 1 = 0 \end{aligned}
Because d\stepone{\mathbf{d}} is 90∘90^\circ to the normal vector, the line is parallel to the plane.
8

Write the normal equation of the plane passing through (1,−2,3)(1, -2, 3) that is perpendicular to the line ⟨x,y,z⟩=⟨0,4,1⟩+t⟨5,−1,2⟩\langle x, y, z \rangle = \langle 0, 4, 1 \rangle + \stepone{t\langle 5, -1, 2 \rangle}.

If the line goes straight through the plane at 90∘90^\circ, which vector from the line is already pointing in the direction of the plane's normal n\normalvec{\mathbf{n}}?

Since the plane is perpendicular to the line, the line's direction vector serves directly as the plane's normal vector:
n\displaystyle \normalvec{\mathbf{n}} =⟨5,−1,2⟩\displaystyle = \normalvec{\langle 5, -1, 2 \rangle}
Watch out to plug in the given plane point (1,−2,3)(1, -2, 3) to find the right-hand side: plugging in the line's starting point (0,4,1)(0, 4, 1) instead gives 5x−y+2z=−25x - y + 2z = -2. Using n=⟨5,−1,2⟩\normalvec{\mathbf{n}} = \normalvec{\langle 5, -1, 2 \rangle} and the point (1,−2,3)(1, -2, 3) in n⋅x=n⋅p\normalvec{\mathbf{n}} \cdot \mathbf{x} = \normalvec{\mathbf{n}} \cdot \mathbf{p} gives the normal equation:
5x−y+2z=5(1)−1(−2)+2(3)5x−y+2z=13\displaystyle \begin{aligned} \normalvec{5}x \normalvec{-} y + \normalvec{2}z &= \normalvec{5}(1) \normalvec{- 1}(-2) + \normalvec{2}(3) \\ 5x - y + 2z &= 13 \end{aligned}
9

Find the point where the line ⟨x,y,z⟩=⟨2,1,−1⟩+t⟨1,−2,4⟩\langle x, y, z \rangle = \langle 2, 1, -1 \rangle + \stepone{t\langle 1, -2, 4 \rangle} intersects the plane 3x+y−z=14\normalvec{3}x + y \normalvec{-} z = 14.

Write xx, yy, and zz in terms of t\stepone{t} from the line equation and substitute them into 3x+y−z=14\normalvec{3}x + y \normalvec{-} z = 14 to find the value of t\stepone{t} when the line hits the plane.

From the line equation, the coordinates at step t\stepone{t} are x=2+tx = 2 + \stepone{t}, y=1−2ty = 1 \stepone{- 2t}, and z=−1+4tz = -1 + \stepone{4t}, which we substitute into the plane equation 3x+y−z=14\normalvec{3}x + y \normalvec{-} z = 14:
3(2+t)+(1−2t)−(−1+4t)=146+3t+1−2t+1−4t=148−3t=14t=−2\displaystyle \begin{aligned} \normalvec{3}(2 + \stepone{t}) + (1 \stepone{- 2t}) \normalvec{-} (-1 + \stepone{4t}) &= 14 \\ 6 + 3\stepone{t} + 1 - 2\stepone{t} + 1 - 4\stepone{t} &= 14 \\ 8 - 3\stepone{t} &= 14 \\ \stepone{t} &= -2 \end{aligned}
Watch out to distribute the minus sign across all of z=−1+4tz = -1 + \stepone{4t} when substituting (writing −1+4t-1 + 4t instead of −(−1+4t)-(-1 + 4t) gives t=85t = \tfrac{8}{5}), and don't stop at t=−2\stepone{t} = -2 without plugging it back into the line to get the point. Plugging t=−2\stepone{t} = -2 back into the line equation gives the intersection point:
⟨x,y,z⟩=⟨2,1,−1⟩−2⟨1,−2,4⟩=⟨0,5,−9⟩\displaystyle \begin{aligned} \langle x, y, z \rangle &= \langle 2, 1, -1 \rangle \stepone{- 2\langle 1, -2, 4 \rangle} \\ &= \langle 0, 5, -9 \rangle \end{aligned}
So the line intersects the plane at (0,5,−9)(0, 5, -9).
10

For what value of kk does the line ⟨x,y,z⟩=⟨1,k,2⟩+t⟨3,−1,2⟩\langle x, y, z \rangle = \langle 1, k, 2 \rangle + \stepone{t\langle 3, -1, 2 \rangle} lie entirely inside the plane 2x+4y−z=6\normalvec{2}x + \normalvec{4}y \normalvec{-} z = 6, and how many intersection points do they have for any other value of kk?

Substitute the line's coordinates into 2x+4y−z=6\normalvec{2}x + \normalvec{4}y \normalvec{-} z = 6: once the t\stepone{t} terms cancel out, what has to be true about the remaining equation for the line to lie inside the plane?

Substituting x=1+3tx = 1 + \stepone{3t}, y=k−ty = k \stepone{- t}, and z=2+2tz = 2 + \stepone{2t} from the line into the plane equation 2x+4y−z=6\normalvec{2}x + \normalvec{4}y \normalvec{-} z = 6 gives:
2(1+3t)+4(k−t)−(2+2t)=62+4k−2+(6−4−2)t=64k+0t=6\displaystyle \begin{aligned} \normalvec{2}(1 + \stepone{3t}) + \normalvec{4}(k \stepone{- t}) \normalvec{-} (2 + \stepone{2t}) &= 6 \\ 2 + 4k - 2 + (6 - 4 - 2)\stepone{t} &= 6 \\ 4k + 0\stepone{t} &= 6 \end{aligned}
For the line to lie entirely inside the plane, 4k=64k = 6 must hold for every t\stepone{t}, which gives:
k\displaystyle k =32\displaystyle = \frac{3}{2}
Because (6−4−2)t=0t(6 - 4 - 2)\stepone{t} = 0\stepone{t} cancels out completely, watch out not to assume the line crosses the plane at 11 point for other values of kk: when k≠32k \neq \tfrac{3}{2}, the equation 4k=64k = 6 is never true, so they have 00 intersection points because the line is parallel to the plane and never touches it.