Orthogonality
From biophysics wiki
If $f(x)$ and $g(x)$ are two real valued functions, continuous on the interval $a \leq x \leq b$, we define the inner product as the integral
\begin{align} ( f,g ) = \int_a^b f(x) g(x) dx \end{align}
In analogy to the orthogonality concept of vectors, we call two functions orthogonal if their product is zero $(f,g)=0$. In the article about Fourier Series we introduced the concept of orthogonality in an intuitive way, by calculating resulting integrals explicitly. The linear combination of sine and cosine of \begin{align} y(x)=a_{\lambda} \, cos (\lambda x) + b_{\lambda} \, sin(\lambda x) \end{align} is the general solution to the ODE \begin{align} y=-\lambda^2y \end{align} We use this fact to proof the orthogonality of solutions (the eigenfunctions) to different eigenvalues $\lambda$. Let $Y_1$ and $Y_2$ be two different Eigenfunctions. Thus \begin{align} Y_1&=-\lambda_1^2 Y_1\\ Y_2&=-\lambda_2^2 Y_2\\ \end{align} If we multiply by $Y_2$ and $Y_1$ respectively \begin{align} Y_1Y_2&=-\lambda_1^2 Y_1Y_2\\ Y_2Y_1&=-\lambda_2^2 Y_2Y_1\\ \end{align} and subtract the equations, we have \begin{align} Y_1Y_2-Y_2Y_1&=(\lambda_2^2-\lambda_1^2) Y_1Y_2\\ \end{align} By partial integration we find \begin{align} \int Y_1Y_2-Y_2Y_1 dx= \left[Y_1'Y_2 \right]_a^b-\int Y_1'Y_2' dx - \left[ Y_2'Y_1 \right]_a^b + {\int Y_1'Y_2'} dx =\left[Y_1'Y_2 - Y_2'Y_1 \right]_a^b \end{align} Green's second identity
\begin{align} \int Y_1Y_2-Y_2Y_1 dx=\left[Y_1'Y_2 - Y_2'Y_1 \right]_a^b \end{align}