Topic 2

Equations of Lines in 2D and 3D

Every line is ⟨x,y,z⟩=P+t d\langle x, y, z\rangle = P + t\,\mathbf d, with a point PP on it and a direction d\mathbf d along it. The tt can be any number. Each recipe below finds PP and d\mathbf d, or compares two lines. Distances all come from a or a cross product.

5 kinds of question. Open the one you are stuck on.

1

Find parametric and symmetric equations of a line

e.g. “Find the vector parametric, scalar parametric and symmetric equations for the line containing the given point and with the given direction”
  1. 1
    Find one point PP on the line
  2. 2
    Find a direction vector d\mathbf d

    Two points: Q−PQ - P. A 2D ⟨a,b⟩\langle a, b\rangle: d=⟨−b,a⟩\mathbf d = \langle -b, a\rangle. Perpendicular to a plane: its normal. Parallel to two planes: n1×n2\mathbf n_1\times\mathbf n_2.

  3. 3
    Vector form: ⟨x,y,z⟩=P+t d\langle x, y, z\rangle = P + t\,\mathbf d
  4. 4
    Read off xx, yy, zz; solve each for tt

    Set the tt's equal to get the . Never divide by a 00 in d\mathbf d: that coordinate stays as its own equation, like z=3z = 3.

Remember: One point, one direction.

See it in a problem3 worked examples

Find vector parametric, scalar parametric and symmetric equations for the line through (2,−1,3)(2, -1, 3) and (5,1,3)(5, 1, 3).

  1. 1
    Find one point PP on the line

    P=(2,−1,3)P = (2, -1, 3).

  2. 2
    Find a direction vector d\mathbf d

    d=(5,1,3)−(2,−1,3)=⟨3,2,0⟩\mathbf d = (5, 1, 3) - (2, -1, 3) = \langle 3, 2, 0\rangle.

  3. 3
    Vector form: ⟨x,y,z⟩=P+t d\langle x, y, z\rangle = P + t\,\mathbf d

    ⟨x,y,z⟩=⟨2,−1,3⟩+t⟨3,2,0⟩\langle x, y, z\rangle = \langle 2, -1, 3\rangle + t\langle 3, 2, 0\rangle.

  4. 4
    Read off xx, yy, zz; solve each for tt

    x=2+3tx = 2 + 3t, y=−1+2ty = -1 + 2t, z=3z = 3. Symmetric: x−23=y+12\dfrac{x - 2}{3} = \dfrac{y + 1}{2}, z=3z = 3.

Answer:

⟨x,y,z⟩=⟨2,−1,3⟩+t⟨3,2,0⟩\langle x, y, z\rangle = \langle 2, -1, 3\rangle + t\langle 3, 2, 0\rangle;  x=2+3t, y=−1+2t, z=3\ x = 2 + 3t,\ y = -1 + 2t,\ z = 3;  x−23=y+12, z=3\ \dfrac{x - 2}{3} = \dfrac{y + 1}{2},\ z = 3

Common mistakes3
  • Dividing by a 00 in symmetric form. If d3=0d_3 = 0, write x−x0d1=y−y0d2\dfrac{x - x_0}{d_1} = \dfrac{y - y_0}{d_2}, z=z0z = z_0.
  • Using a 2D normal as the direction. The normal is perpendicular to the line: swap its components and change one sign.
  • Your answer can differ from the key and still be right. Any point on the line works, and so does any nonzero multiple of the direction.
2

Find the line of intersection of two planes

e.g. “Find a vector parametric equation for the line of intersection of the given planes”
  1. 1
    Read the normals n1\mathbf n_1, n2\mathbf n_2 from the coefficients

    Parallel normals mean parallel (or identical) planes: no single line of intersection.

  2. 2
    Direction: d=n1×n2\mathbf d = \mathbf n_1\times\mathbf n_2

    Divide out any common factor to keep the numbers small.

  3. 3
    Find one point: set a variable to 00 and solve

    If that gives a contradiction, set a different variable to 00.

  4. 4
    Write ⟨x,y,z⟩=P+t d\langle x, y, z\rangle = P + t\,\mathbf d

    Check by substituting into both plane equations.

Remember: Cross the normals, then find one point.

See it in a problem3 worked examples

