\( \newcommand{\R}{\mathbb{R}} \newcommand{\norm}[1]{\left\lVert #1 \right\rVert} \newcommand{\la}{\left\langle} \newcommand{\ra}{\right\rangle} \newcommand{\bbm}{\begin{bmatrix}} \newcommand{\ebm}{\end{bmatrix}} \newcommand{\orr}{\overrightarrow} \newcommand{\i}{\hat{\imath}} \newcommand{\j}{\hat{\jmath}} \newcommand{\k}{\hat{k}} \newcommand{\dotp}{\boldsymbol{\cdot}} \newcommand{\uu}{\vec{u}} \newcommand{\vv}{\vec{v}} \newcommand{\ww}{\vec{w}} \newcommand{\amp}{&} \newcommand{\proj}{\operatorname{proj}} \)

Math 1410, Spring 2020

Lines in three dimensions

January 16, 2020

Sean Fitzpatrick
University of Lethbridge

Recap

Warm-up

For the vectors \(\uu = \la 3, -1, 4\ra, \vv = \la -2, -2, 5\ra, \ww = \la 0,4,-3\ra \text{,}\) find:

  1. \(\displaystyle \vec{u}\dotp(2\vec{v}-\vec{w})\)
  2. \(\displaystyle (2\vec{u})\dotp\vec{v}-\vec{u}\dotp\vec{w}\)
  3. A value of \(c\) such that \(\uu\) is orthogonal to \(\vv+c\ww\)

Orthogonal vectors

Recall: for vectors \(\vv,\ww\text{,}\) \(\vv\dotp\ww = \norm{\vv}\,\norm{\ww}\cos\theta\text{,}\) where \(\theta\) is the angle between \(\vv\) and \(\ww\text{.}\)

Most useful for us: when \(\theta = \pi/2\text{.}\)

Definition:

We say that two vectors \(\vv, \ww\) are orthogonal if \(\vv\dotp\ww = 0\text{.}\)

Cross products

Cross products

  • Defined for vectors in \(\R^3\) only.

  • Produces a vector rather than a scalar.

  • Cross product \(\vv\times \ww\) is orthogonal to both \(\vv\) and \(\ww\text{.}\)

  • Definition: if \(\vv = \la v_1,v_2,v_3\ra, \ww = \la w_1,w_2,w_3\ra\text{,}\)

    \begin{equation*} \vv\times\ww = \la v_2w_3-v_3w_2,v_3w_1-v_1w_3,v_1w_2-v_2w_1\ra\text{.} \end{equation*}
    (Easier to remember using “determinant trick”.)

Example

Let \(\uu = \la 3, -1, 2\ra, \vv = \la 0, 2, -1\ra, \ww = \la -2, 0, 4\ra\text{.}\) Find:

  • \(\uu\times \vv\)

  • \(\vv\times \ww\)

  • \(\ww\times \vv\)

Properties

  1. \(\vv\times \ww = -\ww\times \vv\)

  2. \(\vv\times (c\ww) = (c\vv)\times \ww = c(\vv\times \ww)\)

  3. \(\uu\times (\vv+\ww)=\uu\times \vv+\uu\times \ww\)

  4. \(\vv\times \ww\) is orthogonal to both \(\vv\) and \(\ww\text{.}\)

Areas and angles

If the angle between \(\vv\) and \(\ww\) is \(\theta\text{,}\)

\begin{equation*} \norm{\vv\times\ww} = \norm{\vv}\,\norm{\ww}\sin\theta\text{.} \end{equation*}
The direction of \(\vv\times\ww\) given by “right-hand rule”.

Useful to note: if \(\vv\) and \(\ww\) form 2 of 4 sides of a parallelogram, that parallelogram has area \(A = \norm{\vv}\,\norm{\ww}\sin\theta\text{.}\)

Examples

Let \(P=(0,2,-1), Q = (3, 1, -2), R = (4, -2, 0), S = (7, -3, -1)\text{.}\)

Verify that the quadrilateral with these vertices is a parallelogram, and find its area.

What about the triangle \(\Delta PQR\text{?}\)

Lines

Lines the plane

We all know lines in the plane: \(y=mx+b\) gives a line with slope \(m\) passing through \((0,b)\text{.}\) Does slope make sense in \(\R^3\text{?}\)

Example:

Describe the line through the points \((1,-2)\) and \((3,4)\text{:}\)

  1. Using a “slope-intercept” equation

  2. Using vectors

Lines in space

  • In \(\R^3\text{,}\) to specify a line we need a point (on the line), and a direction (vector).

  • Suppose \(P_0 = (x_0,y_0,z_0)\) and \(P=(x,y,z)\) are two points on a line in the direction of a vector \(\vv = \la a,b,c\ra\text{.}\) What can we say about the vector \(\overrightarrow{P_0P}\text{?}\)

Vector and parametric equations

Points on a line in space are given in terms of a parameter (usually \(t\) — we can think of motion in a straight line, with \(t\) as time).

  • The vector equation of a line through \(P_0=(x_0,y_0,z_0)\) in the direction of \(\vv = \la a,b,c\ra\) is

    \begin{equation*} \la x,y,z,\ra = \la x_0,y_0,z_0\ra + t \la a,b,c\ra\text{,} \end{equation*}
    or \(\vec{x}=\vec{x}_0+t\vv\text{,}\) for short.

  • Sometimes see \(\vec{r}\) or \(\vec{r}(t)\) instead of \(\vec{x}\text{.}\)

  • Equating coefficients in the vector equation gives the parametric equations:

    \begin{align*} x \amp = x_0+at\\ y \amp = y_0+bt\\ z \amp = z_0+ct\text{.} \end{align*}

Examples

Find the vector equations of the lines:

  1. Through the point \(P_0 = (2,-5,1)\) in the direction of \(\vv = \la 6,-7,3\ra\)

  2. Through the points \(P=(4,5,-3)\) and \(Q=(-1,8,2)\text{.}\)

  3. Through the point \(P_0=(4,5,-9)\) and parallel to the line

    \begin{equation*} \vec{r}(t) = \la 3-4t, -6+8t, 2-7t\ra\text{.} \end{equation*}

Comparing lines: intersecting, parallel, skew

  • Two lines in \(\R^3\) are parallel if their direction vectors are parallel.

  • Not all paralell lines intersect: some are skew.

  • Checking for intersection leads to a system of equations. (Be sure to use a different parameter for each line.)

Example:

Determine if the following pairs of lines are parallel, skew, or if they intersect.

  1. \(\vec{r}_1(s) = \la 3, -2, 4\ra + s\la 4,-2,6\ra\) and \(\vec{r}_2(t) = \la 2,2,2\ra + t\la -6, 3, -9\ra\)

  2. \(\vec{r}_1(s) = \la 3, 1, 1\ra + s\la 2, -1, 3\ra\) and \(\vec{r}_2(t) = \la 1,0,-1\ra + t\la 1, 2, 1\ra\)

  3. \(\vec{r}_1(s) = \la 0, 1, 2\ra + s\la 4, -2, 1\ra\) and \(\vec{r}_2(t) = \la -2, -3, 7 \ra + t\la 3, 1, -2\ra\)

Orthogonal projection

Given vectors \(\uu\) (not equal to \(\vec{0}\)) and \(\vv\text{,}\) often useful to write \(\vv\) as the sum of a vector parallel to \(\uu\text{,}\) and a vector orthogonal to \(\uu\text{.}\)

Vector \(\vec{a}\) called the projection of \(\vv\) onto \(\uu\text{.}\) Notation and formula:

\begin{equation*} \proj_{\uu}\vv = \left(\frac{\uu\dotp \vv}{\norm{\uu}^2}\right)\uu\text{.} \end{equation*}

Distance

Example:

  1. Find the distance from the point \(P=(3,1,2)\) to the line

    \begin{equation*} \la x,y,z\ra = \la 0, 2, -1\ra + t \la 2, -1, 2\ra\text{.} \end{equation*}

  2. Find the distance between the parallel lines

    \begin{equation*} \vec{r}_1(t) = \la 2, -1, 3\ra + t\la 1, 2, 3\ra, \text{ and } \vec{r}_2(t) = \la -4, 1, 3\ra + t\la 2, 4, 6\ra\text{.} \end{equation*}