Solutions

Homework 2

MTHE / MATH 335 — Winter 2026

Problem 1: Projection Theorem

Problem 1Projection Theorem

In class, we stated the following theorem.

Theorem (Projection Theorem) Let HH be a Hilbert space and BB a subspace of HH. Consider the problem:

infmBxm\inf_{m \in B} \|x - m\|

(i) A necessary and sufficient condition for mBm^* \in B to be the minimizing element in BB so that

infmBxm=xm\inf_{m \in B} \|x - m\| = \|x - m^*\|

is that, xmx - m^* be orthogonal BB; that is

xmxy,yB.\|x - m^*\| \le \|x - y\|, \qquad \forall y \in B.

If exists, such an mm^* is unique.

(ii) Let HH be a Hilbert space and BB a closed subspace of HH. For any vector xHx \in H, there is a unique vector mBm^* \in B satisfying (1).

Prove the theorem by visiting your class notes or the online notes.

Problem 2: Application of the Projection Theorem

Problem 2Application of the Projection Theorem

Recall a problem that we solved in class on projection to a subspace. We now modify that problem with the minimization of

11(tnm(t))2dt,\int_{-1}^{1} (t^n - m(t))^2 dt,

for some nZ+n \in \mathbb{Z}_+, over all mm such that

mM:={f:fL2([1,1];R),f(t)=α+βt+γt2;α,β,γR}m \in M := \{f : f \in L_2([-1,1]; \mathbb{R}), f(t) = \alpha + \beta t + \gamma t^2; \alpha, \beta, \gamma \in \mathbb{R}\}

a) State the problem as a Projection problem by identifying the Hilbert space, and the projected subspace.

b) Compute the solution, that is find the minimizing mm.

Hint: Note here that the projected subspace is different.

Problem 3: Orthonormal Sequences

Problem 3Orthonormal Sequences

Show that the family of complex exponentials in L2([0,2π];C)L_2([0, 2\pi]; \mathbb{C}):

{en(t)}={12πeint,nZ}\{e_n(t)\} = \left\{\frac{1}{\sqrt{2\pi}} e^{int}, \quad n \in \mathbb{Z}\right\}

forms an orthonormal sequence. This sequence is used for the Fourier expansion of functions in L2([0,2π];C)L_2([0, 2\pi]; \mathbb{C}).

Problem 4: Convergence in a Hilbert Space

Problem 4Convergence in a Hilbert Space

Let {ei}\{e_i\} be a sequence of orthonormal vectors in a Hilbert space HH. Let {xn=i=1nξiei}\{x_n = \sum_{i=1}^{n} \xi_i e_i\} be a sequence of vectors in HH. Show that this sequence converges to a vector xx if and only if

i=1ξi2<.\sum_{i=1}^{\infty} |\xi_i|^2 < \infty.

Problem 5: Orthonormal Sequences and Unique Representations

Problem 5Orthonormal Sequences and Unique Representations

Let HH be a Hilbert space, and {ei}\{e_i\} a complete orthonormal sequence in HH. That is, the only element in the Hilbert space which is orthogonal to each of the eie_i vectors is the null vector.

Show that there is a unique representation for every hHh \in H in terms of linear expansions involving the sequence {ei}\{e_i\}.

Problem 6: Separability

Problem 6Separability

Show that l2(Z+;R)l_2(\mathbb{Z}_+; \mathbb{R}) is separable.

Problem 7: A More General Projection Theorem

Problem 7A More General Projection Theorem

Theorem: Let M\mathcal{M} be a closed subspace of a Hilbert space HH. Let xx be a fixed element in HH and let VHV \subset H be a subset such that V={v:x+y,yM}V = \{v : x + y, y \in \mathcal{M}\} (also called a linear variety of M\mathcal{M}). Then there is a unique vector m0Vm_0 \in V of minimum norm. Furthermore, m0m_0 is orthogonal to M\mathcal{M}.

The following is an application of this result. Let xRnx \in \mathbb{R}^n. Consider the following optimization problem:

minxTQx,\min\, x^T Q x,

such that

Ax=b,Ax = b,

where AA is an m×nm \times n matrix mnm \le n, with rank mm and QQ a symmetric, positive definite matrix.

Show that, using the Projection Theorem, the optimal xx^* minimizing xTQxx^T Q x is given by:

x=Q1AT(AQ1AT)1bx^* = Q^{-1}A^T(AQ^{-1}A^T)^{-1}b

Problem 8: Gram-Schmidt Procedure (Matlab Assignment)

Problem 8Gram-Schmidt Procedure (Matlab Assignment)

Using Matlab (or any other program), generate a (function) code named GramSchmidtProcedure, which takes as input a fixed number of linearly independent vectors and generates a family of orthonormal vectors as a result. Apply your code to the following problem:

Let

x1=[44210],x2=[01130],x3=[04021],x4=[00021]x_1 = \begin{bmatrix} -4 \\ -4 \\ 2 \\ 1 \\ 0 \end{bmatrix}, \quad x_2 = \begin{bmatrix} 0 \\ 1 \\ 1 \\ 3 \\ 0 \end{bmatrix}, \quad x_3 = \begin{bmatrix} 0 \\ 4 \\ 0 \\ 2 \\ 1 \end{bmatrix}, \quad x_4 = \begin{bmatrix} 0 \\ 0 \\ 0 \\ -2 \\ 1 \end{bmatrix}

Generate a sequence of orthonormal vectors {e1,e2,e3,e4}\{e_1, e_2, e_3, e_4\} which span the same space that is spanned by {x1,x2,x3,x4}\{x_1, x_2, x_3, x_4\}.