Definition
Fourier series
Adapted
Defines the Fourier coefficients and Fourier series of an integrable function on an interval of any length, in both the complex-exponential and the real sine-cosine form, shows that the trigonometric system is orthogonal and that the coefficients of a uniformly convergent trigonometric series are forced to be these integrals, and sets up the even and odd extensions that turn a function given on half an interval into a cosine or sine half-range series.
Prerequisites: Inner products and norms
Fix a period and a base point , and let be integrable on , meaning . The th Fourier coefficient of is the number
and the Fourier series of is the expression
Writing is shorthand for "the displayed series is the one built from by the formula above"; the symbol carries no claim about convergence, and none is made here. Following Stein and Shakarchi we always read convergence as the limit of the symmetric partial sums
each of which is a trigonometric polynomial of degree . A general trigonometric series is any with ; its coefficients need not be the Fourier coefficients of anything.
Since every has period , so does the series. Hence the natural home of the definition is a function of period on the whole line, or equivalently a function on a circle of circumference ; a function given only on is extended to the line by , which is what the series will represent. The coefficients do not depend on the base point : see part 1 of the statement below.
The real form. It is often convenient to write the period as and use the interval . Then the series above can be rearranged into the real sine-cosine form
The constant term is written rather than precisely so that one formula gives every , including ; this is the normalisation of Arfken, Weber and Harris and of Riley, Hobson and Bence. The two sets of coefficients are related by
with . In particular is the mean value of over one period. If is real-valued then for every , equivalently all and are real. The reverse implication is weaker than it looks and must be stated carefully: if for every , then the function has every Fourier coefficient zero, and by Stein and Shakarchi's Theorem 2.1 (quoted in the remark below) it therefore vanishes at every point where it is continuous. So all one may conclude is that is real at each of its points of continuity; it may be non-real on a set of measure zero, and no statement about the coefficients can exclude that.
Conventions differ, and the differences are only bookkeeping. Stein and Shakarchi put the in the exponent and work with on an interval of length ; Stakgold and Holst, Arfken, Weber and Harris, and most physics texts take and write , rescaling at the end; Riley, Hobson and Bence keep a general period in the real form, so their cosine is where ours, with , is — the same function. Strauss writes the full series on exactly as above. We use for the period throughout and set whenever the real form is in play, so that is the half-period, and we flag any departure.
Let be integrable on . Its even extension to is
and its odd extension is
Strauss sets the odd extension to at the origin, as we do; the even extension need not be defined there. Each is then extended to the line with period . These are the only even and odd extensions there are, so the construction involves no choice.
The half-range sine series of on is
and the half-range cosine series is
The name records that the coefficient integral runs over half the period. Arfken, Weber and Harris call these the Fourier sine and Fourier cosine series. Part 4 of the statement identifies them with the full series of and , which is why the factor is here and in the full series: the integrand is even in both cases, so half the interval carries half the integral.
Let and write . Equip the space of square-integrable functions on an interval of length with the inner product , in the convention of Inner products and norms.
- Orthogonality. For all and every base point , so is orthogonal with , and is orthonormal. Equivalently, in real form, for integers , Separately, and not as a consequence of these relations, is unchanged if the interval is replaced by any other interval of length , provided has period ; this is proved on its own below.
- The coefficients are forced. Suppose a trigonometric series converges uniformly on an interval of length , with sum . Then is continuous, and it extends to a continuous function of period on the whole line — the series converges uniformly on every interval of length , since each has period — and, with computed from that extension, In the real form: if converges uniformly to , then and . In particular a function has at most one uniformly convergent trigonometric expansion.
- Symmetry. Let be integrable on . If is even then for all ; if is odd then for all , including . In either case the surviving coefficients may be computed on alone, with the factor .
- Half-range series. Let be integrable on . The half-range sine series of is exactly the full Fourier series of on , and the half-range cosine series of is exactly the full Fourier series of : that is, and , with all other coefficients zero. Both series therefore have period . Nothing here asserts that either series converges, let alone to : the claim is only that the two coefficient families coincide, so that whatever one series does on the other does to the reflected data on .
Everything here is one move from finite-dimensional linear algebra, done in a space of functions. The exponentials are mutually orthogonal for the integral inner product over one period, and each has the same length . In a finite-dimensional space with an orthogonal basis, the coefficient of a basis vector in an expansion is recovered by taking one inner product and dividing by the squared length; the formula for is that recipe, nothing more. What distinguishes the infinite-dimensional case is that the expansion is now an infinite sum, so recovering a coefficient requires interchanging an integral with a limit. Uniform convergence is exactly the hypothesis that licenses the interchange, which is why part 2 asks for it and asks for nothing else. The symmetry and half-range statements then follow from a single observation: the coefficient integral of an odd function over a symmetric interval vanishes, and is odd while is even.
Part 1, the exponential relations. Put . If the integrand is identically and the integral is . If then has the antiderivative , so
because is an integer. Dividing by gives , and since . Note that the base point dropped out of the calculation. All that was used is that each has period , which is where came from; the periodicity of plays no part here, and is a separate hypothesis used only in the base-point paragraph two paragraphs below.
Part 1, the real relations. Write , so that , and replace each cosine and sine by and . Each product becomes a sum of four exponentials, at the frequencies , , and (the frequency of being the integer ). By the exponential relations, integrating over gives each such term times its coefficient if its frequency is zero, and nothing otherwise, so only the zero-frequency terms have to be counted.
For the sine-cosine product, . If and , no frequency is zero and the integral is . If the two middle terms both have frequency zero and their coefficients are and , so they cancel; if the integrand is identically . So the integral vanishes for all .
For the two like products, and . With and every frequency is nonzero and both integrals vanish. For it is the two middle terms that survive, the pair at frequency ; each carries coefficient in both products, contributing apiece, so each integral is . For the cosine integrand is and the integral is — here all four exponentials have frequency zero, with coefficients summing to — while the sine integrand is identically .
Part 1, independence of the base point. Let have period and let be any other base point. Then is a difference of integrals over two intervals of equal length ; since the integrand has period , the part of outside is a translate by of the part of outside , and the two contributions are equal. Hence the difference is zero.
Part 2. Let and suppose uniformly on . Each is continuous, and continuity survives passage to a uniform limit (Uniform convergence). That argument is a single line, so we give it here rather than lean on another unit for it: for ,
and choosing to make the first term small and then close to to make the second small shows is continuous at . Each has period , hence so does each ; the same series therefore converges uniformly on every translate of by a multiple of , and the function it defines on the whole line is continuous of period and agrees with on . That extension is the meant in the statement. Fix and multiply by the bounded function , which does not disturb uniform convergence since : uniformly on . A uniformly convergent sequence on an interval of finite length may be integrated term by term, because
For each fixed the integral of the finite sum is a finite sum of integrals, and by part 1 only the term survives, so as soon as . Letting gives , which is . The real statement follows by applying this to the exponential form obtained from the dictionary in the definition, or by repeating the argument with and in place of and using the real orthogonality relations, which is the route Riley, Hobson and Bence take. Uniqueness is immediate: both expansions have the same coefficients, namely those of their common sum.
Part 3. Take the interval , which is symmetric about . If is even then is a product of an even and an odd function, hence odd, and the integral of an odd function over a symmetric interval vanishes: . If is odd then is odd for every — the case included, since — so every vanishes, among them. In the surviving cases the integrand is even, so , which converts the factor into .
Part 4. Apply part 3 to . It is odd by construction, so all its vanish, and
using that on and that the single point contributes nothing to an integral. So the full series of is , the half-range sine series. The cosine case is the same computation with , which is even, so its vanish and . Both extensions were given period , so both series do.
Integrability is all that is needed for to exist: , so the defining integral converges absolutely whenever . Nothing weaker will do, and nothing stronger is required to write down the series.
Uniform convergence in part 2 is used at exactly one step, the interchange of the integral with the limit, and the displayed estimate shows how: the error is bounded by the period times the uniform error. Two consequences of insisting on it are worth separating. First, it forces the sum to be continuous, so part 2 says nothing whatever about a function with a jump — for those, the series is defined by the coefficient integrals and convergence has to be proved, which is the business of Pointwise convergence of Fourier series and Cesàro means and Fejér's theorem. Second, part 2 is a statement about a series that is given as convergent; it does not say that the Fourier series of a function converges to it. Weakening the hypothesis to pointwise convergence invalidates the proof, since the estimate above then has no uniform bound to work with.
Why the coefficients cannot determine everywhere. Changing at finitely many points leaves every unchanged, so no theorem can conclude pointwise from . Stein and Shakarchi's Theorem 2.1 gives the sharp positive statement in this direction: if is integrable on the circle with for every , then at every point where is continuous. Their Corollary 2.2 is the clean case: a continuous with all coefficients zero is identically zero. Our part 2 is consistent with this and weaker, since it starts from a convergent series.
Periodicity is what makes the base point irrelevant, and only that. For an merely given on with , the periodic extension has a jump at the end-points, and the coefficients computed from a shifted interval are the coefficients of a different periodic function. This is the trap Riley, Hobson and Bence flag for extensions: a continuation that is discontinuous at an end-point of the interval of interest will not converge to the wanted value there. Their own example is the odd extension of from , whose series converges at to rather than to , because the odd extension jumps from to across . The cure is to choose the extension, when one is free to, so that no jump is created: is continuous at and at whenever is continuous on , whereas is continuous at only if and at only if .
Which extension to use is dictated by the problem, not by taste. Strauss's correspondence is the operational version: homogeneous Dirichlet conditions go with the odd extension and hence a sine series, because every vanishes at both ends; homogeneous Neumann conditions go with the even extension and a cosine series, because every has vanishing derivative at both ends; genuinely periodic conditions go with the plain periodic extension and the full series. Arfken, Weber and Harris make the complementary point with on : its sine series, its cosine series and its power series all represent it on and disagree sharply outside, because the three carry different assumptions about symmetry and periodicity.
A hypothesis we did not impose. Riley, Hobson and Bence state four Dirichlet conditions on — periodicity, single-valuedness with at most finitely many finite discontinuities, finitely many maxima and minima in a period, and convergence of over a period — as the conditions under which a Fourier expansion is valid; Arfken, Weber and Harris give the same name to the last three and call such an piecewise regular, remarking that they are sufficient but not necessary. None of them are needed for anything in this unit: they are convergence hypotheses, and they belong with the convergence theorems.
- Fix the period and the extension. Decide what the function is outside the interval you were given. If it is already periodic, use its period. If it is given on and you are free to choose, choose the extension the application forces: odd (sine series) for data that must vanish at both ends, even (cosine series) for data whose derivative must vanish at both ends, plain periodic otherwise. Record the resulting period: for either half-range series.
- Use symmetry before integrating. By part 3, an even function has no sine terms and an odd function no cosine terms, which halves the work. For a half-range series only one family appears by construction.
- Choose the form. The real form is usually easier for polynomial and piecewise-constant data; the complex form is usually easier when the integrand contains , , or a product of trigonometric functions, since then everything is an exponential and the integral is elementary. Convert at the end with the dictionary .
- Evaluate the integrals. For a polynomial integrand, integrate by parts repeatedly, each step lowering the degree by one and producing a boundary term; for data defined piecewise, split the integral at the break-points. Arfken, Weber and Harris's complementary device is worth remembering in the other direction: to identify the sum of a given trigonometric series, replace the trigonometric functions by exponentials and look for a Maclaurin series you recognise — their example sums to by recognising two copies of .
- Check before you use it. Four cheap tests catch most errors. (i) must equal the mean of over a period; in particular it vanishes for an odd function. (ii) The parity predicted by step 2 must actually hold in the answer. (iii) Evaluate the series at a point where you know and where the trigonometric functions are simple (, , ) and compare; this both tests the coefficients and, as a by-product, evaluates a numerical series. (iv) Check the decay rate of the coefficients against the smoothness of the periodic extension you built in step 1, using Smoothness and decay of Fourier coefficients: coefficients falling like signal a jump, like a corner. If step 1 produced a jump you did not intend, this is where it shows up.
Take on , with , so the half-period is and both half-range series have period . (Note the clash of notation with the definition block, where was the period: in this example and in the application below, is the length of the interval the function is given on, so the period of either half-range series is .) The function is non-negative, vanishes at both ends, and peaks at in the middle: it is the shape of a string pulled aside with a smooth parabolic profile.
Step 1: the sine series. With the odd extension is continuous, so the sine series is the natural choice. Integrating by parts twice, with and ,
The boundary term vanishes at both ends because does. In the remaining integral, integrate by parts once more:
where the boundary term vanished because , and . Multiplying by ,
The even coefficients vanish for a reason visible in the picture: is symmetric about , and is antisymmetric about that point for even .
Step 2: a checkable number. Put , where and for odd . The series does converge to there, by the following two steps. First, the series converges uniformly on , by the Weierstrass M-test (Uniform convergence); the reason is one line, so we give it rather than lean on it: for every , so the tail beyond is bounded by , a bound independent of which tends to because converges. Write for the sum. By part 2, is continuous, has period , and has Fourier coefficients exactly in the sine slots and elsewhere. Second, has those same coefficients, by part 4, and it is continuous on the whole line: it vanishes at and at , which are the only places the pieces of the -periodic odd extension are joined. So is continuous with every Fourier coefficient zero, and Stein and Shakarchi's Corollary 2.2 (quoted in the remark above) forces identically. Part 2 alone could not have done this — it fixes the coefficients of and nothing more — which is exactly the point made in the remark. Evaluating at we get , that is
Numerically the left side is to sixteen figures and ; the partial sums of the Fourier series at , in units of , run , , , , for nonzero terms, oscillating in towards as the alternating series requires.
Step 3: the cosine series of the same function. Now extend evenly instead. The mean is
and two integrations by parts in the same pattern — this time the first boundary term vanishes because does at both ends, and the second survives because — give
so, writing ,
Step 4: the second checkable number. The same two steps apply here: makes the cosine series uniformly convergent, with a continuous sum whose coefficients are the ; is continuous on the line, since the even extension of takes the value at both and , where its pieces join; so the two continuous functions have the same coefficients and Corollary 2.2 identifies them. Setting , where and every cosine equals , the two displays therefore force , that is — the correct value, which is the test passing rather than a new derivation.
What the two series show. The same on has been written in two different ways, and both are right on . They differ in their periods' content outside it ( against ) and in their decay: for the sine series against for the cosine series. The reason is step 1 of the method. The odd extension of is on , and it is continuous with a continuous first derivative at and at : its derivative is on , an even function, which matches itself across the join at and takes the common value at both ends of the period. The even extension is on , whose derivative tends to at against at : a corner at each join. One extension is smoother than the other, and the coefficients report it. Every coefficient and every numerical value above was checked symbolically with sympy and numerically to twelve figures with mpmath.
A plucked string, mode by mode. A string of length fixed at both ends, released from rest with displacement scaled to a peak of — so the initial profile is — vibrates as . The boundary conditions are Dirichlet at both ends, so step 1 of the method sends us to the sine series, and the example delivers the amplitudes outright:
The fundamental carries amplitude , the third harmonic of that, the fifth . Energy goes as amplitude squared times , so the third harmonic holds about of the fundamental's energy: a smoothly plucked string is very nearly a pure tone, and the even harmonics are missing entirely because the pluck is symmetric about the midpoint. Pluck it off-centre and the symmetry argument fails, the even harmonics appear, and the tone brightens — which is why guitarists pick near the bridge for a harder sound. The same coefficients, with replaced by , solve the heat equation on the same interval with the same initial profile and ends held at zero; there the high harmonics die fastest, and after a short time the profile is the fundamental alone.
Insulated ends need the other series. Replace "ends held at zero temperature" by "ends perfectly insulated" and the boundary conditions become at both ends. Now the admissible modes are , the extension to use is even, and the right expansion of the same initial profile is the cosine series of step 3 — including its constant term, which for the scaled profile is — the mean of the initial profile, and exactly the final steady state, since every other term decays. (The bare of step 3 is the constant term of the unscaled .) Using the sine series here would impose the wrong boundary condition and predict total cooling instead of equilibration at the mean. The choice of extension is a physical statement.
Harmonic content of a periodic drive. When a linear system is driven by a periodic force of period , writing the force as a Fourier series in replaces one hard problem by a family of easy ones: each term drives the system at a single frequency , the response to it is the transfer function at that frequency times the coefficient, and the total response is the sum. The numbers are the power spectrum of the drive, and the usefulness of the decomposition depends entirely on linearity: for a nonlinear system the responses do not add, and the harmonics of the drive are not the harmonics of the response. It is also the reason a sharp-edged drive is hard on a resonant system: a jump in the forcing makes the coefficients decay only like , so the drive has appreciable amplitude at arbitrarily high harmonics, and any one of them that coincides with a resonance is excited.