Each lab worksheet will contain several activities, most of which will involve writing math on paper, and some of which will involve running code in a Jupyter Notebook. To receive credit for today’s lab, you must show your lab TA your work on this worksheet.
While you must get checked off by your lab TA individually, we encourage you to form groups with 1-2 other students to complete the activities together.
Today’s lab is split into two parts, all of which are covered in Chapter 2.4 of the course notes:
Activities 1-4 involve content from the previous two lectures.
Activities 5-8 involve affine lines and planes in \(\mathbb{R}^3\) – that is, objects that don’t necessarily pass through the origin, \((0,0,0)\). We will give a brief overview of these in lab and revisit them in tomorrow’s lecture. (Activities 5-8 are the same as Questions 5-8 from yesterday’s lecture worksheet, which we didn’t get to.)
Activity 1: The Span of One Vector
The line \(\ell\) is given in scalar-parametric form by
Find a vector \(\vec{u}\) such that \(\ell=\operatorname{span}(\vec{u})\).
Solution
The line \(\ell\) consists of all scalar multiples of a single direction vector. Any nonzero point on \(\ell\) gives such a direction vector; setting \(t=1\) is convenient because we can read the coefficients directly:
To see that \(\operatorname{span}(\vec{w})=\operatorname{span}(\vec{u})\), we check both containments. If \(\vec{x}\in\operatorname{span}(\vec{w})\), then \(\vec{x}=c\vec{w}=c(2\vec{u})=(2c)\vec{u}\in\operatorname{span}(\vec{u})\). Conversely, if \(\vec{x}=t\vec{u}\), then \(\vec{x}=\frac{t}{2}\vec{w}\in\operatorname{span}(\vec{w})\). So the two spans are equal and describe the same line through the origin.
Activity 2: The Same Plane, Different Directions
The plane \(P\) is given in scalar-parametric form by
Are \(\vec{u}\) and \(\vec{v}\) the only pair of vectors that span \(P\)? Compute \(\vec{u}+\vec{v}\) and \(\vec{u}-\vec{v}\), and explain why this pair also spans \(P\). Hint: Can you write each of \(\vec{u}\) and \(\vec{v}\) as a linear combination of \(\vec{u}+\vec{v}\) and \(\vec{u}-\vec{v}\)?
Solution
No. A plane has many (in fact, infinitely!) pairs of spanning vectors. Any two vectors that live on the plane that are not scalar multiples of each other span the plane. Using the vectors from part (a),
Use \(\vec{u}+\vec{v}\) and \(\vec{u}-\vec{v}\) to write a different scalar-parametric form for \(P\). Write your answer as equations for \(x\), \(y\), and \(z\), and state the possible values of your parameters.
Solution
Replace \(\vec{u}\) and \(\vec{v}\) with \(\vec{u}+\vec{v}\) and \(\vec{u}-\vec{v}\) in the vector form from part (a). Using parameters \(s,t\in\mathbb{R}\),
This is a different parametrization of the same plane. For example, the original form with \(s=1,t=0\) gives \((1,1,0)\), and here that point occurs when \(s=\tfrac12,t=\tfrac12\).
Write \(P\) in scalar-parametric form by writing three separate equations: one for \(x\), one for \(y\), and one for \(z\). All three should use the same two parameters, \(s,t\in\mathbb{R}\).
Solution
Since \(P=\operatorname{span}(\vec{u},\vec{v})\), every point in \(P\) has the form \(s\vec{u}+t\vec{v}\):
Any nonzero scalar multiple of \(\vec{n}\) is also correct.
c)
Use \(\vec{n}\) to write a linear equation of the form \(ax+by+cz=0\) for \(P\). Graph your equation on Desmos, desmos.com/3d.
Solution
Because \(P\) passes through the origin, every point \(\begin{bmatrix}x\\y\\z\end{bmatrix}\) in \(P\) satisfies \(\vec{n}\cdot\begin{bmatrix}x\\y\\z\end{bmatrix}=0\). With \(\vec{n}=\begin{bmatrix}1\\2\\3\end{bmatrix}\), this becomes
$$ x+2y+3z=0. $$
On Desmos 3D, graph this equation. It should match the parametric plane from part (a): same plane, just written in a different form.
Find two vectors that are both orthogonal to \(\begin{bmatrix}5\\-9\\2\end{bmatrix}\) and are not scalar multiples of each other, i.e. two linearly independent vectors on \(\ell^\perp\).
Solution
We need two linearly independent vectors in \(\ell^\perp\), the plane of vectors orthogonal to \(\ell\). If \(\vec{n}=\begin{bmatrix}a\\b\\c\end{bmatrix}\) is orthogonal to \(\vec{d}=\begin{bmatrix}5\\-9\\2\end{bmatrix}\), then
$$ 5a-9b+2c=0. $$
We can find two different solutions by setting convenient variables to zero. Setting \(a=0\) and \(b=2\) gives \(c=9\), so
These two vectors are not scalar multiples of each other, so they form a basis for \(\ell^\perp\).
b)
Use those vectors to write a system of two linear equations and three unknowns (\(x\), \(y\), and \(z\)) whose solution set is the line \(\ell\).
Solution
Each vector \(\vec{n}_i\) is normal to a plane through the origin. A point \(\begin{bmatrix}x\\y\\z\end{bmatrix}\) lies on that plane exactly when \(\vec{n}_i\cdot\begin{bmatrix}x\\y\\z\end{bmatrix}=0\). Since \(\ell\) passes through the origin, it is the intersection of the two planes orthogonal to \(\vec{n}_1\) and \(\vec{n}_2\):
A point lies on \(\ell\) exactly when it satisfies both equations.
c)
Graph both equations on Desmos, desmos.com/3d. What do they look like?
Solution
Each equation describes a plane through the origin in \(\mathbb{R}^3\). On Desmos, you should see two flat sheets that cross along a single line. That intersection line is exactly
This illustrates the general idea: a line through the origin can be described as the intersection of two planes through the origin.
The remaining activities are about affine lines and planes – that is, objects that don’t necessarily pass through the origin, \((0,0,0)\). These are discussed at the bottom of Chapter 2.4. We will give a brief overview ~an hour into lab to help you get started.
Write \(\ell’\) explicitly in vector-parametric form.
$$ \ell' = \left\{ \hspace{11cm} \right\}. $$
Solution
The notation \(\vec{p}+\operatorname{span}(\vec{d})\) means: start at the point \(\vec{p}\), then add every scalar multiple of \(\vec{d}\). Here \(\vec{p}=\begin{bmatrix}1\\2\\-1\end{bmatrix}\) and \(\vec{d}=\begin{bmatrix}2\\-1\\3\end{bmatrix}\), so
Graph \(\ell’\) on Desmos, desmos.com/3d. To get the entire line to appear, you may have to change the upper and lower bounds for \(t\).
Solution
In Desmos 3D, enter the parametric curve \((1+2t,2-t,-1+3t)\). Unlike a line through the origin, this affine line passes through \((1,2,-1)\) but not through \((0,0,0)\). You may need to widen the bounds for \(t\) so the entire line appears on screen.
Activity 6: An Affine Plane in Parametric Form
Now let’s switch to discussing affine planes. Let \(\displaystyle P’ = \begin{bmatrix} 2\\ -1\\ 4 \end{bmatrix} + \operatorname{span} \left( \begin{bmatrix} 1\\ 2\\ -1 \end{bmatrix}, \begin{bmatrix} 2\\ -1\\ 3 \end{bmatrix} \right).\)
a)
Write \(P’\) explicitly in vector-parametric form using two parameters \(s\) and \(t\).
$$ P' = \left\{ \hspace{11cm} \right\}. $$
Solution
An affine plane is a base point plus all linear combinations of two direction vectors. Here the base point is \(\begin{bmatrix}2\\-1\\4\end{bmatrix}\), and the plane is spanned by \(\begin{bmatrix}1\\2\\-1\end{bmatrix}\) and \(\begin{bmatrix}2\\-1\\3\end{bmatrix}\):
Graph \(P’\) on Desmos. Start with https://www.desmos.com/3d/llepnyv69l (found by Googling “plane in parametric form on Desmos”) and make modifications as necessary.
Solution
Use the scalar-parametric equations from part (b) in Desmos 3D. The graph should be a flat sheet through \((2,-1,4)\). It is an affine plane because it does not necessarily pass through the origin: setting \(s=t=0\) gives \((2,-1,4)\), but there is no choice of \(s,t\) that produces \((0,0,0)\).
A point \(\displaystyle \begin{bmatrix} x\\ y\\ z \end{bmatrix}\) lies in \(P’\) when \(\displaystyle \vec n\cdot \begin{bmatrix} x\\ y\\ z \end{bmatrix} = \vec n\cdot \begin{bmatrix} 2\\ -1\\ 4 \end{bmatrix}.\)
This is the dot-product form of the affine plane equation.
d)
Write a linear equation of the form \(ax+by+cz=d\) for \(P’\).
Solution
Expanding the dot product gives
$$ x-y-z=-1. $$
Notice that the right-hand side is \(-1\), not \(0\), because \(P’\) does not pass through the origin.
e)
Graph your equation for \(P’\) on Desmos, desmos.com/3d. Compare the graph with the one you made in Activity 6(c).
Solution
The graph of \(x-y-z=-1\) should match the parametric plane from Activity 6. Both describe the same affine plane \(P’\); one uses parameters \(s,t\), the other uses a single linear equation. You can check that \((2,-1,4)\) satisfies \(2-(-1)-4=-1\).
Activity 8: An Affine Line as the Solution of a Linear System
Finally, let’s return to the affine line from Activity 5: \(\displaystyle \ell’ = \begin{bmatrix} 1\\ 2\\ -1 \end{bmatrix} + \operatorname{span} \left( \begin{bmatrix} 2\\ -1\\ 3 \end{bmatrix} \right).\)
a)
Find two normal vectors \(\vec n_1\) and \(\vec n_2\) perpendicular to the direction vector above that are not scalar multiples of each other.
Solution
Use the same method as Activity 4, but with the correct direction vector for this line. If \(\vec{n}=\begin{bmatrix}a\\b\\c\end{bmatrix}\) is orthogonal to \(\vec{d}=\begin{bmatrix}2\\-1\\3\end{bmatrix}\), then
Each equation describes a plane, and their intersection is the affine line \(\ell’\).
d)
Graph both equations in your system on Desmos, desmos.com/3d. The two planes should intersect in the affine line \(\ell’\). Compare the intersection with the graph from Activity 5(c).
Solution
On Desmos, graph the two planes \(3y+z=5\) and \(-3x+2z=-5\). They should intersect in the same affine line as the parametric graph from Activity 5(c). Unlike Activity 4, the planes here do not pass through the origin, which is why the right-hand sides are nonzero.