Fourier Cosine Series
Extend a function evenly instead of oddly and you get a series of cosines. It has a constant term too, and that constant is just the average value of .
What the symbols mean
- Average value
The constant term is just the mean of f on [0, L].
Explanation
A Fourier cosine series is simply the same idea as the sine series, but built from cosine waves plus one flat level to start from. (Same Fourier, just the other family of waves.) It's the natural choice when the ends are insulated instead of held at zero, and it's the math behind JPEG image compression. The formula looks busy, but it's just two simple parts: (the average height of , a flat line) and the sum of (waves that bend that flat line into the right shape, with saying how much of each wave to use). The coefficient formulas are the same "multiply and integrate" trick from the sine series. It's the last lesson again with one small twist, so bear with it.
Sine or cosine? On you can choose. Physical boundary conditions decide: ends held at zero call for sines; insulated ends (zero derivative) call for cosines. Those are exactly the two sets of eigenfunctions from the eigenvalue lesson, and the cosine set included the constant, which is where comes from.
Every cosine is even, so a cosine series builds the even extension of : on it gives , a mirror image instead of a flipped one.
A common mistake. It's tempting to compute with in front, like every other coefficient, because the formulas look so alike. It isn't the same: the get because , but the constant term has . So , which is just the average of .
The cosine series of on : , , so the odd terms are . These shrink like , faster than the sine series of the same function, because the even extension of has no jumps. Think about why: the odd extension of jumps from to , but the even extension is , which only has corners. Corners are much easier to build out of smooth waves than jumps are. The graph further down shows how quickly it closes in.
See it
Worked examples
Find and for on .
- 1
The constant term is the average: .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find for on .
Find for on .
Find for on .
Find for on .
What is the cosine series of ?
A m rod's temperature is °C. Its cosine series on starts . Find (the average temperature) and , in that order.
The hardest one here. Get it, and you've got this lesson.
Find a formula for the cosine coefficients () of on .
Where it's used
JPEG compression uses a discrete cosine transform: images are stored as cosine coefficients, and the small high-frequency ones are thrown away.