Find a vector parametric equation for the line of intersection of x+y−z=2x + y - z = 2 and 2x−y+z=72x - y + z = 7.

  1. 1
    Read the normals n1\mathbf n_1, n2\mathbf n_2 from the coefficients

    n1=⟨1,1,−1⟩\mathbf n_1 = \langle 1, 1, -1\rangle, n2=⟨2,−1,1⟩\mathbf n_2 = \langle 2, -1, 1\rangle: not parallel.

  2. 2
    Direction: d=n1×n2\mathbf d = \mathbf n_1\times\mathbf n_2

    n1×n2=⟨1−1, −2−1, −1−2⟩=⟨0,−3,−3⟩\mathbf n_1\times\mathbf n_2 = \langle 1 - 1,\ -2 - 1,\ -1 - 2\rangle = \langle 0, -3, -3\rangle. Use d=⟨0,1,1⟩\mathbf d = \langle 0, 1, 1\rangle.

  3. 3
    Find one point: set a variable to 00 and solve

    z=0z = 0: x+y=2x + y = 2, 2x−y=72x - y = 7, so x=3x = 3, y=−1y = -1. P=(3,−1,0)P = (3, -1, 0).

  4. 4
    Write ⟨x,y,z⟩=P+t d\langle x, y, z\rangle = P + t\,\mathbf d

    ⟨x,y,z⟩=⟨3,−1,0⟩+t⟨0,1,1⟩\langle x, y, z\rangle = \langle 3, -1, 0\rangle + t\langle 0, 1, 1\rangle. Check: 3+(−1+t)−t=23 + (-1 + t) - t = 2 and 6−(−1+t)+t=76 - (-1 + t) + t = 7.

Answer:

⟨x,y,z⟩=⟨3,−1,0⟩+t⟨0,1,1⟩\langle x, y, z\rangle = \langle 3, -1, 0\rangle + t\langle 0, 1, 1\rangle

Common mistakes3
  • Setting z=0z = 0 when the line never reaches z=0z = 0. This can happen when d3=0d_3 = 0. Pick another variable.
  • Planes like x+y+z=3x + y + z = 3 and 2x+2y+2z=72x + 2y + 2z = 7 are parallel and do not meet at all.
  • Your point can differ from the key and still be right: any point on the line works.
3

Determine whether two lines intersect, are parallel or are skew

e.g. “In each case, determine whether or not the given pair of lines intersect”
  1. 1
    Write both lines with different parameters, tt and ss
  2. 2
    Set the coordinates equal; solve two of the equations
  3. 3
    Check the third equation

    True: they meet; plug in to get the point. False: they have no common point.

  4. 4
    Name the case: intersecting, parallel or skew

    No common point? If the directions are multiples, the lines are parallel. Otherwise they are .

Remember: Two parameters, solve two, test the third.

See it in a problem3 worked examples

Do the lines ⟨1,2,0⟩+t⟨1,−1,2⟩\langle 1, 2, 0\rangle + t\langle 1, -1, 2\rangle and ⟨1,−1,5⟩+s⟨2,1,−1⟩\langle 1, -1, 5\rangle + s\langle 2, 1, -1\rangle intersect?

  1. 1
    Write both lines with different parameters, tt and ss

    (1+t, 2−t, 2t)(1 + t,\ 2 - t,\ 2t) and (1+2s, −1+s, 5−s)(1 + 2s,\ -1 + s,\ 5 - s).

  2. 2
    Set the coordinates equal; solve two of the equations

    xx: t=2st = 2s. yy: 2−2s=−1+s2 - 2s = -1 + s, so s=1s = 1, t=2t = 2.

  3. 3
    Check the third equation

    zz: 2t=42t = 4 and 5−s=45 - s = 4. True, so the point is (3,0,4)(3, 0, 4).

  4. 4
    Name the case: intersecting, parallel or skew

    They meet at a single point: intersecting.

Answer:

They intersect at (3,0,4)(3, 0, 4).

Common mistakes3
  • Using the same tt for both lines. They can pass through the same point at different parameter values.
  • Solving two equations and forgetting to test the third: that test is the whole question.
  • In 3D, lines that do not meet need not be parallel: they can be skew. If all three equations hold for every tt, the two lines are the same line.
4

Find the distance from a point to a line

e.g. “Use a projection to find the distance from the point … to the line …”
  1. 1
    Pick a point PP on the line and its direction d\mathbf d

    A 2D line ax+by=cax + by = c has d=⟨−b,a⟩\mathbf d = \langle -b, a\rangle. A line given by two planes: use the line-of-intersection recipe.

  2. 2
    Form w=Q−P\mathbf w = Q - P, from the line to the point
  3. 3
    Remove the part along the line: w−projdw\mathbf w - \text{proj}_{\mathbf d}\mathbf w

    projdw=w⋅d∣d∣2 d\text{proj}_{\mathbf d}\mathbf w = \dfrac{\mathbf w\cdot\mathbf d}{|\mathbf d|^2}\,\mathbf d.

  4. 4
    The distance is the length of what is left

    3D shortcut: ∣w×d∣∣d∣\dfrac{|\mathbf w\times\mathbf d|}{|\mathbf d|}. 2D shortcut: ∣ax0+by0−c∣a2+b2\dfrac{|ax_0 + by_0 - c|}{\sqrt{a^2 + b^2}}.

Remember: Point to point, then strip off the part along the line.

See it in a problem3 worked examples

