Here we recall, in the most general form, how a function is expanded into a series in an orthogonal system of functions — we use this expansion everywhere we solve boundary value problems by separation of variables. Suppose in the domain there is given a system of functions , pairwise orthogonal with the weight function , that is
The function is called expandable in this system if it can be represented by a convergent series
The coefficients (they are called Fourier coefficients) are found thanks to orthogonality. Let us multiply both sides of (A.2) by and integrate over the domain . Due to orthogonality (A.1) only one term survives on the right-hand side — the one with :
whence the expansion coefficients are determined uniquely:
The denominator in formula (A.4) is the squared norm of the function :
Formula (A.4) is universal: whatever the orthogonal system, the expansion coefficients in it are computed in the same way. The weight is determined by the coordinate system in which the variables separate: it is the factor with which the coordinate enters the volume element (the Jacobian) and with respect to which orthogonality holds for the system . For the main systems it equals: