Inmathematics,orthogonal functions belong to afunction space that is avector space equipped with abilinear form. When the function space has aninterval as thedomain, the bilinear form may be theintegral of the product of functions over the interval:
The functions and areorthogonal when this integral is zero, i.e. whenever. As with abasis of vectors in a finite-dimensional space, orthogonal functions can form an infinite basis for a function space. Conceptually, the above integral is the equivalent of a vectordot product; two vectors are mutually independent (orthogonal) if their dot-product is zero.
Suppose is a sequence of orthogonal functions of nonzeroL2-norms. It follows that the sequence is of functions ofL2-norm one, forming anorthonormal sequence. To have a definedL2-norm, the integral must be bounded, which restricts the functions to beingsquare-integrable.
Several sets of orthogonal functions have become standard bases for approximating functions. For example, the sine functionssinnx andsinmx are orthogonal on the interval when andn andm are positive integers. For then
and the integral of the product of the two sine functions vanishes.[1] Together with cosine functions, these orthogonal functions may be assembled into atrigonometric polynomial to approximate a given function on the interval with itsFourier series.
If one begins with themonomial sequence on the interval and applies theGram–Schmidt process, then one obtains theLegendre polynomials. Another collection of orthogonal polynomials are theassociated Legendre polynomials.
The study of orthogonal polynomials involvesweight functions that are inserted in the bilinear form:
ForLaguerre polynomials on the weight function is.
Both physicists and probability theorists useHermite polynomials on, where the weight function is or.
Chebyshev polynomials are defined on and use weights or.
Zernike polynomials are defined on theunit disk and have orthogonality of both radial and angular parts.
Walsh functions andHaar wavelets are examples of orthogonal functions with discrete ranges.

Legendre and Chebyshev polynomials provide orthogonal families for the interval[−1, 1] while occasionally orthogonal families are required on[0, ∞). In this case it is convenient to apply theCayley transform first, to bring the argument into[−1, 1]. This procedure results in families ofrational orthogonal functions calledLegendre rational functions andChebyshev rational functions.
Solutions of lineardifferential equations with boundary conditions can often be written as a weighted sum of orthogonal solution functions (a.k.a.eigenfunctions), leading togeneralized Fourier series.