Lines in 3D Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Lines in 3D.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

Lines in three-dimensional space described using parametric equations x=x0+atx = x_0 + at, y=y0+bty = y_0 + bt, z=z0+ctz = z_0 + ct, or symmetric form xβˆ’x0a=yβˆ’y0b=zβˆ’z0c\frac{x - x_0}{a} = \frac{y - y_0}{b} = \frac{z - z_0}{c}, where (x0,y0,z0)(x_0, y_0, z_0) is a point on the line and ⟨a,b,c⟩\langle a, b, c \rangle is the direction vector.

In 2D, a line is defined by a slope and a point (y=mx+by = mx + b). In 3D, slope doesn't workβ€”there's no single number for direction in space. Instead, you specify a starting point and a direction vector (an arrow pointing along the line). The parameter tt acts like a slider: at t=0t = 0 you're at the starting point, and as tt increases or decreases, you slide along the line in the direction of the vector.

Read the full concept explanation β†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: A 3D line is a starting point and a direction vector traced out by a slider parameter tt.

Common stuck point: The procedure for lines in 3d is the easy part; the trap is confusing the point with the direction vector. Asking "Does the line live in x,y,zx,y,z space and need a direction vector rather than a single slope?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Does the line live in x,y,zx,y,z space and need a direction vector rather than a single slope?

Worked Examples

Example 1

easy
Write parametric equations for the line through the point (2,βˆ’1,3)(2, -1, 3) in the direction of the vector ⟨4,1,βˆ’2⟩\langle 4, 1, -2 \rangle.

Answer

x=2+4t,y=βˆ’1+t,z=3βˆ’2tx = 2 + 4t, \quad y = -1 + t, \quad z = 3 - 2t

First step

1
The parametric equations for a line through (x0,y0,z0)(x_0, y_0, z_0) with direction vector ⟨a,b,c⟩\langle a, b, c \rangle are: x=x0+atx = x_0 + at, y=y0+bty = y_0 + bt, z=z0+ctz = z_0 + ct.

Full solution

  1. 2
    Substitute: x=2+4tx = 2 + 4t, y=βˆ’1+ty = -1 + t, z=3βˆ’2tz = 3 - 2t.
  2. 3
    Verify: at t=0t = 0, the point is (2,βˆ’1,3)(2, -1, 3) βœ“, and the direction is ⟨4,1,βˆ’2⟩\langle 4, 1, -2 \rangle βœ“.
A line in 3D is determined by a point and a direction vector. Parametric form represents each coordinate as a linear function of the parameter tt. As tt varies over all real numbers, the equations trace the entire line.

Example 2

medium
Find parametric equations for the line through (1,0,βˆ’2)(1, 0, -2) and (3,4,1)(3, 4, 1).

Example 3

medium
Convert the parametric line x=1βˆ’2t,Β y=3+t,Β z=5+4tx = 1 - 2t,\ y = 3 + t,\ z = 5 + 4t to symmetric form.

Example 4

hard
Determine whether L1:(t,1+t,2βˆ’t)L_1: (t, 1+t, 2-t) and L2:(1+2s,3,1+s)L_2: (1+2s, 3, 1+s) are parallel, intersecting, or skew.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

medium
Determine whether the lines β„“1:x=1+t,y=2βˆ’t,z=3+2t\ell_1: x = 1+t, y = 2-t, z = 3+2t and β„“2:x=3+2s,y=βˆ’s,z=7+4s\ell_2: x = 3+2s, y = -s, z = 7+4s are parallel, intersecting, or skew.

Example 2

hard
Find the distance between the parallel lines β„“1:xβˆ’12=y1=z+1βˆ’1\ell_1: \frac{x-1}{2} = \frac{y}{1} = \frac{z+1}{-1} and β„“2:xβˆ’32=yβˆ’11=zβˆ’1\ell_2: \frac{x-3}{2} = \frac{y-1}{1} = \frac{z}{-1}.

Example 3

