$L^2$ Inner Product
Undergraduate
Consider two real-valued functions $f$ and $g$ on an interval $[a, b]$ such that $\int_a^b f(t)^2 \dt$ and $\int_a^b g(t)^2 \dt$ are finite. The $L^2$ inner product of $f$ and $g$ is
\[\ip{f}{g} = \int_a^b f(t) g(t) \dt.\]Properties
- The $L^2$ inner product is the continuous analog of the dot product: the sum over entries becomes an integral over the interval.
- Its norm $\norm{f} = \sqrt{\int_a^b f(t)^2 \dt}$ measures the size of $f$ on average, and two functions that differ only at finitely many points have distance $0$.
- The functions $\sin(k t)$ for $k = 1, 2, \dots$ are orthogonal in the $L^2$ inner product on $[0, 2\pi]$, which is the basis of Fourier series.
Notes
The condition that $\int_a^b f(t)^2 \dt$ and $\int_a^b g(t)^2 \dt$ are finite guarantees that the integral defining $\ip{f}{g}$ is finite. This follows from the Cauchy–Schwarz inequality:
\[\left\lvert \int_a^b f(t) g(t) \dt \right\rvert \le \sqrt{\int_a^b f(t)^2 \dt} \, \sqrt{\int_a^b g(t)^2 \dt}.\]Without the condition, the inner product might not exist. For example, the function $f(t) = 1/\sqrt{t}$ on $[0, 1]$ is integrable, but $f(t)^2 = 1/t$ is not, so $\ip{f}{f}$ is infinite.
Distinctions involving this term
- Types of Inner Products: An inner product multiplies two vectors to give a number, which determines lengths and angles, and different inner products give different geometries. The dot product is the standard inner product on $\reals^n$. A weighted inner product $x\trans W y$ stretches some directions more than others, and the $L^2$ inner product does the same job for functions, with an integral in place of a sum.
All definitions · All distinctions · All examples · Notation