Use a projection to find the distance from (4,2)(4, 2) to the line 2x+y=22x + y = 2.

  1. 1
    Pick a point PP on the line and its direction d\mathbf d

    P=(1,0)P = (1, 0) is on the line (2+0=22 + 0 = 2); d=⟨−1,2⟩\mathbf d = \langle -1, 2\rangle.

  2. 2
    Form w=Q−P\mathbf w = Q - P, from the line to the point

    w=(4,2)−(1,0)=⟨3,2⟩\mathbf w = (4, 2) - (1, 0) = \langle 3, 2\rangle.

  3. 3
    Remove the part along the line: w−projdw\mathbf w - \text{proj}_{\mathbf d}\mathbf w

    w⋅d=1\mathbf w\cdot\mathbf d = 1, ∣d∣2=5|\mathbf d|^2 = 5: ⟨3,2⟩−15⟨−1,2⟩=⟨165,85⟩\langle 3, 2\rangle - \tfrac{1}{5}\langle -1, 2\rangle = \left\langle \tfrac{16}{5}, \tfrac{8}{5}\right\rangle.

  4. 4
    The distance is the length of what is left

    85∣⟨2,1⟩∣=855\tfrac{8}{5}|\langle 2, 1\rangle| = \tfrac{8\sqrt 5}{5}. Check: ∣8+2−2∣5=85\dfrac{|8 + 2 - 2|}{\sqrt 5} = \dfrac{8}{\sqrt 5}.

Answer:

85=855\dfrac{8}{\sqrt 5} = \dfrac{8\sqrt 5}{5}

Common mistakes3
  • Using QQ by itself instead of w=Q−P\mathbf w = Q - P.
  • Dividing by ∣d∣|\mathbf d| in the projection: the vector projection divides by ∣d∣2|\mathbf d|^2.
  • Distance between two parallel lines: pick any point on one and use this recipe with the other.
5

Find the distance between two skew lines

e.g. “Calculate the distance between the lines … and … (given in symmetric form)”
  1. 1
    Read a point and a direction from each line

    Symmetric form x−x0a=y−y0b=z−z0c\dfrac{x - x_0}{a} = \dfrac{y - y_0}{b} = \dfrac{z - z_0}{c}: point (x0,y0,z0)(x_0, y_0, z_0), direction ⟨a,b,c⟩\langle a, b, c\rangle.

  2. 2
    Common normal: n=d1×d2\mathbf n = \mathbf d_1\times\mathbf d_2

    If n=0\mathbf n = \mathbf 0 the lines are parallel: use the point-to-line recipe instead.

  3. 3
    Join the lines: w=P2−P1\mathbf w = P_2 - P_1
  4. 4
    Distance =∣w⋅n∣∣n∣= \dfrac{|\mathbf w\cdot\mathbf n|}{|\mathbf n|}

    A distance of 00 means the lines intersect.

Remember: Cross the directions, project the gap.

See it in a problem3 worked examples

Find the distance between the lines x−12=y−1=z+1\dfrac{x - 1}{2} = \dfrac{y}{-1} = z + 1 and x=y−2=z−3−2x = y - 2 = \dfrac{z - 3}{-2}.

  1. 1
    Read a point and a direction from each line

    P1=(1,0,−1)P_1 = (1, 0, -1), d1=⟨2,−1,1⟩\mathbf d_1 = \langle 2, -1, 1\rangle; P2=(0,2,3)P_2 = (0, 2, 3), d2=⟨1,1,−2⟩\mathbf d_2 = \langle 1, 1, -2\rangle.

  2. 2
    Common normal: n=d1×d2\mathbf n = \mathbf d_1\times\mathbf d_2

    n=⟨2−1, 1+4, 2+1⟩=⟨1,5,3⟩\mathbf n = \langle 2 - 1,\ 1 + 4,\ 2 + 1\rangle = \langle 1, 5, 3\rangle.

  3. 3
    Join the lines: w=P2−P1\mathbf w = P_2 - P_1

    w=⟨−1,2,4⟩\mathbf w = \langle -1, 2, 4\rangle.

  4. 4
    Distance =∣w⋅n∣∣n∣= \dfrac{|\mathbf w\cdot\mathbf n|}{|\mathbf n|}

    w⋅n=−1+10+12=21\mathbf w\cdot\mathbf n = -1 + 10 + 12 = 21, ∣n∣=35|\mathbf n| = \sqrt{35}: D=2135D = \dfrac{21}{\sqrt{35}}.

Answer:

2135=3355\dfrac{21}{\sqrt{35}} = \dfrac{3\sqrt{35}}{5}

Common mistakes3
  • Dividing by ∣n∣2|\mathbf n|^2. For a distance, divide by ∣n∣|\mathbf n| only once.
  • Reading the point from x+23\dfrac{x + 2}{3} as x0=2x_0 = 2. It is x0=−2x_0 = -2.
  • Dropping the absolute value and reporting a negative distance.

Need the formulas? Must memorize · Flashcards

Found this helpful? Leave us a review on Google ↗Spotted a mistake?

Which topics are you reviewing?

The topic list, Flashcards, Must memorize and Exam words will only show these. Change it any time with the Topics button above the topic list.

Vectors & geometry
Partial derivatives
Optimization
Multiple integrals
11 of 20 topics selected