- Learn
- Mathematics
- University Math
- Differential Equations
- Fourier Series
Fourier Series
IntermediateLesson 6 of 8 in Differential Equations Course
What you will learn
- Recognize periodic functions, see why sines and cosines of matching periods can build them, and compute the Fourier coefficients of a periodic function from their integral formulas.
- Describe periodic functions and their harmonicsUse period, fundamental period and frequency correctly, draw the periodic extension of a function given on one period, and recognize the standard waveforms of this unit.
- Use orthogonality to derive the coefficient formulasEvaluate the orthogonality integrals of sines and cosines on one period and use them to derive and interpret the formulas for the Fourier coefficients.
- Compute the Fourier series of a given periodic functionFind all Fourier coefficients of piecewise-defined periodic functions with period 2π or 2L, simplify them with standard values, and read the result as a sum of harmonics.
- Describe periodic functions and their harmonics
- Use even and odd symmetry to predict which coefficients vanish, expand a function given on half an interval as a sine or cosine series, and build new series from known ones instead of integrating from scratch.
- Use even and odd symmetry to simplify the coefficientsIdentify even and odd functions and periodic extensions, and use their symmetry to reduce a full Fourier series to a cosine series or a sine series.
- Expand a function on half an interval as a sine or cosine seriesExtend a function given only on 0 < x < L to an even or odd function of period 2L, compute its half-range cosine or sine series, and choose the extension that suits the boundary conditions.
- Build new series from known onesObtain Fourier series by adding, shifting and rescaling known series, and integrate or differentiate a series term by term when the conditions allow it.
- Use even and odd symmetry to simplify the coefficients
- State what a Fourier series converges to, including at jumps, relate the smoothness of a function to how fast its coefficients shrink, and describe how partial sums approximate the function, including the Gibbs phenomenon.
- Apply the Fourier convergence theoremCheck the conditions of the convergence theorem, find the value of a Fourier series at every point, including jumps and period endpoints, and use the theorem to sum numerical series.
- Describe partial sums, the Gibbs phenomenon and mean-square errorDescribe how partial sums behave near a jump, quantify the Gibbs overshoot, and measure how well a partial sum approximates a function with the mean-square error and Parseval's identity.
- Apply the Fourier convergence theorem
- Find periodic solutions of linear constant-coefficient equations driven by a periodic, non-sinusoidal force by treating each harmonic separately, and predict which harmonics dominate the response and when resonance occurs.
- Find the periodic response of an undamped system by superpositionExpand the forcing term in a Fourier series, solve for the response to each harmonic, and add the responses to get the periodic solution of an undamped spring–mass equation.
- Find the steady periodic response of a damped systemUse the gain and phase lag of a damped system for each harmonic to build the steady periodic solution, and identify which harmonics dominate it.
- Recognize resonance with a harmonic of the forcingDecide whether a periodic force causes pure resonance in an undamped system, find the growing solution when it does, and explain near-resonance with light damping.
- Find the periodic response of an undamped system by superposition
- Set up the heat equation for a thin rod with boundary and initial conditions, separate variables to find its product solutions, and combine them with a Fourier series to match the initial temperature.
- Separate variables and find the product solutionsInterpret the heat equation and its conditions, reduce it to two ordinary differential equations, and solve the boundary value problem that gives the allowed sine modes.
- Solve and interpret heat problems in a rodCompute the series solution for a given initial temperature, interpret how each mode decays, and adapt the method to fixed nonzero end temperatures and insulated ends.
- Separate variables and find the product solutions
Fourier Series study guide
1Build a periodic function from harmonics
Repeating forces can have corners, flat sections, and jumps. Sines and cosines supply a set of simple building blocks for those shapes, with one frequency for each harmonic. Start by identifying the period and inspecting the repeated graph. Then use orthogonality to extract coefficients and build a series from a piecewise formula. The average value and the first few harmonic amplitudes give useful checks on the calculation.
1.1 Periods, frequencies, and repeating waves
A repeating signal need not be a sine wave. A motor can exert a force with a sharp pulse in each rotation, while a repeating temperature cycle can rise slowly and fall quickly. Fourier series describe such shapes through their frequencies.
One cycle and its harmonics
A function is periodic with period when for every . Moving one period along the horizontal axis leaves its value unchanged. Every positive whole multiple of a period is also a period. The fundamental period is the smallest positive one: for it is , even though also works. A constant function has every positive period and no smallest one.
Frequency counts cycles per unit time; angular frequency measures the angle swept per unit time:
For a cycle lasting 0.02 s, these are 50 Hz and rad/s. Do not substitute 50 into a formula that asks for angular frequency: one cycle contains radians.
Write the common period as . The matching sine and cosine functions are and . Harmonic has angular frequency and completes cycles during one interval of length . Its own fundamental period is . Thus the third harmonic repeats three times while the fundamental repeats once.
Sums and products of functions sharing a period keep that period, although their smallest period can be shorter. For , one common cycle takes : the first term completes two cycles and the second completes three. In contrast, never repeats exactly. No positive time shift completes a whole number of cycles for both terms.
Repeat the whole shape
A periodic extension repeats a function given on one interval. Copy the graph horizontally without flipping it. With period , three useful shapes are:
- The square wave is −1 on and 1 on .
- The sawtooth is on , repeated.
- The triangle wave is on , repeated.
The joins matter. At , the sawtooth drops from to , creating a jump of size . The triangle wave arrives at height and leaves the next copy at the same height. It has a corner there, not a jump. The square wave jumps both halfway through the displayed interval and where successive copies join.
For an integrable periodic function, the integral over one full period is independent of where that interval starts:
The area lost at one end reappears at the other. This freedom will let us choose coefficient integrals with fewer pieces or useful symmetry.
Key Takeaways
- is a period when ; the fundamental period is the smallest positive one.
- Frequency is ; angular frequency is .
- For period , harmonic has angular frequency .
- Inspect the joins of a periodic extension for jumps and corners.
1.2 Extracting coefficients by orthogonality
A Fourier coefficient measures how much of one sine or cosine a function contains. The reason we can extract one frequency without interference from the others is orthogonality, the function version of perpendicular vectors.
The series and its normalization
For period , write
The symbol identifies the Fourier series; its pointwise sum will be settled by a convergence theorem. There is no useful sine term with index zero because .
For positive integers , the integral over of two sine terms, or of two cosine terms, is zero when their indices differ. When the indices agree, the squared sine or cosine integrates to . Every sine–cosine product integrates to zero. The constant function is the exception in size: .
For example, product-to-sum gives
Both cosines integrate to zero over , so the product does too. But has integral . Different harmonics cancel in the integral; a harmonic multiplied by itself leaves a positive contribution.
Isolate one term
Multiply the Fourier expansion by and integrate over a period. The constant and every nonmatching harmonic disappear. The remaining term is . Dividing by yields the Euler–Fourier formulas:
This is a projection: take the inner product with the desired function, then divide by that function's squared length. Here the inner product of and is .
For , the cosine is 1. The formula therefore gives , while the actual constant term is
It is the average value. A voltage spending equal times at 0 V and 5 V has average 2.5 V, so V in this convention. Putting 5 V directly into the series would double the average. Some books call the average itself ; their constant-term formula uses .
Every integrand in the coefficient formulas has period . You may replace with any full-period interval, including . Keep the same factor and the same sine and cosine functions when you change the integration interval.
Key Takeaways
- Different harmonics are orthogonal over a full period.
- A positive-index sine or cosine has squared integral ; the constant has squared integral .
- Project onto the desired sine or cosine and divide by to obtain its coefficient.
- The constant term is the average value.
- Coefficient integrals can use any interval of length .
1.3 Calculating a series from a piecewise formula
Coefficient calculations become manageable when you keep the period, the pieces, and the index separate. First identify . Then integrate the constant term on its own and calculate the positive-index coefficients with the correct frequency .
A square wave
For with period , . The positive and negative areas cancel, so . The cosine coefficients cancel too. Splitting the sine integral at zero gives
The endpoint values used here are and . For odd the numerator is 4; for even it is zero. Thus
The missing even harmonics are part of the answer, not terms to approximate as small. The first three nonzero amplitudes are about 1.273, 0.424, and 0.255.
A ramp that is zero for half its cycle
Now take period 2, with on and on . Here and the harmonic arguments are . The constant coefficient is , so the constant term is .
For positive , integration by parts gives
Use and evaluate at 0 and 1:
The cosine terms occur only at odd indices and are negative. The sine coefficients alternate in sign. The beginning of the series is
Do not substitute into a positive-index expression with in the denominator. That expression was derived for a nonzero frequency; integrate itself to find .
Read and check the result
A pair has amplitude . Plotting those amplitudes against frequency gives the amplitude spectrum. A partial sum keeps harmonics only through a chosen index; it gives a graph you can compare with the repeated shape.
Check the average, predicted symmetry, and actual period. Signs must come from the integrals. The function initially rises after zero, yet its first sine coefficient is −1. A local slope cannot determine a projection taken over a whole cycle.
Key Takeaways
- Split coefficient integrals wherever the formula changes.
- Use equal to half the period, including in the harmonic arguments.
- Calculate separately before the positive-index coefficients.
- Use to separate odd and even indices.
- Harmonic amplitude is .
- Check the mean, symmetry, and a partial-sum graph.
2Shorten the work with symmetry and known series
Symmetry can eliminate half the coefficient work before an integral is written. Even and odd extensions also let you represent data known only on a positive interval, which is essential for rod problems. Known series can then be added, shifted, rescaled, or integrated to produce new ones. Differentiation needs extra care because the way successive periods join can determine whether the new series converges.
2.1 Even waves, odd waves, and missing coefficients
Before integrating, reflect the periodic graph across zero. Symmetry can make an entire family of coefficients vanish and reduce the remaining integrals to half the interval.
The sign rules behind the shortcut
An even function satisfies . Its left half mirrors its right half across the vertical axis. An odd function satisfies ; rotating its graph halfway around the origin leaves it unchanged. Cosine, , and are even. Sine, , and are odd.
Even times even and odd times odd are even; even times odd is odd. On a symmetric interval, an odd integrand cancels, while an even one doubles:
Apply these facts to each coefficient integrand.
| Symmetry of the function | Coefficients that vanish | Remaining formula |
|---|---|---|
| Even | All | |
| Odd | All , including |
A cosine series can include a constant. A sine series has zero average.
Triangle and sawtooth series
The triangle wave on is even. Its average is , and integration by parts gives
Only odd cosine indices remain:
For the odd sawtooth on ,
Its series begins . Oddness removes cosines; it does not remove all even-indexed sines. The square wave has that additional cancellation, while this sawtooth does not.
Reveal symmetry by removing the mean
The wave taking values 0 and 1 for equal half-cycles is neither even nor odd, but it equals . It contains a constant and sines, with no positive-index cosines.
Also inspect the chosen interval. Repeating from gives a different sawtooth from repeating it from . Its mean is , and subtracting that mean gives an odd function. Its expansion is
More generally, every function splits into the even part and the odd part . The cosine coefficients describe the even part, and the sine coefficients describe the odd part. For example, separates these two kinds of symmetry.
Key Takeaways
- Even functions have zero sine coefficients; odd functions have zero cosine coefficients and zero mean.
- Doubling a half-interval integral is valid when its integrand is even.
- Odd symmetry does not by itself eliminate even-indexed harmonics.
- Subtracting the mean can reveal odd symmetry.
2.2 Choosing a half-range sine or cosine expansion
A temperature profile on a rod is known only between its ends. You can still expand it in sines or cosines by deciding how to extend it across zero. That decision changes the function outside the rod and determines the endpoint behavior of its series.
Two extensions of the same data
Start with a piecewise smooth function on . For the even extension, reflect without changing signs: . Repeat the result with period . Its half-range cosine series is
For the odd extension, reflect and reverse signs: . This gives the half-range sine series
The factor comes from doubling an even coefficient integrand over the symmetric full interval. The interval containing the original data has length ; the repeated extension has period .
A ramp with two valid series
For on , the odd extension is a sawtooth, so
The even extension is a triangle wave, giving
Both represent the ramp at each interior point. They differ on the negative half and at the endpoint . Every sine term is zero at both ends, so the sine series sums to zero there. The cosine series sums to the continuous endpoint values 0 and . A sine expansion can reproduce nonzero interior temperatures even though every term vanishes at the ends.
For on , the cosine expansion is simply the constant 1. Its sine expansion is
It equals 1 inside, and zero at either endpoint.
Let the boundary conditions decide
| Required endpoint behavior | Useful modes | Extension |
|---|---|---|
| Value zero at both ends | Odd | |
| Slope zero at both ends | , including a constant | Even |
An insulated end has zero heat flow and therefore zero temperature slope. A fixed zero temperature requires zero value instead. These are different conditions.
Smoothness of the extension controls coefficient decay. For the ramp, cosine coefficients have size proportional to while sine coefficients have size proportional to . But for on , the sine expansion contains only its original sine term, while the cosine expansion has infinitely many. Neither choice is always faster; choose the modes that satisfy the problem's boundary conditions.
Key Takeaways
- Even extension gives a half-range cosine series; odd extension gives a half-range sine series.
- Both coefficient formulas use .
- The extended period is .
- Sine series sum to zero at both endpoints.
- Zero-value boundaries call for sine modes; insulated boundaries call for cosine modes.
2.3 Changing, integrating, and differentiating a series
A known series can often be reused without new coefficient integrals. Algebraic changes are straightforward, but calculus operations need attention to the periodic joins.
Scale the values and the horizontal axis
Linearity means that the series of is the same combination of the two series. The wave equal to 0 for half a cycle and 1 for the other half is , so its constant term is and its odd sine coefficients are .
A shift replaces the variable everywhere. From the square-wave series,
For odd , the sine addition formula leaves . This sign alternates, giving . The shift of harmonic is , not the same angle for every harmonic.
To change period to , replace by . In particular, has period 2 and contains . The coefficients stay the same; the horizontal scale changes.
Integration smooths the wave
For a piecewise continuous periodic function, integrate its Fourier series term by term from 0 to . The integrated series converges to the integral of the function. On ,
Integrating an odd-index square-wave term gives
Each coefficient gains another factor . Adding the constant pieces produces , so this recovers the triangle-wave series. The lower limit supplies the constant; dropping it would make the integral wrong at zero.
A nonzero average behaves differently. Integrating the constant creates , which is not periodic. Subtract the average before seeking a periodic antiderivative.
Differentiation needs continuity at the joins
If the periodic extension is continuous and its derivative is piecewise smooth, differentiating the series term by term gives the derivative wherever that derivative is continuous. Differentiating the triangle series yields
the square wave, matching the slopes of away from its corners.
Differentiating a discontinuous periodic extension can fail even where its original formula is smooth. The sawtooth has slope 1 between jumps, but formal differentiation gives . The terms fail to approach zero, so this is not a convergent series for the slope. Check the joins before applying the differentiation rule.
Key Takeaways
- Linearity combines known series coefficient by coefficient.
- A shift in the variable multiplies its phase shift by the harmonic index.
- Rescaling the variable changes the period.
- Term-by-term integration preserves the definite integral and introduces a constant from the lower limit.
- A nonzero average creates a nonperiodic linear term on integration.
- Term-by-term differentiation requires continuity of the periodic extension and suitable smoothness of the derivative.
3Understand convergence and approximation error
A Fourier expansion and the function used to calculate it can differ at isolated points. One-sided limits determine the value at a jump, while the periodic extension determines which limits to use at an endpoint. Partial sums also raise a second question: how accurate is the approximation over a whole period? Compare pointwise and uniform convergence, then use orthogonality to track squared error and the energy carried by harmonics.
3.1 Finding the value to which a Fourier series converges
A Fourier series can be calculated from a discontinuous function. The question is what its partial sums approach at each point, especially at a jump or at the join between periods.
The convergence theorem
The partial sum keeps the constant and all harmonics through index :
A function is piecewise continuous when it has finitely many discontinuities on the interval and finite one-sided limits at each. A jump has different left and right limits. At a removable discontinuity the limits agree, but the assigned value differs or is missing. A function is piecewise smooth when both it and its derivative are piecewise continuous on the smooth pieces.
For a piecewise smooth periodic function, the Fourier series converges at every point to
At a continuous point, this is . At a jump, it is the midpoint of the two limiting heights. At a removable discontinuity, it is the common limit. Changing a function at finitely many points changes no coefficient integral, so the series cannot detect those reassigned values.
For the square wave at zero, the limits are −1 and 1, so the series sums to zero. Defining the wave's value there as 7 would leave this sum unchanged. Each sine term also vanishes directly at zero.
Period endpoints use the next copy
At the right endpoint of a period, take the right-hand limit from the beginning of the next copy. For the sawtooth on , the left limit at is and the right limit is . Its sine series therefore sums to zero there. Using the ramp formula on both sides of would miss the periodic jump.
The triangle wave is continuous at its period joins. Its series equals on the whole displayed interval, including both endpoints.
Use function values to sum numerical series
At , the square wave is 1. Substitution into its Fourier expansion gives
so the alternating odd reciprocal sum is . At zero, the triangle series gives
which yields the odd reciprocal-square sum .
Smoothness and approximation
The square and sawtooth waves have coefficients of size proportional to ; the continuous triangle wave has nonzero coefficients proportional to . Repeated integration by parts explains faster decay when additional derivatives behave well and periodic endpoint terms cancel. These are smoothness-dependent rates, not exact rates for every periodic function.
A continuous, piecewise smooth periodic extension has uniform convergence: its largest error tends to zero over the entire period. For the triangle wave, the largest error through harmonic 5 is about 0.105. For a function with a jump, pointwise convergence still holds under the theorem, but uniform convergence across the jump fails. Continuity alone, without the theorem's other regularity, is not a general guarantee of Fourier convergence.
Key Takeaways
- Piecewise smooth periodic functions have Fourier sums equal to the average of their one-sided limits.
- At period endpoints, use the repeated extension.
- Changing finitely many assigned values leaves all coefficients unchanged.
- Evaluating a known Fourier series at a suitable point can sum a numerical series.
- Smoother periodic extensions generally have faster coefficient decay.
- Continuous piecewise smooth periodic extensions converge uniformly.
3.2 Gibbs ripples and total squared error
A partial sum can look accurate over most of a period yet show a stubborn ripple beside a jump. Pointwise error near the jump and total error over the period measure different things.
What more harmonics change
The Gibbs phenomenon is the limiting overshoot and undershoot near a jump as many harmonics are retained. The tallest excess approaches about 8.95% of the jump size. More harmonics move the ripples closer to the jump and narrow the affected region; they do not drive that limiting height to zero. A very short partial sum need not overshoot: the sawtooth's first sum remains between and .
For the square wave's jump from −1 to 1, the jump size is 2. Its limiting peak is about . The excess 0.179 is 8.95% of the jump, but 17.9% of the upper level. Confusing those denominators gives a factor-of-two error.
When is odd, the square-wave sum through harmonic has its first peak at . The peak heights are about 1.200 for , 1.182 for , and 1.180 for . For each fixed positive point near zero, that moving peak eventually passes it, and the sum there tends to 1. At zero itself the sum remains zero. Thus Gibbs behavior agrees with pointwise convergence while preventing uniform convergence across the jump.
A continuous triangle wave has no persistent jump-size Gibbs excess. In signal reconstruction, cutting off high frequencies sharply can create ringing beside an edge. Tapering the high-frequency terms can reduce it while spreading the edge over a wider region.
Measure the error over a period
Here the integrated squared error is written
Dividing by gives the average squared error. Orthogonality eliminates cross terms and gives
Every added nonzero harmonic removes its own squared contribution. The Fourier partial sum minimizes this error among all trigonometric sums using the same frequencies. It does not minimize the largest error at every individual point.
For the square wave, the total squared integral is . Keeping the first harmonic removes . Thus , and the first harmonic accounts for of the total. Including index 3 raises the fraction to about 90.1%; including odd indices through 9 gives about 96.0%.
Parseval's identity
As the squared error tends to zero,
For the sawtooth, the left side is and , so . The same identity splits a signal's squared size into contributions from separate frequencies, even when local ripples remain near its jumps.
Key Takeaways
- Gibbs excess approaches about 8.95% of the jump size.
- Increasing the cutoff narrows the ripples without eliminating their limiting height.
- Pointwise convergence can coexist with persistent error at moving peak locations.
- Orthogonality expresses integrated squared error as total squared size minus retained harmonic contributions.
- Fourier partial sums minimize integrated squared error for their frequency cutoff.
- Parseval equates total squared size with the sum of squared coefficient contributions.
4Solve equations driven by periodic forces
A periodic force can excite motion at several frequencies at once. Linearity lets you calculate each response separately, but a spring–mass system changes the strength of each harmonic. Without damping, a present harmonic can produce unbounded resonant growth. With damping, each harmonic has a finite gain and phase lag. These calculations explain why the strongest output frequency can differ from the strongest frequency in the input.
4.1 Responding to an undamped periodic force
A linear spring–mass equation responds to each harmonic separately. Once the force has a Fourier expansion, sinusoidal particular solutions turn a piecewise forcing problem into a sequence of familiar calculations.
Solve one harmonic first
For with positive mass and spring constant, the natural angular frequency is . If and , try . Differentiating twice gives
so . A cosine input has the same multiplier. A constant force gives the static displacement .
For forcing period , set . Superposition then gives
provided every harmonic present has a nonzero denominator. A zero coefficient at a matching frequency means there is no input term to solve there; handle any free oscillation separately.
The constant term has its own physical meaning: the mean force shifts the equilibrium position. Omitting it would leave the average displacement wrong even if every oscillating term were correct.
A square-wave input selects a strong third harmonic
Consider . Here and . Only odd sine harmonics occur, so
For indices 1, 3, 5, and 7, the corresponding terms are approximately
The input's third harmonic is smaller than its first, but the output's third harmonic is larger. Its divisor is , while the first harmonic's divisor is 9. The natural frequency lies close to 3.
A negative divisor reverses the sign of that harmonic, equivalent to a phase change of . The system therefore changes the relative sizes and phases of frequencies in the force. This frequency-dependent action is filtering.
Add the free motion when initial conditions require it
The general solution is
Without damping, free motion persists. If is not any integer multiple of the forcing's fundamental frequency, the nonzero free part does not have period . In that case is the unique solution with that period. A sum of forced and free motion can still repeat over a longer period when their frequencies are commensurate.
If a force instead has period 2, its harmonics have angular frequencies . Keeping the divisor in that setting would solve the wrong oscillator problem; the correct divisor is . Obtain frequencies from the period before substituting coefficients.
Key Takeaways
- Superposition adds the responses to separate forcing harmonics.
- An undamped nonresonant harmonic is multiplied by .
- The mean force produces the static term .
- Initial conditions can add persistent free motion.
- Forcing period gives .
4.2 Damped gain, phase lag, and steady motion
With damping, free motion decays. The long-term motion is a steady periodic response with the same forcing period, but each harmonic is multiplied by its own gain and shifted by its own phase lag.
Gain and lag for one frequency
For with , the steady response is , where
Choose using
These signs locate the correct quadrant. Using only an inverse tangent of the ratio can give the wrong lag above the natural frequency. A sine input produces . Multiplying the input amplitude multiplies the output amplitude by the same amount.
The complex method gives the same result compactly. For , the response to is . Its real and imaginary parts give the cosine and sine responses; .
Assemble the periodic solution
For the Fourier forcing coefficients,
The same and apply to the sine and cosine at one frequency. Different indices generally need different gains and lags. The remaining solution is a transient, a homogeneous solution that decays to zero. Thus initial conditions change the early motion, while every solution approaches .
Compare actual output amplitudes
For , the natural frequency is 3. The first harmonic has gain about 0.125 and output amplitude about 0.159, with lag about 0.012 rad. At index 3 the spring and inertial terms cancel in the gain denominator, leaving . The gain is about 3.33 and the output amplitude is about 1.41, with lag . At index 5 the gain is about 0.0625, the amplitude about 0.016, and the lag about 3.11 rad.
The leading behavior is therefore approximately . Light damping has strongly emphasized the third harmonic.
To decide which harmonic dominates, compare
The largest gain alone is insufficient. For the same oscillator driven by , the output amplitudes are about 12.5 and 3.33. The much stronger first input wins despite its smaller gain.
Adding the output amplitudes gives an upper bound on the size of their sum, not usually its actual peak. Different harmonics and lags need not attain their maxima at the same time.
Key Takeaways
- Damping makes the transient decay, leaving one steady periodic response.
- Gain and phase lag depend on frequency.
- Use sine and cosine signs to choose the phase-lag quadrant.
- Output harmonic amplitude is gain times input harmonic amplitude.
- Adding harmonic amplitudes gives a bound, not generally the exact peak.
4.3 Checking every present harmonic for resonance
A periodic force contains more information than its fundamental frequency. In an undamped system, any harmonic that is actually present can resonate with the natural motion.
An exact match changes the form of the solution
Pure resonance requires both and a nonzero forcing coefficient at that frequency. The ordinary harmonic divisor then vanishes. A bounded periodic particular solution cannot balance this input.
For the normalized equation , use
For input , use
Differentiating twice confirms the formulas: the terms proportional to cancel against , leaving the desired sinusoid. If the original equation has mass , divide it by before identifying or .
The factor makes the envelope grow linearly. The solution oscillates, but it is not periodic. Adding a bounded free oscillation cannot remove the growing envelope.
Third-harmonic resonance
For , the force's fundamental frequency is 1 and the natural frequency is 3. The square wave contains , so its third harmonic gives
The coefficient is about −0.0707. Every other present odd harmonic can still be solved using its nonzero divisor . The full solution contains those periodic terms plus the growing term, so no solution is periodic.
A missing harmonic cannot drive resonance
For , the natural frequency is 2. Although 2 is an integer multiple of the fundamental, the square wave has no second harmonic. There is no resonant input. Its periodic particular solution has odd-index coefficients , beginning approximately . Free motion at frequency 2 may also be added here, and it shares period .
Light damping bounds the response
With , the gain denominator includes , so the response stays bounded. At ,
Small damping can still produce a large steady oscillation. With and , this gain is about 3.33, compared with the static gain . For a general set of harmonics, compare their actual gains and input amplitudes. The peak damped gain need not occur exactly at , and output dominance depends on both factors.
Key Takeaways
- Pure resonance requires zero damping, an exact frequency match, and a nonzero input at that frequency.
- A resonant sine produces a growing cosine term; a resonant cosine produces a growing sine term.
- Normalize by the mass before applying the growing-response formulas.
- A periodic force can resonate through a higher harmonic.
- A matching but absent harmonic causes no resonance.
- Positive damping prevents unbounded resonant growth.
5Describe heat flow along a rod
Heat flow connects Fourier coefficients to functions of both position and time. Boundary conditions choose the spatial modes, while the initial temperature determines how much of each mode is present. Separation of variables turns the heat equation into two ordinary differential equations. Follow how the modes decay, then adapt the calculation for ends held at nonzero temperatures or insulated against heat loss.
5.1 Separating heat flow into spatial modes
Let be the temperature along a thin rod with insulated sides. Its interior temperature follows the heat equation . The constant is thermal diffusivity, measured in square meters per second. The sides prevent heat loss along the surface; the end conditions still determine whether heat can leave through the ends.
Specify the whole problem
For a rod of length with ends held at zero temperature, impose
The boundary conditions describe the ends for positive time. The initial condition gives the temperature profile along the rod at time zero. These play different roles: boundaries select possible spatial shapes, and the initial profile selects their coefficients.
Seek a product solution . Substitution gives . Separating the factors on regions where division is possible yields
One side depends only on time and the other only on position, so both must be constant. The resulting equations are
Writing a minus sign in the separation constant makes the useful spatial equation oscillatory for positive .
Find nonzero spatial solutions
The spatial equation is a boundary value problem. Its parameter must take special values for a nonzero solution to meet both end conditions.
- If , then . Both zero end values force .
- If , write . Then . The two end conditions again force the zero solution.
- If , then . The first condition removes . For , the second needs .
Thus the eigenvalues and eigenfunctions are
Solving the time equation gives , with a multiplicative constant absorbed into the coefficient. Each product is one temperature mode: a sine shape that keeps its form while shrinking.
Fit the initial temperature
Linearity and homogeneous boundaries allow sums of these modes:
At time zero, every exponential is 1. Therefore must be expanded in a half-range sine series:
There is no nonzero constant spatial mode for zero-temperature ends. Inserting one would keep the ends away from zero. The number is the physical rod length here; the odd extension used for its initial profile has period .
Key Takeaways
- The initial condition gives the starting profile; boundary conditions govern the ends.
- Separation produces a spatial boundary value problem and a time-decay equation.
- Zero-temperature ends allow sine modes with .
- Mode decays by .
- The initial profile determines half-range sine coefficients.
5.2 Cooling rates, fixed temperatures, and insulated ends
Once the spatial modes are chosen, attach the appropriate decay factor to each coefficient of the initial profile. The boundary conditions determine both the mode family and the final temperature.
A uniformly hot rod with cold ends
Take a metal rod of length 0.5 m with diffusivity . It starts at 20 °C in the interior, and its ends are held at 0 °C for positive time. The half-range sine coefficients are
Only odd indices survive. Since , the solution is
with time in seconds. At the midpoint, the first term is ; higher odd modes alternate because alternates. The full series gives about 19.1 °C after 60 s, 7.8 °C after 300 s, 2.4 °C after 600 s, and 0.2 °C after 1200 s. From 300 s onward, the first term alone is within 0.01 °C.
Setting that first-term estimate equal to 5 °C gives s. The rate grows as , so the third mode decays nine times as fast as the first. Doubling the rod length divides every decay rate by four.
At time zero, the sine series represents 20 °C in the interior but zero at the endpoints. The initial interior temperature and suddenly imposed end values differ there. Partial sums of that initial profile show Gibbs ripples near the ends; positive time damps the high modes rapidly and smooths the solution.
Fixed nonzero end temperatures
For constant end values , first solve for the steady profile:
It has and the correct endpoints. Then has zero boundary values and initial profile . Expand that difference in sines and finally add back. For ends at 20 °C and 60 °C with m, with position in meters. The solution tends to this line, not to zero.
Insulated ends
Insulation means . Separation gives cosine modes, including the constant mode :
The coefficients are the half-range cosine coefficients of the initial profile. The constant does not decay, so the limiting temperature is the initial average. For , , and , the solution is , tending to . Dropping the constant would incorrectly predict loss of heat from a completely insulated rod.
Key Takeaways
- For zero-temperature ends, expand the initial profile in sines and attach modal decay factors.
- Higher modes decay faster, with rates proportional to .
- Subtract the steady linear profile before solving a fixed-nonzero-end problem.
- Insulated ends require cosine modes, including a nondecaying constant.
- A completely insulated rod approaches its initial average temperature.
- Use matching length and diffusivity units in every decay exponent.
Fourier Series examples
1Build a series from one repeating cycle
13 steps
- 1IntroductionTurn a shape into frequencies
A repeating force can rise, pause, or jump during each cycle. A Fourier series breaks that shape into a mean and sinusoidal components, making the force usable in familiar differential equations.
We will first identify a period, then see why integrals separate the frequencies, and finally calculate a series for a ramp that is zero during half its cycle.
- 2ExplanationOne period holds several harmonic cycles
Write the full period as . The fundamental angular frequency is , while harmonic has frequency .
Over one full period, the fundamental completes one cycle and harmonic completes cycles. A harmonic therefore has its own shorter period while still sharing the period . The word “period” does not always mean the smallest period.
- 3ExampleCheck the join between copies
Repeat from . Each ramp ends near , but the next begins near . The extension jumps downward by at the join.
Repeating over the same interval gives no height jump: both sides meet at . Its slope changes sign, creating a corner. This difference will later help explain the different coefficient decay rates.
- 4ChallengeFind the third harmonic
A signal repeats every 0.12 s. What is its third harmonic’s angular frequency, and how many cycles does it complete in one signal period?
---reveal---
The fundamental is rad/s. The third harmonic is therefore rad/s and completes three cycles in 0.12 s. Its own fundamental period is 0.04 s, one third of the signal period.
- 5AnalogyProjection works like vector components
Perpendicular vector directions let you extract one component without picking up another. For functions, the inner product plays that role.
Distinct sine or cosine harmonics have zero inner product over a period. Multiplying a Fourier series by one cosine and integrating therefore removes every other component. Dividing the surviving projection by gives that cosine’s coefficient.
- 6ExampleWhy the constant is halved
A positive-index cosine satisfies . The constant function instead has squared integral .
Using for all nonnegative indices makes twice the average. That is why the series starts with . For a constant function equal to 3, the formula gives and a constant term of 3.
- 7ChallengeRecover a coefficient from its projection
A period-10 function has . What is ?
---reveal---
The half-period is , so . The given sine already matches harmonic 2 for this period. Dividing by the full period would give 1.5 and use the average-value normalization for a nonconstant harmonic.
- 8ExampleSet up a half-cycle ramp
Take period 2, with on and on . Since , the basis functions have arguments .
The zero half contributes nothing to the integrals. The average is , so . Keep these two numbers distinct before calculating positive-index coefficients.
- 9ExampleWork out the cosine coefficient
For , integrate by parts:
The sine endpoint terms vanish. The cosine at 1 is and the cosine at 0 is 1, leaving . Thus odd cosine coefficients are negative and even ones vanish.
- 10ExampleWork out the sine coefficient
The sine coefficient uses a different boundary term:
Only the first term at 1 remains, so . Unlike the cosine coefficients, these do not vanish at even indices. They alternate between positive odd-index and negative even-index values.
- 11Key InsightRead coefficients as harmonic sizes
The beginning of the ramp’s expansion is
The first harmonic contains both a cosine and a sine. Its amplitude is , not the sum of their signed coefficients. The second harmonic has only a sine contribution because its cosine coefficient is zero.
- 12ChallengeCatch two errors in a proposed series
For the period-2 ramp just calculated, someone writes a constant term of and arguments . What needs to change?
---reveal---
Use constant term because the computed must be halved. Use arguments because the full period is 2, so and the fundamental angular frequency is . Both errors can be found before recomputing any positive-index integral.
- 13RecapCarry the period through the calculation
The period fixes the basis, and orthogonality fixes its normalization. For a piecewise function, split the coefficient integrals at each formula change and simplify the endpoint trigonometric values.
When the resulting series looks wrong, check the average first, then the frequency arguments and symmetry. These checks diagnose several common errors without repeating the full calculation.
2Choose an extension and reuse known series
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionUse the shape before integrating
- 2ExplanationOdd products cancel
- 3ExampleSeparate the mean from an odd wave
- 4ChallengeDoes oddness remove even indices?
- 5ExplanationReflect a ramp in two ways
- 6ExampleCompare the two ramp expansions
- 7ConnectionMatch values or slopes at rod ends
- 8ChallengeChoose modes from insulation
- 9ExampleShift every harmonic angle
- 10ExampleIntegrate the square wave
- 11TipCheck the mean before integrating
- 12ChallengeConnect extension choice and differentiation
- 13RecapThe extension carries useful information
3Explain a moving Gibbs peak
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSeparate local and overall accuracy
- 2ExplanationAverage the two limiting heights
- 3ExampleUse the next copy at an endpoint
- 4ChallengeAn isolated value changes no coefficients
- 5ConnectionTurn a function value into a numerical sum
- 6ExplanationThe excess stays while its location moves
- 7ExampleWatch three cutoffs
- 8ExampleCalculate a total error instead
- 9Key InsightParseval accounts for every frequency
- 10ChallengeCan small total error remove Gibbs peaks?
- 11RecapChoose the error claim you need
4Find which harmonic drives the motion
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionA system changes the input spectrum
- 2ExplanationDerive the harmonic multiplier
- 3ExampleApply it to a square-wave force
- 4ChallengeKeep the mean and the harmonic separate
- 5ConnectionFree motion can remain forever
- 6ExplanationDamping supplies gain and lag
- 7ExampleEvaluate the natural-frequency gain
- 8Key InsightA large input can outweigh a small gain
- 9ChallengeCompare two output contributions
- 10ExplanationA present exact match creates growth
- 11ExampleIsolate the square wave’s third harmonic
- 12ChallengeA match at an absent frequency
- 13ChallengeAdd damping to the resonant case
- 14RecapCheck the spectrum before the response formula
5Cool a rod one mode at a time
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionBoundaries choose shapes; initial data choose amounts
- 2ExplanationSeparate position from time
- 3ExampleEnforce both zero end values
- 4ExplanationAttach a decay factor
- 5ChallengeTest a proposed spatial factor
- 6ExampleFit a uniform initial temperature
- 7ExampleCalculate the slowest rate
- 8ExampleEstimate the midpoint after cooling
- 9ConnectionLift fixed nonzero boundaries
- 10Key InsightInsulation preserves a constant
- 11ChallengePredict the final profile from the ends
- 12RecapLet the end conditions lead
Fourier Series practice questions
Set 1: Periods, projections, and coefficient calculations10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Extensions, calculus operations, and convergence10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Harmonic response, damping, and resonance10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Heat modes and combined applications10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Amplitude spectrum
Angular frequency
Average value
B
Boundary condition
Boundary value problem
C
Coefficient decay
Constant mode
Cosine series
D
Decay rate
E
Eigenfunction
Eigenvalue
Endpoint behavior
Even extension
Even function
F
Fourier coefficient
Fourier series
Free oscillation
Frequency
Frequency filtering
Fundamental period
G
Gain
Gibbs phenomenon
Growing envelope
H
Half-range expansion
Harmonic
Harmonic amplitude
Heat equation
Heat mode
I
Initial condition
Inner product
Insulated end
Integrated squared error
Integration by parts
J
Jump discontinuity
L
Linearity
M
Mean-square error
N
Natural angular frequency
Near-resonant amplification
O
Odd extension
Odd function
One-sided limit
Orthogonality
P
Parseval’s identity
Partial sum
Periodic extension
Periodic function
Periodic particular solution
Phase lag
Phase shift
Piecewise continuous function
Piecewise smooth function
Piecewise-defined function
Pointwise convergence
Pure resonance
R
Removable discontinuity
Resonant harmonic
S
Sawtooth wave
Separation of variables
Sine series
Square wave
Steady periodic response
Steady-state temperature
Superposition
T
Term-by-term differentiation
Term-by-term integration
Thermal diffusivity
Time constant
Time rescaling
Transient
Triangle wave
U
Uniform convergence
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.