Lab Project 3 (Due 4/22/03)


Date: MATH 2270-1 - Spring 2003

From the course webpage download the file proj3data.m. Load it (this is explained in the third Maple tutorial, also available at the course webpage) into Maple and you will have defined a few vectors that will be used throughout this project. The naming convention is as follows: the vector $ v_1$ in this note becomes the vector vv1, and similarly for the other vectors.

  1. The vectors $ v_1,v_2, v_3, v_4 \in \ensuremath{\mathbb{R}}^{10}$ are loaded in Maple (after, of course, you load the file proj3data.m). Define the subspace $ S = <v_1, v_2, v_3, v_4>\subset \ensuremath{\mathbb{R}}^{10}$.
    1. Check if the Pythagorean relation $ \vert v_1\vert^2 + \vert v_2\vert^2 = \vert v_1 +
v_2\vert^2$ holds. What do you conclude from this?
    2. Find the angle between $ v_1$ and $ v_2$.
    3. Find a basis $ {\mathcal B}$ of $ S$. What is $ \dim S$?
    4. Follow the Gram-Schmidt procedure to transform $ {\mathcal B}$ into an orthonormal basis $ {\mathcal B}'$ of $ S$.
    5. Use the command QRDecomposition of Maple's LinearAlgebra to find an orthonormal basis of $ S$.
    6. Find the components of $ v_1+v_2+v_3+v_4$ with respect to $ {\mathcal B}'$.
    7. Let $ P_S:\ensuremath{\mathbb{R}}^{10}\rightarrow \ensuremath{\mathbb{R}}^{10}$ be the orthogonal projection onto $ S$. Find the matrix of $ P_S$ with respect to the canonical basis of $ \ensuremath{\mathbb{R}}^{10}$.
    8. Find the image of $ w$ (already defined in Maple) under $ P_S$. What is the angle between $ P_S(w)$ and $ w-P_S(w)$?
    9. Let $ R_S:\ensuremath{\mathbb{R}}^{10}\rightarrow \ensuremath{\mathbb{R}}^{10}$ be the reflection on $ S$ and $ MRS$ its matrix with respect to the canonical basis of $ \ensuremath{\mathbb{R}}^{10}$. Find $ MRS$.
    10. Find $ R_S(w)$. Compare $ \vert w\vert$ and $ \vert R_S(w)\vert$. Could $ R_S$ be an orthogonal transformation?
    11. Use $ MRS$ to decide if $ R_S$ is an orthogonal transformation or not.

  2. For this exercise you may want to refer to the Maple worksheet on trigonometric polynomials available on the class' webpage. Let $ V$ be the space of continuous functions on the interval $ [-\pi,\pi]$ with the inner product $ \langle f, g\rangle =
\frac{1}{\pi} \int_{-\pi}^\pi f(t)g(t)dt$.

    We will use the notation $ a[n](t) =
\begin{cases}
\frac{1}{\sqrt{2}} \text{ if } n=0,\\
\cos(nt) \text{ if } n>0
\end{cases}$ and $ b[n](t) = \sin(nt)$ for $ n>0$. Clearly $ a[n]$ and $ b[n]$ are in $ V$ for all $ n$.

    1. Use Maple to verify that all $ a[n]$ and $ b[n]$ have length $ 1$ for all $ n$. Hint: Evaluate the integrals in Maple; for example, evaluate $ \int_{-\pi}^\pi \sin^2(nt)dt$. Do not try to define functions a[n](t) for arbitrary n.
    2. Use Maple to verify that all $ a[n]$ and $ b[m]$ are orthogonal. The same for $ a[n]$ and $ a[m]$ with $ n\neq m$ and for $ b[n]$ and $ b[m]$ with $ n\neq m$.
    3. Let $ f(x) = x^2-1$. Find the orthogonal projection of $ f$ on the subspace $ T_1 = <a[0],a[1],b[1]>$. Write explicitly $ P_{T_1}(f)$. Plot $ f$ and $ P_{T_1}(f)$ together. Compute the ``error'' of the approximation of $ f$ by $ P_{T_1}(f)$: $ \vert f-P_{T_1}(f)\vert$.
    4. Find the orthogonal projection of $ f$ on the subspace $ T_2 =
<a[0],a[1],a[2],b[1],b[2]>$. Write explicitly $ P_{T_2}(f)$. Plot $ f$ and $ P_{T_2}(f)$ together. Compute the ``error'' of the approximation of $ f$ by $ P_{T_2}(f)$: $ \vert f-P_{T_2}(f)\vert$.
    5. Find the first approximation where the error is less than $ 0.2$.

  3. In this exercise we want to study the volume of some parallelepipeds.
    1. Consider vectors $ u_1 = \left(
\begin{array}{c}
1 \\ 1
\end{array}\right)$ and $ u_2 = \left(
\begin{array}{c}
0 \\ 1
\end{array}\right)$. Find the volume (area, in this case) of the parallelepiped spanned by $ u_1$ and $ u_2$.
    2. Consider a pair of vectors $ u_1, u_2 \in \ensuremath{\mathbb{R}}^2$ whose components can only be $ 0, 1$. For each such pair, you can compute the volume of the parallelepiped spanned by $ u_1$ and $ u_2$. What is the maximum volume that you can obtain by this procedure? Show a pair of vectors that achieve this maximum.
    3. Same as in the previous item but for three vectors in $ \ensuremath{\mathbb{R}}^3$.
    4. Same as above but for $ 4$ vectors in $ \ensuremath{\mathbb{R}}^4$.



Javier Fernandez 2003-04-03