easy
Write parametric equations for the line through (1,2,3)(1,2,3) with direction ⟨4,5,6⟩\langle 4,5,6 \rangle.

Example 4

easy
Find a point on the line x=2+t,Β y=βˆ’1+2t,Β z=3tx = 2+t,\ y = -1+2t,\ z = 3t at t=1t = 1.

Example 5

easy
What is the direction vector of x=1βˆ’2t,Β y=4+t,Β z=5x = 1-2t,\ y = 4+t,\ z = 5?

Example 6

easy
Write the symmetric form of the line through (0,1,2)(0,1,2) with direction ⟨3,4,5⟩\langle 3,4,5 \rangle.

Example 7

easy
Are the lines with directions ⟨2,4,6⟩\langle 2,4,6 \rangle and ⟨1,2,3⟩\langle 1,2,3 \rangle parallel?

Example 8

easy
A line has direction ⟨0,1,0⟩\langle 0, 1, 0 \rangle through (2,0,5)(2,0,5). Why can't you write full symmetric form?

Example 9

easy
Find where the line x=t,Β y=2t,Β z=3tx=t,\ y=2t,\ z=3t meets the xyxy-plane.

Example 10

easy
Is the point (5,3,1)(5,3,1) on the line x=1+2t,Β y=1+t,Β z=1x=1+2t,\ y=1+t,\ z=1?

Example 11

medium
Find parametric equations of the line through (1,0,2)(1,0,2) and (3,4,2)(3,4,2).

Example 12

medium
Do the lines L1:(t,2t,3t)L_1: (t, 2t, 3t) and L2:(1+s,2+s,3+s)L_2: (1+s, 2+s, 3+s) intersect?

Example 13

medium
Show that L1:(t,0,0)L_1:(t, 0, 0) and L2:(0,s,1)L_2:(0, s, 1) are skew.

Example 14

medium
Find the point where x=1+t,Β y=2βˆ’t,Β z=tx=1+t,\ y=2-t,\ z=t meets the plane z=4z=4.

Example 15

medium
Convert symmetric form xβˆ’12=y+3βˆ’1=z4\frac{x-1}{2} = \frac{y+3}{-1} = \frac{z}{4} to parametric form.

Example 16

medium
Find a direction vector for the line of intersection of the planes' normals ⟨1,0,0⟩\langle1,0,0\rangle and ⟨0,1,0⟩\langle0,1,0\rangle via cross product.

Example 17

medium
Does the point (2,2,2)(2,2,2) lie on x=t,Β y=2t,Β z=3tx=t,\ y=2t,\ z=3t?

Example 18

medium
Find parametric equations for the line through (0,0,0)(0,0,0) parallel to ⟨1,βˆ’1,2⟩\langle1,-1,2\rangle.

Example 19

medium
Find the midpoint of the segment of the line x=t,Β y=2t,Β z=tx=t,\ y=2t,\ z=t between t=0t=0 and t=2t=2.

Example 20

challenge
Find the point of intersection of L1:(1+t,2t,3βˆ’t)L_1:(1+t, 2t, 3-t) and the plane 2x+yβˆ’z=52x + y - z = 5.

Example 21

challenge
Determine whether L1:(t,1+t,2+t)L_1:(t,1+t,2+t) and L2:(2βˆ’s,3βˆ’s,4βˆ’s)L_2:(2-s, 3-s, 4-s) intersect, are parallel, or are skew.

Example 22

challenge
Find the distance from the point (0,0,0)(0,0,0) to the line x=1+t, y=1, z=1x=1+t,\ y=1,\ z=1 (direction ⟨1,0,0⟩\langle1,0,0\rangle).

Example 23

easy
Write parametric equations for the line through (0,0,0)(0, 0, 0) with direction ⟨1,2,3⟩\langle 1, 2, 3 \rangle.

Example 24

easy
Find the point on the line x=1+2t,Β y=3βˆ’t,Β z=4tx = 1 + 2t,\ y = 3 - t,\ z = 4t when t=2t = 2.

