f = x on (−π, π)
bₙ = 2(−1)^(n+1)/n
b₁ = 2, b₂ = −1.
The coefficients of a Fourier series are and . They follow from the orthogonality of the sines and cosines.
This page is easier if you are comfortable with:
For on (an odd function, so all ), integration by parts (integration by parts) gives : , , . For (even, so ): and , so , and the constant term is .
For : , , so and . Symmetry saves work: even functions have only cosines, odd functions only sines (symmetry of graphs, properties of the trigonometric graphs). The integrals use sine and cosine integrals.
The coefficients decay like for a function with a jump and like for a continuous function with corners; smoother functions give faster decay. They are the building blocks of the Fourier series, and their squares add up as in Parseval's identity.
The coefficients measure how much of each frequency a function contains.
The signs alternate and the sizes decay like 1/n.
These examples are worked by hand, step by step, so you can compare your own working.
Find for on .
Find , and the constant term for on .
Find and for on .
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
bₙ = 2(−1)^(n+1)/n
b₁ = 2, b₂ = −1.
2/3
0.6667.
aₙ = 4(−1)ⁿ/n²
a₁ = −4, a₂ = 1.
π²/3
3.2899.
aₙ = (1/L)∫f cos(nπx/L)dx and bₙ = (1/L)∫f sin(nπx/L)dx. Odd functions have only sine terms, even functions only cosine terms.
Use bₙ = 2(−1)^(n+1)/n.
Find b₃.
Use aₙ = 4(−1)ⁿ/n².
Find a₀/2 = π²/3 for x².
aₙ ≠ 0 ✗
aₙ = 0 for odd f ✓
Symmetry.
(−1)ⁿ ✗
(−1)^(n+1) ✓
bₙ alternates starting positive.
omitted ✗
include 1/L ✓
Normalisation.
constant a₀ ✗
constant a₀/2 ✓
Half.
Try each one on paper, then open the answer. Use the solver above to see the full working.
-1
-0.5
-0.4444
1
0.4
3.2899
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Solve: …
(1/L)∫f sin(nπx/L)dx.
2(−1)^(n+1)/n.
4(−1)ⁿ/n².
The integrals vanish by symmetry.
Fourier series.
Parseval’s identity.
More in Differential equations and transforms and the formula sheets.