Euclidean spaces
Solution 7.9.1
(See Exercise 7.1.) This solution illustrates Task 7.61.
We consider \(V=P_{\le 2}\) with the scalar product
as in Example 7.163.. For \(e_1=1\), \(e_2=t\), \(e_3=t^2\), we compute the scalar products, i.e., the numbers \({\left \langle e_i,e_j \right \rangle}\):
By symmetry (cf. Lemma 7.5), this also gives the remaining entries with \(i>j\). We now apply Gram–Schmidt orthogonalization (Proposition 7.32):
Moreover,
so
Therefore one orthonormal basis is
Such polynomials, i.e., orthonormal with respect to the given scalar product, are called Legendre polynomials.
Solution 7.9.2
(See Exercise 7.3.) This solution illustrates Task 7.63, Task 7.62.
Let
From the equations we get \(x=t\) and \(y=t-z\). With free parameters \(z=a\) and \(t=b\), every vector in \(W\) has the form
Hence one basis of \(W\) is \(\big((0,-1,1,0),(1,1,0,1)\big).\) To compute \(W^\bot\) in detail, let \(u=(x,y,z,t)\) and impose orthogonality to a basis of \(W\), namely \(v_1=(0,-1,1,0)\) and \(v_2=(1,1,0,1)\) (cf. Definition and Lemma 7.20):
This is the linear system
equivalently
Thus \(W^\bot\) is the kernel of this matrix. Taking \(x=a\) and \(y=b\) as free parameters gives \(z=b\) and \(t=-a-b\), so
Therefore
We now compute the orthogonal projection of \(u=(1,5,1,6)\) onto \(W\). We use the two basis vectors \(v_1=(0,-1,1,0)\), \(v_2=(1,1,0,1)\) of \(W\), computed in the first part. We want to apply Theorem 7.24, which requires us to have an orthogonal basis. To this end, we apply Gram–Schmidt (Proposition 7.32):
To avoid fractions, take \(w_2:=2v_2'=(2,1,1,2)\), which is still orthogonal to \(v_1\). By Theorem 7.24, specifically the formula in Equation (7.26), for our orthogonal basis \(v_1, w_2\) we have
Compute \({\left \langle u,v_1 \right \rangle}=-4\), \({\left \langle v_1,v_1 \right \rangle}=2\), \({\left \langle u,w_2 \right \rangle}=20\), and \({\left \langle w_2,w_2 \right \rangle}=10\). Thus the orthogonal projection of \((1,5,1,6)\) onto \(W\) is
Solution 7.9.3
(See Exercise 7.2.) This solution illustrates Task 7.63, Task 7.62.
The given equation describing \(U\) can be rewritten as
which gives, with free parameters \(y=a\) and \(z =b\), \(x = a-3b\). Thus \(U = \{(a-3b,a,b) \ | \ a,b \in {\bf R}\} = L((1,1,0),(-3,0,1))\).
The above equation tells us that \(U\) is the orthogonal complement of the vector \(\left ( \begin{array}{c} 1 \\ -1 \\ 3 \end{array} \right )\). Thus, writing \(L := L(\left ( \begin{array}{c} 1 \\ -1 \\ 3 \end{array} \right ))\) for the one-dimensional subspace spanned by that vector, we have \(U=L^\bot\). Therefore \(U^\bot = (L^\bot)^\bot \stackrel * L = L(\left ( \begin{array}{c} 1 \\ -1 \\ 3 \end{array} \right ))\), where the equality marked * is using Corollary 7.31.
In order to compute the projection of \(t\) onto \(U\), we apply the Gram–Schmidt orthogonalization method. The vector \(v_1 = (1,1,0)\) has norm \(|\hspace{-0.5mm}| {v_1} |\hspace{-0.5mm}| = \sqrt 2\), so that \(w_1 = \frac 1 {\sqrt 2} (1,1,0)\). Then
The two vectors \(v_1\) and \(w'_2\) are orthogonal, so by Theorem 7.24 (formula for an orthogonal basis) we get
An alternative way to solve this, with slightly fewer computations, is the following: since \(t= t_U + t_\bot\) is the unique decomposition, we can compute \(t_U = t - {t_\bot}\). By the positive definitness of \({\left \langle -, - \right \rangle}\) we have \((U^\bot)^\bot = U\) (cf. Corollary 7.31), so we can also work in \(U^\bot\) rather than in \(U\). This is somewhat simpler since \(U^\bot\) has dimension 1. Take the basis vector \(v = (1,-1,3)\) of \(U^\bot\). Then, again by Theorem 7.24 (orthogonal basis formula)
Therefore
Solution 7.9.4
(See Exercise 7.4.) This solution illustrates Task 7.63, Task 7.62.
\(U\) is given by the solutions of the homogeneous linear system
The left hand matrix can be brought to reduced row echelon form using Gaussian elimination (Method 2.31): \(\left ( \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 1 \end{array} \right )\), so that \(z = a\) is a free parameter and \(x = 0\), \(y = -a\). This shows that \(U = \{ (0,-a,a) \ | \ a \in {\bf R}\}\) and \((0,-1,1)\) is a basis vector of \(U\). The orthogonal complement consists of vectors orthogonal to \((0,-1,1)\). As in the solution of Exercise 7.2 above, \(U\) has been defined as the orthogonal complement of the two vectors \(\left ( \begin{array}{c} 1 \\ 0 \\ 0 \end{array} \right )\) and \(\left ( \begin{array}{c} 1 \\ 1 \\ 1 \end{array} \right )\). These vectors therefore constitute a basis of \(U^\bot\).
We compute the orthogonal projection of \(t=(5,1,3)\) onto \(U\) and \(U^\bot\). This can be done using Gram–Schmidt orthogonalization as above, but also by solving the linear system
This is quickly solved as \(\left ( \begin{array}{c} a \\ b \\ c \end{array} \right )= \left ( \begin{array}{c} 1 \\ 3 \\ 2 \end{array} \right )\), so that the projection of \(t\) onto \(U\) is \(a \cdot \left ( \begin{array}{c} 0 \\ -1 \\ 1 \end{array} \right ) = \left ( \begin{array}{c} 0 \\ -1 \\ 1 \end{array} \right )\).
Solution 7.9.5
(See Exercise 7.5.) This solution illustrates Task 7.63.
The orthogonal complement of \(T\) is given by vectors \((x,y,z)\) such that \(x-3z=0\). I.e., with free parameters \(y = a\), \(z = b\), \(x = 3b\). Thus
Solution 7.9.6
(See Exercise 7.6.) We want to find \(U\) such that \(U \oplus U^\bot = {\bf R}^3\) and \(t=(1,5,6) + t_\bot\), with \((1,5,6) \in U\) and \(t_\bot \in U^\bot\). This in particular means that \((1,5,6) \bot t_\bot\). Solving the equation
gives \(t_\bot = (1,1,0)-(1,5,6) = (0,-4,-6)\). But
so these two vectors are not orthogonal. Therefore there is no such subspace \(U\).
We solve the second part similarly: we have \(t - (1,1,1) = (1,-1,0)\), so the Ansatz is \(t_\bot = (1,-1,0)\). We compute \({\left \langle (1,1,1), (1,-1,0) \right \rangle} = 0\), so these vectors are orthogonal. We now compute \(U\): \((1,1,1) \in U\), so that we can take \(U = L(1,1,1)\).
Solution 7.9.7
(See Exercise 7.7.) This solution illustrates Task 7.62.
According to Proposition 7.45, the unique point \(v \in {\bf R}^3\) that is lying on \(L\) and as close as possible to the origin is given by
where \(v_0 = \left ( \begin{array}{c} 1 \\ 3 \\ 5 \end{array} \right )\). We will use Theorem 7.24 in order to compute this. The underlying subspace \(W\) of \(L\) is spanned by \(v_1 = \left ( \begin{array}{c} 1 \\ 1 \\ 4 \end{array} \right )\). Renormalizing this vector to norm one, gives \(w_1 = \frac{v_1}{|\hspace{-0.5mm}| {v_1} |\hspace{-0.5mm}|} = \frac{v_1}{\sqrt{18}}\). This vector \(w_1\) is therefore an orthonormal basis of \(W\). We then have
and therefore
This vector has norm
Solution 7.9.8
(See Exercise 7.8.) This solution illustrates Task 7.70, Task 7.74.
The subspace \(W\) underlying \(L\) is spanned by \(\left ( \begin{array}{c} 1 \\ 1 \\ 1 \end{array} \right )\), while the equations for \(L'\) are equivalent to \(x=z\) and \(y = z+2\). Therefore, this line has the underlying subspace \(\left ( \begin{array}{c} 1 \\ 1 \\ 1 \end{array} \right )\) as well. By Definition 7.42, the lines are therefore parallel. Let \(w = \left ( \begin{array}{c} 1 \\ 1 \\ 1 \end{array} \right )\) be the direction vector for both lines (cf. Definition 7.50). Below, we will consider its renormalization to norm 1, which is \(w_1 = \frac 1 {\sqrt3} \left ( \begin{array}{c} 1 \\ 1 \\ 1 \end{array} \right )\).
Let \(v_0 = \left ( \begin{array}{c} 1 \\ 0 \\ 2 \end{array} \right )\) and \(v'_0 = \left ( \begin{array}{c} 0 \\ -2 \\ 0 \end{array} \right )\). Then the distance vector \(d = v_0 - v'_0 = \left ( \begin{array}{c} 1 \\ 2 \\ 2 \end{array} \right )\) is not orthogonal to \(L\) (\({\left \langle d, w \right \rangle} \ne 0\)). We compute the orthogonal projection of \(d\) onto \(W^\bot\) by computing
This vector has norm \(\sqrt{2/3}\), which is therefore the distance of \(L\) and \(L'\).
Solution 7.9.9
(See Exercise 7.9.) This solution illustrates Task 7.71, Task 7.74.
The two lines have underlying vector spaces \(W = L(\left ( \begin{array}{c} 1 \\ 1 \\ -1 \end{array} \right ))\) and \(W' = L(\left ( \begin{array}{c} 1 \\ -1 \\ 2 \end{array} \right ))\) respectively. These two one-dimensional subspaces are not contained in each other: the two vectors are linearly independent.
The general point in \(L\) is of the form
while those on \(L'\) are of the form
According to Proposition 7.45, we need to compute the values of \(t, u \in {\bf R}\) such that the difference \(p(t) - q(u) = \left ( \begin{array}{c} t-2-u \\ 1+t+u \\ -t-2u \end{array} \right )\) is orthogonal on \(W\) and also on \(W'\). This leads to the linear system
The solution of this system is \(t=\frac 67\), \(u = \frac {-11}{14}\). One then computes \(p(6/7)-q(-11/14)=\left ( \begin{array}{c} -5/14 \\ 15/14 \\ 5/7 \end{array} \right )\), whose norm is equal to \(\frac5{\sqrt{14}}\). This is the distance between the two lines.
In particular, this distance is positive. This, together with the above observation that \(W \ne W'\) means that the lines are skew. (If one is only required to show that the lines are skew, without computing their distance, one can also solve the linear system given by the intersection of \(L\) and \(L'\); one finds out that this system has no solution, so the lines are skew.)
Solution 7.9.10
(See Exercise 7.10.) This solution illustrates Task 7.72.
A useful way to sketch lines and planes is by considering some points on them where several coordinates are zero. In the case of \(P\), three such points are \((5,0,0), (0,4,0), (0,0,2)\), while for \(L\) two such points are \((0,5,0), (0,0,5)\). This leads to the following sketch:

The equation can be rewritten as
According to Definition and Lemma 7.20, the underlying vector space \(W\) is the orthogonal complement of the vector \(\left ( \begin{array}{c} 4 \\ 5 \\ 10 \end{array} \right )\).
The line \(L\) has as its underlying vector space \(W' = L(\left ( \begin{array}{c} 0 \\ 1 \\ -1 \end{array} \right ))\). If \(P\) and \(L\) are parallel, then \(W' \subset W\). This means that \(\left ( \begin{array}{c} 0 \\ 1 \\ -1 \end{array} \right )\) is orthogonal to \(\left ( \begin{array}{c} 4 \\ 5 \\ 10 \end{array} \right )\). Their scalar product is \(5-10 = -5 \ne 0\), so that these vectors are not orthogonal and therefore \(L\) and \(P\) are not parallel.
We compute the distance of \(P\) to the origin using Proposition 7.47:
We compute the closest point by determining the (unique) intersection point \(P \cap W^\bot\). We are thus seeking the real number \(r\) such that \(r \left ( \begin{array}{c} 4 \\ 5 \\ 10 \end{array} \right ) = \left ( \begin{array}{c} 4r \\ 5r \\ 10r \end{array} \right )\) lies on the plane \(P\), i.e., such that
The left hand side equals \(r(16+25+100) = 141 r\), so that \(r = \frac{20}{141}\), and therefore the point in \(P\) that is as close as possible to the origin is
Solution 7.9.11
(See Exercise 7.11.) We apply Theorem 7.38, according to which a matrix is orthogonally diagonalizable if and only if it is symmetric. This excludes \(A = \left ( \begin{array}{cc} 1 & 2 \\ -2 & 1 \end{array} \right )\). The other two matrices are symmetric and therefore orthogonally diagonalizable. The matrix \(A = \left ( \begin{array}{cc} 0 & 0 \\ 0 & 0 \end{array} \right )\) is already a diagonal matrix, so for \(P = {\mathrm {id}}\) the matrix \(PAP^{-1}\) is diagonal. The standard basis vectors \(e_1, e_2\) are an orthonormal eigenbasis.
For \(A = \left ( \begin{array}{cc} 1 & 2 \\ 2 & 1 \end{array} \right )\), we compute the eigenvalues as was indicated after Theorem 7.38.
Thus the eigenvalues are \(-1\) and \(3\). We compute the eigenspaces. The matrix \(A - (-1){\mathrm {id}} = \left ( \begin{array}{cc} 2 & 2 \\ 2 & 2 \end{array} \right )\) has kernel given by \(w_1 := e_1 - e_2\). The matrix \(A - 3 {\mathrm {id}} = \left ( \begin{array}{cc} -2 & 2 \\ 2 & -2 \end{array} \right )\) has kernel given by \(w_2 := e_1 + e_2\). These vectors are orthogonal:
However, they are not normal, so an orthonormal eigenbasis for \(A\) is given by
Solution 7.9.12
(See Exercise 7.12.) If \(Av = \lambda v\), \(Aw= \lambda w\), we compute
Since \(\lambda \ne \mu\), this forces \({\left \langle v, w \right \rangle}=0\).
Solution 7.9.13
(See Exercise 7.13.) This solution illustrates Task 7.72, Task 7.74.
By definition, the hyperplane \(P\) is given by the equation
In other words, the underlying sub-vector space \(W \subset {\bf R}^4\) of that hyperplane is the subspace
or, what is the same, the orthogonal complement of \((2,0,1,-1)^T\).
The underlying subspace \(W'_t\) of the line \(L_t\) is spanned by \((t,1,0,-1)\). By Definition 7.42, \(P\) is parallel to \(L_t\) if \(W \subset W'_t\) (which is impossible for dimension reasons) or if \(W'_t \subset W\). The latter is equivalent to \((t,1,0,-1) \in W\) or, yet equivalently,
This equates to \(2t + 1 = 0\) or \(t = -\frac12\).
We now compute the pair(s) of points realizing the minimal distance between \(P\) and \(L := L_{-\frac12}\). We will use that these are exactly the points \((p, l)\) such that \(p-l \bot W\) and \(p-l \bot W'\).
The point \(l \in L = L_{-\frac12}\) is of the form
On the other hand a point \(p =(x_1, \dots, x_4) \in P\) satisfies
so we can take \(x_1 = a\), \(x_2 = b\) and \(x_3=c\) as free parameters and get \(x_4 = 2a+c-4\). That is \(p = (a,b,c,2a+c-4)\). Therefore
Note that \(a,b,c,s\) are the unknowns. We now determine the values of these unknowns. The orthogonal complement of \(W\), \(W^\bot = (((2,0,1,-1)^T)^\bot)^\bot = L(2,0,1,-1).\) Here we use that for a subspace \(U \subset {\bf R}^n\), we have
(Indeed, \(U \subset (U^\bot)^\bot\): for \(u \in U\) and \(u' \in U^\bot\) we have \({\left \langle u, u' \right \rangle} = 0\), so that \(u \in (U^\bot)^\bot\). Both vector subspaces of \({\bf R}^n\) have the same dimension, and therefore they agree.)
This means that we are looking for \(a,b,c,s \in {\bf R}\) such that the following conditions are satisfied
- \(p-l\) is a multiple of \((2,0,1,-1)\), say \(\lambda(2,0,1,-1) = (2\lambda,0,\lambda,-\lambda)\). This translates into a linear system
- We now spell out the condition that \(p-l\) is orthogonal to \((-\frac12, 1, 0, -1)^T\) or equivalently, to \((-1,2,0,-2)\):
We obtain a linear system in the 5 unknowns \(a,b,c,s,\lambda\):
One solves this using Gaussian eliminiation (or, using an appropriate computer algebra system, cf. https://www.wolframalpha.com/input?i=Solve%28%28-5a%2B2b-2c-9s%2B11%3D0%2Ca%2Bs-1%3D2l%2Cb-2s%3D0%2Cc%3Dl%2C2a%2Bc%2B2s-5%3D-l%29%29) and obtains as solutions the vectors
Thus
This implies that for any point \(l \in L\), there is a unique point \(p \in P\) such that \((p,l)\) realizes the minimal distance between \(P\) and \(L\).
Solution 7.9.14
(See Exercise 7.14.) This solution illustrates Task 7.64, Task 7.67, Task 7.69.
For \(L\), solve the system
With parameter \(z=s\), we get \(x=1-s\), \(y=-2-s\), hence
So we can take
For \(L'\), from the two given points we get
To classify the relative position (Definition 7.42), compare direction spaces:
These are different 1-dimensional subspaces, so \(L\) and \(L'\) are neither identical nor parallel. Now solve for an intersection:
From \(x=0\) we get \(s=1\), then \(z=1\) is satisfied, and \(y=t\) gives \(t=-3\). Therefore
so the two lines are intersecting.
Let \(P\) be the plane containing \(L\) and parallel to \(L'\). Then \(P\) is spanned by the two direction vectors
A normal vector can be computed by using the cross product (or by computing the orthogonal complement):
thus \(n=(1,0,1)\) is a normal vector. Using the point \((1,-2,0)\in L\), the Cartesian equation of the plane (Proposition 7.48) is
So one valid equation of \(P\) is
Now fix \(l=(2,-1,-1)\in L\) and seek \(l'\in L'\) such that the line through \(l\) and \(l'\) is parallel to the plane \(x+z-1=0\). Write
The line is parallel to the plane iff \(d\cdot (1,0,1)=0\), and indeed
for every \(r\in{\bf R}\). Hence every point of \(L'\) works:
For example, one can take \(l'=(0,0,1)\).
Solution 7.9.15
(See Exercise 7.15.) Let \(V=P_{\le 2}\) and \({\left \langle p,q \right \rangle}=\int_{-1}^1 p(t)q(t)\,dt\).
First, \({\left \langle -, - \right \rangle}\) is a scalar product: bilinearity and symmetry follow from properties of the integral, and for \(p\neq 0\) we have \({\left \langle p,p \right \rangle}=\int_{-1}^1 p(t)^2dt>0\).
An orthonormal basis is the same as in the previous polynomial exercise (see Example 7.163. and Gram–Schmidt in Proposition 7.32): \(w_1=\frac1{\sqrt2}\), \(w_2=\sqrt{\frac32}\,t\), \(w_3=\frac{\sqrt{10}}4(3t^2-1)\).
Now consider \(f:V\to V\), \(f(p)=t\,p'\). It is linear because derivative and multiplication by \(t\) are linear maps. In more detail, the conditions in Definition 4.1 are satisfied, for example \(f(p_1 + p_2) = t(p_1+p_2)' = t(p_1'+p_2') = f(p_1) + f(p_2)\) and similarly for \(f(a p)\) with \(a \in \mathbf R\). For the standard basis \(e_1=1\), \(e_2=t\), \(e_3=t^2\) we have \(f(e_1)=0\), \(f(e_2)=t=e_2\), \(f(e_3)=2t^2=2e_3\). Hence
So \((e_1,e_2,e_3)\) is an eigenbasis, with eigenvalues \(0,1,2\).
From the above, \(\ker f=L(1)\), so \(\dim\ker f=1\); and \({\operatorname{im}\,}f=L(t,t^2)\), so \(\dim{\operatorname{im}\,}f=2\).
Finally, \(f\) has no orthonormal eigenbasis for this scalar product: the eigenspaces for \(0,1,2\) are \(L(1)\), \(L(t)\), \(L(t^2)\). These are all 1-dimensional, so any eigenbasis is (up to scaling) \((1,t,t^2)\). But \({\left \langle 1,t^2 \right \rangle}=\int_{-1}^1 t^2dt=\frac23\neq 0\), so eigenvectors for \(\lambda=0\) and \(\lambda=2\) cannot be orthogonal.
Solution 7.9.16
(See Exercise 7.16.) This solution illustrates Task 7.61, Task 7.62, Task 7.63.
Let
Writing \(x_2=a\), \(x_3=b\), \(x_4=c\), we get \(x_1=a-b-2c\), so \(U=L(u_1,u_2,u_3)\) with \(u_1=(1,1,0,0)\), \(u_2=(-1,0,1,0)\), \(u_3=(-2,0,0,1)\). Hence \(\dim U=3\).
For an orthonormal basis, choose three pairwise orthogonal vectors in \(U\): \(v_1=(1,1,0,0)\), \(v_2=(0,0,-2,1)\), \(v_3=(-5,5,2,4)\). In terms of the basis vectors \(u_1,u_2,u_3\) above, these are
One checks \(v_i\in U\) and \({\left \langle v_i,v_j \right \rangle}=0\) for \(i\neq j\). (Such vectors can be found using Gram–Schmidt orthogonalization, Proposition 7.32). Their norms are \(|v_1|=\sqrt2\), \(|v_2|=\sqrt5\), \(|v_3|=\sqrt{70}\), so an orthonormal basis is
Let \(n=(1,-1,1,2)\). Then \(U=n^\bot\), hence (Theorem 7.24) \(p_U(x)=x-\frac{{\left \langle x,n \right \rangle}}{{\left \langle n,n \right \rangle}}n\) and \({\left \langle n,n \right \rangle}=7\). For \(v=(2,3,0,0)\), \({\left \langle v,n \right \rangle}=-1\), so \(p_U(v)=v+\frac17 n=(\frac{15}7,\frac{20}7,\frac17,\frac27)\). For \(w=(2,5,3,0)\), \({\left \langle w,n \right \rangle}=0\), so \(p_U(w)=w=(2,5,3,0)\).
Finally, \(U^\bot=L(n)=L(1,-1,1,2)\), where we have used Corollary 7.31.
Solution 7.9.17
(See Exercise 7.17.) This solution illustrates Task 7.61, Task 7.63, Task 7.62.
We compute in fact directly an orthonormal basis, which in particular is then orthogonal. (The property of also being normal is convenient further below.) We apply the Gram–Schmidt procedure (Proposition 7.32):
The vectors \(w_1\) and \(w_2\) then constitute an orthonormal basis of \(U\).
We compute the orthogonal complement of \(U\) by solving the equations (for some \(v \in {\bf R}^4\))
We consider the matrix of the resulting linear system, and bring it into row echelon form:
Thus, if \(v = (x_1, \dots, x_4)\), then \(x_3\) and \(x_4\) are free variables, so that a basis of \(U^\bot\) is given by the two vectors \((-\frac 32, \frac 34, 1, 0)\) and \((-1,1,0,1)\).
We compute the orthogonal projection by Theorem 7.24:
If we write \(w = l + l^\bot\) with \(l^\bot \in L^\bot\), then \(l^\bot = w - l = (2,-,1,0,2)-(1,1,2,0)=(1,-2,-2,2)\). This vector would need to be orthogonal to \((1,1,2,0)\), which however it is not (since their scalar product is \(-5 \ne 0\)). Therefore, such a subspace \(L\) does not exist.
These computations may be carried out also using a computer algebra system, for example the Gram–Schmidt orthogonalization procedure like so: https://www.wolframalpha.com/input?i=Orthogonalize%5B%7B%7B1%2C2%2C0%2C-1%7D%2C%7B0%2C-4%2C3%2C4%7D%7D%5D.
Solution 7.9.18
(See Exercise 7.18.) This solution illustrates Task 7.71, Task 7.72.
We first compute \(L\) in the form \(L = v_0 + W\). We choose \(v_0 = (0,1,-1)\). In addition, the point \((1,2,1)\) is also lying in \(L\). Therefore \(W\) is spanned by \((1,2,1)-(0,1,-1)=(1,1,2)\).
Similarly, we can compute \(M = (1,-2,0) + L((2,1,1))\). The two vectors \((1,1,2)\) and \((2,1,1)\) are linearly independent, so that \(L\) and \(M\) are not parallel nor identical. We compute the intersection \(L \cap M\). We have the equations \(1-y = x = 2y+1\), so that \(y = 0\). We also have \(2x-1 = z = y+2\), so that \(z=2\) and \(x = \frac 32\), but then we get a contradiction to \(1-y=x\). Thus \(L \cap M = \emptyset\). Therefore, \(L\) is skew to \(M\).
We compute the requested plane \(P\) by observing that its underlying vector space \(W\) is spanned by \((1,-1,2)\) and \((2,1,1)\). Moreover, the point \((1,0,2) \in P\). Thus \(P = (1,0,2) + L((1,-1,2), (2,1,1))\). The orthogonal complement of \(W\) is spanned by \((1,-1,-1)\), as one sees by solving the linear system \(a-b+2c = 0, 2a+b+c=0\). Thus, \(P\) is of the form
To compute the number \(d\), we use that \((1,0,2) \in P\), so that \(d = {\left \langle (1,0,2), (1,-1,-1) \right \rangle} = -1\).
A general point on \(M\) is of the form \((1+2r,r,2+r)\). With \(l =(0,1,-1)\), the vector \(v := m-l = (1+2r, r-1,3+r)\). The line spanned by this vector is parallel to the plane defined by the equation \(3x-z = 0\) precisely if \({\left \langle v, (3,0,-1) \right \rangle} = 0\). This leads to the equation
i.e., \(r = 0\), so that \(m = (1,0,2)\).
We compute the coordinates of \(r_\alpha = (x,y,z)\) as \(z = \alpha\), \(x = \frac 12(1+\alpha)\), \(y = \frac 12(1-\alpha)\). Similarly, \(s_\alpha = (2\alpha - 3, \alpha - 2, \alpha)\). The midpoints \(m_\alpha = \frac{r_\alpha + s_\alpha}2 = (\frac{5\alpha-5}4, \frac{\alpha-3}4,\alpha)\) are precisely the points on the line
Solution 7.9.19
(See Exercise 7.19.) This solution illustrates Task 7.66, Task 7.69.
We have \(L = p + L(q-p)\), i.e., \(L = (3,1,0) + L(-3,0,3)\). (Other solutions are possible as well, e.g., \(L = q + L(-3,0,3)\).) We determine whether \(r\) lies on \(L\) by considering the linear system
The second equation is a contradiction, therefore there is no \(t \in {\bf R}\) satisfying this linear system. Thus \(r \notin L\).
We describe the plane \(P\) containing the points \(p, q, r\) in two ways:
The orthogonal complement of \(w_1 = (-3,0,3)\) and \(w_2 = (-6,-1,-3)\) is the line spanned by \(a := (1,-9,1)\). Thus
which we can write out as
or, equivalently
Solution 7.9.20
(See Exercise 7.20.) This solution illustrates Task 7.71. The line \(M\), given to us by the systen \(x + z = 2\), \(x - 2 y = 2\) is also described as \(M = (2,0,0) + L(2, 1, -2)\). Its underlying vector space is therefore spanned by \((2,1,-2)\), while the underlying vector space of \(L\) is spanned by \((1,0,-1)\). These two vectors are linearly independent. We compute the intersection of \(L\) and \(M\) by taking a general point \(l = (3+t, 1, -t) \in L\) and \(m = (2+2s,s,-2s) \in M\), with \(t, s \in {\bf R}\). The three coordinates of the equation \(l = m\) read:
The second and third equations give \(s = 1\), \(t = 2\). The first then gives \(5 = 4\), which is a contradiction. Thus, there is no point lying on \(L\) and on \(M\), i.e., \(L \cap M = \emptyset\). Thus \(L\) and \(M\) are skew, so no plane contains \(L\) and \(M\).
Solution 7.9.21
(See Exercise 7.21.) Writing \(q = (x,y,z)\) for \(x, y, z \in {\bf R}\), the line \(M\) is then given by \(M = p + L(q-p) = (-1,-1,-1) + L(x+1,y+1,z+1)\).
The line \(M\) will be orthogonal to \(L\) precisely if
i.e., if \(x+1 - z - 1 = 0\), i.e., if \(x = z\).
As in the solution of Exercise 7.20 above, the line \(M\) (with \(x = z\)) intersects \(L\) precisely if the linear system
has a solution \((s,t) \in {\bf R}^2\). To get a clearer view of this, we write down the augmented matrix for this linear system, keeping in mind that \(x,y\) are parameters in this linear system, and \(s, t\) are the unknowns. Note this is a linear system in two unknowns, but three equations.
If \(y = -1\), then we have no solution in the above system, due to the row \(0 \ 0 \ | \ {-2}\) in this case. Otherwise, for \(y \ne -1\), we can perform the elementary row operations as indicated above. This system has no solution if the term \(-5+2\frac{2x+2}{y+1} \ne 0\). If, on the contrary, the bottom right entry is zero, then the system does have a unique solution (since we then have two leading ones in the matrix). This bottom right entry is zero precisely if \(5(y+1) = 4x+4\), or, equivalently, if \(y = \frac{4x -1}5\).
We therefore find that the line \(M\) through \(p\) and \(q = (x,y,z)\) intersects \(L\) orthogonally precisely if \(z = x\), \(y = \frac{4x -1}5\) and \(y \ne -1\).
Solution 7.9.22
(See Exercise 7.22.) This solution illustrates Task 7.68.
Any line \(M\) passing through \(p\) is of the form \(M = p + L(w)\). We compute \(w = (a,b,c)\) by considering the two conditions on \(M\):
-
\(M \bot L\) holds exactly if \(w \bot (1,1,1)\), i.e., if \(a+b+c=0\).
-
\(M \subset P\) holds exactly if \(w \bot (3,-4,1)\). Indeed, the underlying subspace of \(P\) is given by \(3x-4y+z=0\), i.e., it is the orthogonal complement of \((3,-4,1)\). That is, \(3a-4b+c=0\).
We have to solve the homogeneous linear system associated to the matrix
so a solution is given by \(b = 2\), \(c = -7\) and \(a = 5\). (Any other non-zero multiple of \((5,2,-7)\) is also a solution.) Therefore
Solution 7.9.23
(See Exercise 7.23.) This solution illustrates Task 7.71, Task 7.72, Task 7.74.
The cartesian equations of the line \(L_2\) are obtained by inserting \(x = t\) into the equation for \(z\), which gives
We compute the intersection of \(L_1\) and \(L_2\), and at the same time determine whether they are parallel or not. The linear system for \(L_1 \cap L_2\) is (the first two equations are for \(L_2\), the latter two for \(L_1\))
We form the augmented matrix of this linear system and bring it into row echelon form:
If we only consider the first three columns (corresponding to the three variables), the matrix has rank 3. This shows that the lines are not parallel (otherwise the rank would be 2). The full matrix has rank 4. Therefore there is no solution of the linear system and the lines are skew.
Part (2): The plane \(\pi\) contains \(L_2\) and the direction of \(L_1\) (i.e., the underlying sub-vector space) is contained in the directions of \(\pi\) (i.e., its underlying sub-vector space). We therefore first compute the direction of \(L_1\). The system
leads to \(y = 2x+3\), \(z=-y-2=-2x-5\), in which \(x\) is a free variable. Thus
(7.75)
Thus the direction of \(L_1\) is \((1,2,-2)\). (Alternatively, one may observe that the points \(p = (0,3,-5)\) and \(q = (1,5,-7)\) satisfy the linear system describing \(L_1\), so that \(L_1 = (0,3,-5) + L(q-p)\).)
The plane \(\pi\) is of the form \(\pi = \{v = (x,y,z) \in {\bf R}^3 | {\left \langle v, a \right \rangle} = d\}\) for some vector \(a = (a_1, a_2, a_3)\) and \(d \in {\bf R}\). I.e., \(\pi = \{(x,y,z) | a_1 x+a_2 y + a_3z = d\}\). Its underlying subvector space is \(a_1 x + a_2 +a_3z=0\). The condition \(L_1\) being parallel to \(\pi\) translates into \({\left \langle a, v_1 \right \rangle} = 0\), where \(v_1 = (1,2,-2)\) is the direction of \(L_1\). The condition \(L_2 \subset \pi\) translates into \({\left \langle a, v_2 \right \rangle} = 0\), where \(v_2 = (1,0,-1)\) is the direction vector of \(L_2\) (cf. Definition 7.50). These two conditions give the linear system
Thus \(a_1 = a_3\) and \(a_1 = 2a_2\), and \(a_2\) (say) is a free variable. We choose \(a_2 = 1\) (note: any other non-zero number \(a_2\) would eventually give rise to the same plane \(\pi\) below), so that \(a = (a_1, a_2, a_3) = (2,1,2).\) Thus, \(\pi = \{(x,y,z) | 2x+y+2z=d \}\), where we still need to compute \(d\). It is enough to choose \(d\) such that \(\pi\) contains any point of \(L_2\), for example \(e := (0,2,4)\). We compute \({\left \langle a, e \right \rangle} = 2 \cdot 0 + 1 \cdot 2 + 2 \cdot 4 = 10\). Thus, \(d=10\), so that
Part (3): By construction \(L_1\) is parallel to \(\pi\), so to compute the distance of \(\pi\) and \(L_1\), we may choose any point \(q \in L_1\) and to compute its orthogonal projection onto \(\pi\), which we call \(r\). Then \(d(\pi, L_1) = d(q, r)\).
The line passing through \(q\) and \(r\) is orthogonal to \(\pi\), so it has direction vector \((2,1,2)\). We choose \(q = (0,3,-5)\). The line passing through \(q\) and orthogonal to \(\pi\) is then of the form
its points are of the form \(r_t = (2t,3+t,-5+2t)\) where \(t \in {\bf R}\). The intersection of that line with \(\pi\) is given by the unique value of \(t\) such that \(r_t \in \pi\), i.e.,
This simplifies to \(9t=17\) or \(t = \frac{17}9\). Thus \(r = r_{17 / 9} = (\frac{34}9, \frac{44}9, -\frac{11}9)\). We then have
Part (4): we already know the lines are skew, so there will be unique points in \(L_1\) and \(L_2\), respectively, realizing the minimal distance. We compute these points using Theorem 7.594.. A general point \(p_t \in L_2\) is of the form \(p_t = (t, 2, 4-t)\) (with \(t \in {\bf R}\)). By Equation (7.75), a general point in \(L_1\) is of the form \(q_s = (s, 3+2s,-5-2s)\) (with \(s \in {\bf R}\)). The vector \(p_t - q_s = (s-t, 1+2s,-9-2s+t)\) needs to be orthogonal to the directions of \(L_1\) and \(L_2\), which we computed above as \((1,2,-2)\) and \((1,0,-1)\). This leads to the linear system
This can be solved to \(t=\frac 73\) and \(s = -\frac{13}9\), which gives
Solution 7.9.24
(See Exercise 7.24.) This solution illustrates Task 7.61, Task 7.63.
We first compute a basis of \(U\) by computing the kernel of the matrix
The third and fourth variables are free, and a basis of \(U\) is given by the vectors \(u_1 = (0, 1, 0, 1)\) and \(u_2 = (-1, 0, 1, 0)\). These two vectors happen to be orthogonal, so they form an orthogonal basis. (If one chooses a different basis of \(U\), one may apply the Gram–Schmidt algorithm to make them orthonormal, for example.)
Since \(\dim U^\bot = 4 - \dim U = 2\), it suffices to find any non-zero vector \(w_2 \in U^\bot\) that is also orthogonal to \(w_1\). We are thus looking for a non-zero vector in \(L((-1,0,1,0),(0,1,0,1),(1,1,-1,-1))^\bot\). This is the kernel of the matrix
so if \(w_2 =(x_1, \dots, x_4)\), we obtain \(x_2 = x_4=0\) and \(x_1 = x_3\), so \(w_2 = (1,0,1,0)\) satisfies the requested properties.
The orthogonal complement \(U^\perp\) is defined by the equations
Solution 7.9.25
(See Exercise 7.25.) This solution illustrates Task 7.70, Task 7.67, Task 7.68.
The points \(l_1 := (0,2,1)\) and \(l_2 := (2, 3, 0)\) lie in \(L\), so that the direction vector of \(L\), which is the difference of the two points, is \((2,1,-1)\).
Likewise the points \(m_1 := (1,1,2)\) and \((5,3,0)\) lie on \(M\), so that its direction vector is \((4,2,-2)\). This is a multiple of \((2,1,1)\), so the two direction vectors span the same (1-dimensional) subspace of \({\bf R}^3\), so the lines are parallel.
In order to compute the plane \(P\) containing \(M\) and \(L\) we use that \(P\) is uniquely determined (since \(M \ne L\)) by the condition that \(l_1, l_2, m_1 \in P\). Thus
In order to compute the cartesian form of \(P\), we compute the orthogonal complement of \((2,1,-1)\) and \((1,-1,1)\): it is the 1-dimensional subspace of \({\bf R}^3\) spanned by a vector \((a,b,c)\) satisfying \(2a+b-c=0\) and \(a-b+c=0\). This implies \(a=0\) and \(b=c\), and \(c\) is a free variable. Thus the normal vector of the plane \(P\) is \((0, 1,1)\) (or any nonzero multiple thereof). Taking into account that \((0,2,1) \in P\), we have
For the second part, we first compute what a general point \(q \in M\) looks like. From the above, we have
so
For \(p=(0,2,1)\), this implies
This vector needs to be orthogonal to the direction vector of \(L\), which is \((2,1,-1)\). Thus
so that \(r=0\), and \(q = (1,1,2)\).
For the third part, we write \(X\) in cartesian form
We need to compute the normal vector \(a\) and the number \(b\). Since we seek \(L \subset X\), the direction vector of \(L\), \((2,1,-1)\) needs to be orthogonal to \(a = (\alpha, \beta, \gamma)\), i.e.
Moreover, the vector \(w := r-l_1=(-1,1,0)-(0,2,1) = (-1,-1,-1)\) needs to be orthogonal to \(a\) as well, since \(r\) and \(l_1 \in X\). Thus
We solve this as \(\alpha = 2 \gamma\), \(\beta = -3\gamma\), and \(\gamma \in {\bf R}\) is a free variable, which we choose to be \(1\). Thus \(a = (2, -3, 1)\). We compute \(b\) by observing that the equation defining \(X\) needs to be satisfied for \(r\), so that \(d = {\left \langle a, r \right \rangle} = -5\). Thus
For the last part, we have
and we need to compute the direction vector \(w\) of the line \(N\). Since \(N \subset X\), we have \(w \bot a = (2,-3,1)\). Since \(N \bot L\), we have \(w \bot (2,1,-1)\) (the direction vector of \(L\)). In other words, \(w\) is a vector in the orthogonal complement of these two vectors, or equivalently, the kernel of the matrix
Thus for \(w = (\alpha, \beta, \gamma)\), \(\gamma\) is a free variable, which we can choose to be 2, so that \(\beta = \frac 12 \gamma = 1\), and \(\alpha = \frac{3\beta - \gamma}2=\frac{3-2}2=\frac 12\). Thus
or, equivalently, for example:
Solution 7.9.26
(See Exercise 7.26.) This solution illustrates Task 7.61, Task 7.63.
We form the matrix associated to the linear system and bring it into row echelon form
This matrix has rank 2 if \(t+1 = 0\), i.e., if \(t=-1\). Otherwise, for \(t\ne -1\), its rank is 3. We compute a basis of \(U\) for \(t=-1\) using Method 2.31. The result is \(u_1=(-2,-1,3,0)\) and \(u_2=(1,2,0,3)\).
We apply Proposition 7.32:
The vectors \(w_1\) and \(w'_2\) form an orthonormal basis of \(U\). (It is possible, but here not asked for, to compute \(w_2 = w'_2 / |\hspace{-0.5mm}| {w'_2} |\hspace{-0.5mm}|\), then \(w_1\) and \(w_2\) form an orthonormal basis of \(U\).)
The subspace \(U^\perp\) consists of the vectors that are orthogonal on the basis vectors of \(U\), i.e., the kernel of the matrix
A basis of this can be computed again by Method 2.31, for example \((2,-1,1,0)\) and \((1,-2,0,1)\) form a basis of \(U^\perp\).
The subspace \(W\) will be the orthogonal complement of the line passing through \(v\) and \(w\). The direction of that line is \(v-w = (2,0,1,-3)\), so that
Solution 7.9.27
(See Exercise 7.27.) This solution illustrates Task 7.66, Task 7.68, Task 7.72.
We verify \(B \in X\) by plugging in the coordinates of \(B\):
so it satisfies the equation defining \(X\). We now compute \(C = p_X(A)\). The normal vector of the plane \(X\) is \(n = (2,-1,-2)\). Thus \(C = A - r n = (6-2r,-1+r,-4+2r)\), for some \(r \in {\bf R}\). In order for \(C \in X\), this needs to satisfy the equation defining \(X\), i.e.,
which simplifies to \(21 - 9r = 3\), i.e., \(r = 2\) and \(C = (2,1,0)\).
The plane containing the points \(A, B, C\) is of the form
In order to present this in cartesian form, we compute the orthogonal complement of \(C-A=(-4,2,4)\) and \(B-A=(-5,2,3)\), which is the line spanned by \(w := (-1, -4, 1)\). The plane is then given by
i.e.,
The line that a) passes through \(B\), b) is contained in the plane \(X\) and c) is orthogonal to the line passing through \(A\) and \(B\), is given by
By the conditions, \({\left \langle v, B-A \right \rangle} = 0\) and \({\left \langle v, n \right \rangle} = 0\). I.e., \(v\) is any non-zero vector in the orthogonal complement of \(B-A=(-5,2,3)\) and \(n=(2,-1,-2)\), for example \(v = w = (-1,-4,1)\). Thus
The direction vector of \(M_t\) can be found by choosing two points on \(M_t\), for example \(E = (0,2,-1)\) and \(F = (1,2+t,-2)\). So the direction vector of \(M_t\) is equal to \(F-E = (1,t,-1)\). This needs to be orthogonal to \(n = (2,-1,-2)\). I.e., \({\left \langle n, F-E \right \rangle} = 0\), which gives \(2 - t +2 = 0\), so \(t=4\).