For two functions \(f(\sigma), g(\sigma)\) defined for \(\sigma=0,1,2, \ldots,
N+1\), we define an inner product \((f, g)\) by the equation (cf. Section 7.10)
$$
(f, g)=f(0) g(0)+f(1) g(1)+\cdots+f(N) g(N)+f(N+1) g(N+1)
$$
the norm \(\|f\|\) is then defined as \((f, f)^{\frac{1}{2}}\). In the following
we consider only functions that equal 0 for \(\sigma=0\) and \(\sigma=N+1\). In
particular, we use the functions \(\phi_{n}(\sigma)\) of Problem \(5(d)\) :
$$
\phi_{n}(\sigma)=\sin (n \alpha \sigma), \quad \alpha=\pi /(N+1) .
$$
a) Graph the functions \(\phi_{n}(\sigma)\) for the case \(N=5\).
b) Show that \(\left(\phi_{m}, \phi_{n}\right)=0\) for \(m \neq n\) and that
\(\left\|\phi_{n}\right\|^{2}=\frac{1}{2}(N+1)\). [Hint: Write
$$
\phi_{n}(\sigma)=\frac{r^{\sigma}-s^{\sigma}}{2 i}, \quad r=e^{\alpha n i},
s=e^{-\alpha n i}
$$
and evaluate inner product and norm with the aid of the formula for sum of a
geometric progression.]
c) Show that if we associate with each function \(f(\sigma)\) the vector
\(\mathbf{v}=\left[v_{1}, v_{2}, \ldots, v_{N}\right]\), where \(v_{1}=f(1),
v_{2}=f(2), \ldots, v_{N}=f(N)\), then the operations \(f+g, c f,(f, g)\)
correspond to the vector operations \(\mathbf{u}+\mathbf{v}, c \mathbf{u},
\mathbf{u} \cdot \mathbf{v}\) of Section 1.14. Accordingly, the space of
functions considered forms an \(N\)-dimensional Euclidean vector space. The
vectors corresponding to the functions \(\phi_{n}(\sigma)
/\left\|\phi_{n}(\sigma)\right\|\) form a system of base vectors.
d) Show that if \(f(\sigma)\) is defined for \(\sigma=0, \ldots, N+1\) and
\(f(0)=f(N+1)=0\), then \(f(\sigma)\) can be represented in one and only one way
as a linear combination of the functions \(\phi_{n}(\sigma)\), namely, as
follows:
$$
f(\sigma)=\sum_{n=1}^{N} b_{n} \phi_{n}(\sigma), \quad b_{n}=\frac{2}{N+1}
\sum_{\sigma=0}^{N+1} f(\sigma) \phi_{n}(\sigma)
$$
Compare with the Fourier sine series (Section 7.5).