Solutions

Homework 3

MTHE / MATH 335 — Winter 2026

Problem 1: Orthonormal Vectors

Problem 1Orthonormal Vectors

Let {en,nN}\{e_n, n \in \mathbb{N}\} be a complete orthonormal sequence in a real Hilbert space HH. Let M\mathcal{M} be a subspace of HH, spanned by {ek,kS}\{e_k, k \in S\}, for some finite set SNS \subset \mathbb{N}. That is,

M={vH:αkR,kS,v=kSαkek}\mathcal{M} = \{v \in H : \exists \alpha_k \in \mathbb{R}, k \in S, \quad v = \sum_{k \in S} \alpha_k e_k\}

Let xHx \in H be given. Find xMx^* \in \mathcal{M} which is the solution to the following:

minx0Mxx0,\min_{x_0 \in \mathcal{M}} \|x - x_0\|,

in terms of xx, and {en,nN}\{e_n, n \in \mathbb{N}\}.

Hint: By our arguments in class, any vector in HH can be written as x=nNx,enenx = \sum_{n \in \mathbb{N}} \langle x, e_n \rangle e_n.

Problem 2: Haar Wavelets

Problem 2Haar Wavelets

One practically important basis is the class of Haar functions (wavelets). We defined in class Haar functions as follows.

Ψ0,0(x)={1,if 0x10else\Psi_{0,0}(x) = \begin{cases} 1, & \text{if } 0 \le x \le 1 \\ 0 & \text{else} \end{cases}

and for nZ+,k{0,1,2,,2n1}n \in \mathbb{Z}_+, k \in \{0, 1, 2, \ldots, 2^n - 1\},

Φn,k(x)={2n/2,if k2nx<(k+1/2)2n2n/2,if (k+1/2)2nx(k+1)2n0else\Phi_{n,k}(x) = \begin{cases} 2^{n/2}, & \text{if } k2^{-n} \le x < (k + 1/2)2^{-n} \\ -2^{n/2}, & \text{if } (k+1/2)2^{-n} \le x \le (k+1)2^{-n} \\ 0 & \text{else} \end{cases}

Show that the family

{Ψ0,0,Φn,k,nZ+,k{0,1,2,,2n1}}\{\Psi_{0,0}, \Phi_{n,k}, n \in \mathbb{Z}_+, k \in \{0, 1, 2, \ldots, 2^n - 1\}\}

is complete and orthonormal in L2([0,1];R)L_2([0,1]; \mathbb{R}) and is a sequence (that is, countable).

Hint: You may use/assume the fact that the space of R\mathbb{R}-valued continuous functions on [0,1][0,1] are dense in L2([0,1];R)L_2([0,1]; \mathbb{R}).

Problem 3: Polynomials

Problem 3Polynomials

Let C([0,1];R)C([0,1]; \mathbb{R}) denote the normed linear space of continuous functions from [1,1][-1,1] to R\mathbb{R} under the supremum norm. We observed earlier that polynomials can be used to approximate any function in this space with arbitrary precision, under the supremum norm (Weierstrass Theorem).

Given this, repeating the arguments we made in class, argue that the family of polynomials {1,t,t2,}\{1, t, t^2, \cdots\} can be used to form a complete orthonormal sequence in L2([0,1];R)L_2([0,1]; \mathbb{R}). This also establishes that L2([0,1];R)L_2([0,1]; \mathbb{R}) is separable.

These polynomials are not orthonormal, but we could orthonormalize them via the Gram-Schmidt procedure. This leads to what is known as the Legendre Polynomials.

Problem 4: Linear Functionals on a Normed Space

Problem 4Linear Functionals on a Normed Space

Let ff be a linear functional on a normed linear space XX (mapping XX to R\mathbb{R}). Suppose that we define ff to be bounded if there is a constant MM such that f(x)Mx|f(x)| \le M\|x\| for all xXx \in X.

The smallest such MM is called the norm of ff and is denoted by f\|f\|. The space of all bounded, linear functionals on XX is called the dual space of XX.

Show that a linear functional on a normed linear space is bounded if and only if it is continuous.

Problem 5: Riesz Representation Theorem

Problem 5Riesz Representation Theorem

Let ff be a linear and continuous functional on l2(N;R)l_2(\mathbb{N}; \mathbb{R}); thus, mapping l2(N;R)l_2(\mathbb{N}; \mathbb{R}) to R\mathbb{R}.

Show that for every such ff, there exists a vector κl2(N;R)\kappa \in l_2(\mathbb{N}; \mathbb{R}) such that

f(x)=x,κ,xl2(N;R),f(x) = \langle x, \kappa \rangle, \quad \forall x \in l_2(\mathbb{N}; \mathbb{R}),

where the inner-product is the one giving rise to the l2l_2-norm in l2(N;R)l_2(\mathbb{N}; \mathbb{R}).

Problem 6: Weak Convergence

Problem 6Weak Convergence

In this problem we will show that the usual notion of convergence (that is strong convergence) implies weak convergence for a Hilbert space. Let xnL2(R+;R)x_n \in L_2(\mathbb{R}_+; \mathbb{R}).

a) Show that if xnxx_n \to x, then xn,fx,ffL2(R+;R)\langle x_n, f \rangle \to \langle x, f \rangle \quad \forall f \in L_2(\mathbb{R}_+; \mathbb{R}), that is convergence in strong sense implies convergence in weak sense.

b) Possibly via a counterexample, show that xnxx_n \to x weakly does not imply convergence in the strong sense.

Problem 7: Bernstein Polynomials (Matlab Assignment)

Problem 7Bernstein Polynomials (Matlab Assignment)

In class we observed that the space of polynomials is a dense subset of the space of continuous functions C([0,1])C([0,1]) under the supremum norm. One class of polynomials which can be used to constructively provide an approximation is the family of Bernstein polynomials, defined as follows: Let for some fC([0,1])f \in C([0,1]):

Bn,f(t)=k=0nf(kn)(nk)tk(1t)nkB_{n,f}(t) = \sum_{k=0}^{n} f\left(\frac{k}{n}\right) \binom{n}{k} t^k (1-t)^{n-k}

In this exercise, you are asked to write a Matlab (or an alternative program) function which admits a trigonometric function fC([0,1])f \in C([0,1]), and nn as its inputs and generates the Bernstein polynomial approximation of the signal.

You may take ff to be for example f(t)=2sin(14πt)+3cos(12πt)f(t) = 2\sin(\frac{1}{4}\pi t) + 3\cos(\frac{1}{2}\pi t).

Given a trigonometric function of your choice, compute the Bernstein approximations of order nn, where nn can take three values and verify that the supremum difference

supt[0,1]f(t)Bn,f(t),\sup_{t \in [0,1]} |f(t) - B_{n,f}(t)|,

decreases as nn increases.