Example 25

easy
Is the point (7,0,5)(7, 0, 5) on the line x=3+2t,Β y=4βˆ’2t,Β z=1+2tx = 3 + 2t,\ y = 4 - 2t,\ z = 1 + 2t?

Example 26

easy
Write symmetric equations of the line through (2,1,βˆ’3)(2, 1, -3) with direction ⟨1,4,2⟩\langle 1, 4, 2 \rangle.

Example 27

easy
Find a direction vector for the line through (1,1,1)(1, 1, 1) and (4,5,7)(4, 5, 7).

Example 28

medium
Find parametric equations for the line through (2,βˆ’1,4)(2, -1, 4) and (5,3,βˆ’2)(5, 3, -2).

Example 29

medium
Find where the line x=2+t,Β y=βˆ’1+2t,Β z=3βˆ’tx = 2 + t,\ y = -1 + 2t,\ z = 3 - t crosses the xyxy-plane.

Example 30

medium
Determine whether the lines L1:(1+t,2βˆ’t,3+2t)L_1: (1+t, 2-t, 3+2t) and L2:(2+s,1+s,5)L_2: (2+s, 1+s, 5) are parallel, intersecting, or skew.

Example 31

medium
Find where the line x=1+2t,Β y=βˆ’t,Β z=3+tx = 1 + 2t,\ y = -t,\ z = 3 + t meets the xzxz-plane.

Example 32

medium
A line has direction ⟨2,0,βˆ’3⟩\langle 2, 0, -3 \rangle and passes through (1,4,5)(1, 4, 5). Write parametric equations.

Example 33

medium
Find the value of tt at which the line x=3t,Β y=1+t,Β z=2βˆ’tx = 3t,\ y = 1 + t,\ z = 2 - t has z=0z = 0. What point is that?

Example 34

medium
Write parametric equations of the line through (0,2,βˆ’1)(0, 2, -1) parallel to the line x=1+4t,Β y=3βˆ’t,Β z=5tx = 1 + 4t,\ y = 3 - t,\ z = 5t.

Example 35

hard
Find the intersection of the line x=1+t,Β y=2t,Β z=3+tx = 1 + t,\ y = 2t,\ z = 3 + t with the plane x+yβˆ’z=4x + y - z = 4.

Example 36

hard
Show that the lines L1:(2+t,1βˆ’t,3+t)L_1: (2+t, 1-t, 3+t) and L2:(1+2s,4βˆ’2s,2+2s)L_2: (1+2s, 4-2s, 2+2s) are parallel and find a vector connecting them.

Example 37

hard
Find parametric equations for the line through (1,2,3)(1, 2, 3) perpendicular to both ⟨1,0,0⟩\langle 1, 0, 0 \rangle and ⟨0,1,0⟩\langle 0, 1, 0 \rangle.

Example 38

hard
Find the distance from the point (1,2,3)(1, 2, 3) to the line x=t,Β y=t,Β z=tx = t,\ y = t,\ z = t.

Example 39

hard
Find parametric equations of the line through (2,3,5)(2, 3, 5) perpendicular to the plane 2xβˆ’y+3z=12x - y + 3z = 1.

Example 40

hard
Lines L1:(t,0,0)L_1: (t, 0, 0) and L2:(s,1,1)L_2: (s, 1, 1) have the same direction ⟨1,0,0⟩\langle 1, 0, 0 \rangle. Find the distance between them.

Example 41

hard
Find the point on the line x=2t,Β y=1+t,Β z=βˆ’tx = 2t,\ y = 1 + t,\ z = -t closest to the origin.

Example 42

challenge
Show that the line L:(1+t,2βˆ’t,3+t)L: (1+t, 2-t, 3+t) is parallel to the plane x+2y+z=10x + 2y + z = 10, and find the distance from the line to the plane.

Background Knowledge

These ideas may be useful before you work through the harder examples.

parametric equations