Professional Documents
Culture Documents
Fourier Series
Fourier Series with Period 2 Fourier Series for Even and Odd Functions Fourier Series with Period 2p
P en r o ga p e ge rt y Le o f ar ni ng
Definition of Fourier Series with Period 2 A Fourier series is an infinite series of cosine and sine terms of the following form. gx a0 a1 cos x a2 cos 2x a3 cos 3x . . . an cos nx . . . b1 sin x b2 sin 2x b3 sin 3x . . . bn sin nx . . . The coefficients are a0 an bn 1 2 1 1
f x dx
f x cos nx dx f x sin nx dx
where n 1, 2, 3, . . . . Note that the Fourier series is periodic with period 2 and the average value of f on the interval , is a0.
Note that you could use a Taylor series to approximate a periodic function f. The Taylor series would be a good approximation of f near x c, but not necessarily a good approximation over the entire period. A Fourier series for f will often give a better approximation of the function over the entire period than a Taylor series. EXAMPLE 1 Finding a Fourier Series
a0 an
1 2 1
2x dx
1 x2 2
1 2 2 0 2 2
2 x cos nx dx
2 cos nx nx sin nx n2
Formula 53, u nx
Fourier Series
bn
2 x sin nx dx
2 sin nx nx cos nx n2 2 n2 2 n2
Formula 52, u nx
3 4
4 6 8
Graph of f compared to a curve made using the first several terms of g. Figure 1
P en r o ga p e ge rt y Le o f ar ni ng
y
4 sin n n cos n n2
8 6 4 2
4 4 cos n 0 n cos n . n2 n
3 4
4 sin x 2 sin 2 x
Notice that g has no constant term and no cosine terms. Figure 1 shows a graph of f compared to a curve made using the first several terms of g. The greater the number of terms of g used to make the curve, the better the curve will fit f.
Letting f x 2 f x for the function in Example 1, you can graph f for several periods and compare the graph to a curve made using the first several terms of g. You can see that the Fourier series representation follows f over each period.
y
8 6 4 2
4 6 8
5 2
9 2
Graph of f compared to a curve made using the first several terms of g. Figure 2
Fourier Series
EXAMPLE 2
Solution Begin by noticing that f has a different definition for each interval of x. So, you will need two integrals for each coefficient.
a0 an
1 2 1
x dx
1 2
dx
x cos nx dx
1 x2 2 2
1 x 2
1 2 4 2 4
1cos nx dx
0
1 n2
cos nx nx sin nx
1 sin nx n
3 4
Graph of f compared to a curve made using the first several terms of g. Figure 3
P en r o ga p e ge rt y Le o f ar ni ng
Because sin n 0 for n 1, 2, 3, . . . , an bn 1
x sin nx dx
1 cos n . n2
1sin nx dx
0
1 sin nx nx cos nx n2
1 cos nx n
4 3 2 1
3 4
2 3 4
2 2 2 2 1 2 cos x cos 3x . . . sin x sin 2x sin 3x. 4 9 2 3 Figure 3 shows a graph of f compared to a curve made using the first several terms of g.
Fourier Series
For Fourier series coefficients that have integrals with forms such as sin au sin bu, sin au cos bu, and cos au cos bu, you can use the following formulas. Notice that the formulas are not valid when a2 b2. 1. 2. 3.
sin au sin bu du
1 sina bu sina bu 2 ab ab
1 cosa bu cosa bu 2 ab ab
1 sina bu sina bu 2 ab ab
EXAMPLE 3
P en r o ga p e ge rt y Le o f ar ni ng
Solution
0, sin x,
x < 0 . 0 x <
a0
1 2
0 dx
1 2
sin x dx 0
1 cos x 2
For n 1, a1 is a1 1
0 cos x dx
sin x cos x dx 0
1 sin2 x 2
0.
sin au cos bu du 1
an
1 cosa bu cosa bu . 2 ab ab
0cos nx dx
sin x cos nx dx
1 cos1 nx cos1 nx 2 1n 1n
1 1 1 cos1 n cos1 n 2 1n 1n 1n 1n
For n 1, b1 is b1 1
0sin x dx
sin x sin x dx
sin2 x dx
1 x sin x cos x 2 1 2
sin au sin bu du
1 sina bu sina bu . 2 ab ab
Fourier Series
bn
0sin nx dx
sin x sin nx dx
0
y 2
1 sin1 nx sin1 nx 2 1n 1n
1 sin1 n sin1 n 2 1n 1n
For n 1, 2, 3, . . . , the Fourier series for f is gx 1 1 4 1 4 0cos x cos 2x 0cos 3x cos 4x 2 3 2 15 1 . . . sin x 0sin 2 x 0sin 3x 0sin 4 x . . . 2 1 1 4 4 1 cos 2 x cos 4 x . . . sin x. 2 3 15 2
Graph of f compared to a curve made using the first several terms of g. Figure 4
P en r o ga p e ge rt y Le o f ar ni ng
1 2
Figure 4 shows a graph of f compared to a curve made using the first several terms of g.
In Example 1, the Fourier series you found had no cosine terms. This will occur anytime you find a Fourier series for a function that is symmetric with respect to the origin. If a function is symmetric with respect to the y-axis, the Fourier series for the function will have no sine terms. You can determine which terms to eliminate by noticing if the function is even (symmetric with respect to the y-axis) or odd (symmetric with respect to the origin). Recall that a function is even if f x f x and a function is odd if f x f x.
A Fourier series for an even function has cosine terms and may have a constant term, but the series will not have any sine terms.
A Fourier series for an odd function has sine terms, but the series will not have any cosine terms nor a constant term.
The function in Example 1, f x 2 x, x < , is odd because the graph of f is symmetric with respect to the origin. You also know f is odd because f x f x. So, the Fourier series for f has only sine terms.
Fourier Series
EXAMPLE 4
In Figure 5, you can see that the function f is symmetric with respect to the y-axis, so f is an even function. Also, you know f is an even function because f x f x. This means that the Fourier series for f will have cosine terms and maybe a constant term, but no sine terms. So you do not have to find bn. a0 an 1 2 1
P en r o ga p e ge rt y Le o f ar ni ng
1 cos nx nx sin nx 2 n
x dx
1 2
x dx
x cos nx dx
1 x2 2 2
1 x2 2 2
4 4 2
n sin n 1 cos nn
2
n 1 ncos .
2
Figure 6 shows a graph of f compared to a curve made using the first several terms of g.
y y
Graph of f compared to a curve made using the first several terms of g. Figure 6
Fourier Series
EXAMPLE 5
In Figure 7, you can see that the function f is symmetric with respect to the origin, so f is an odd function. Also, you know f is an odd function because f x f x. This means that the Fourier series for f will have sine terms, but will not have a constant term nor any cosine terms. So you do not have to find a0 or an. bn 1
1 sin nx dx
1 sin nx dx
1 cos nx n
1 cos nx n
P en r o ga p e ge rt y Le o f ar ni ng
1 1 1 cos n cos n 1 n n n 1 ncos For n 1, 2, 3, . . . , the Fourier series for f is gx 4 4 4 sin x 0sin 2x sin 3x 0sin 4x sin 5x . . . 3 5 4 1 1 sin x sin 3x sin 5x . . . . 3 5
Figure 8 shows a graph of f compared to a curve made using the first several terms of g. The function f is often referred to as a square wave function.
y y
Graph of f compared to a curve made using the first several terms of g. Figure 8
Fourier Series
Definition of Fourier Series with Period 2p A Fourier series is an infinite series of cosine and sine terms of the following form. gx a0 a1 cos b1 sin
P en r o ga p e ge rt y Le o f ar ni ng
a0 an bn 1 2p 1 p 1 p
p p
p p
f x dx
f x cos f x sin
nx dx p
nx dx p
EXAMPLE 6
0, 5,
0 x < 4 . 4 x < 8
a0 an
0 dx
1 24
5 dx 0
0 cos
nx 1 dx 4 4
5 x 8
5 2
5 cos
nx dx 4
5 nx sin n 4
5 sin 2n sin n n
0 sin
nx 1 dx 4 4
5 sin
nx dx 4
5 nx cos n 4
8 4
5 cos 2n cos n n
Fourier Series
y 6
gx
x 2 2 4 6 8
5 10 x 1 3x . . . sin sin . 2 4 3 4
Figure 9 shows a graph of f compared to a curve made using the first several terms of g.
In Exercises 14, (a) use a0 , an , and bn to write a Fourier series for the function where n 1, 2, and 3. (b) Use a graphing utility to graph f x and the Fourier series in the same window. (c) Show by graphing that the Fourier series approximation improves as n increases. 1. f x x, x < a0 0 an 0 2. f x x 2, x < a0
2 cos n bn n
y 6 3
3 6
P en r o ga p e ge rt y Le o f ar ni ng
3. f x a0 an bn
Graph of f compared to a curve made using the first several terms of g. Figure 9
0, 1,
2 x < 0 0 x < 2
4. f x a0 an bn
, x 1,
1 x < 0 0 x < 1
1 2
1 4
sin n n
1 cos n n 2 2
2 3 4 cos n an n2
1 cos n n
y
1 2 cos n n
bn 0
y
4 3 2 1
2 1
9 6 3
1 2 3 4 5 6
2 3 4
1 2
10
Fourier Series
In Exercises 514, write a Fourier series for the function. Let n 1, 2, and 3. Use a graphing utility to verify your answer. 5. f x x , x <
y 9 6 3 9 6 3 x
In Exercises 1518, decide whether the function is odd, even, or neither. Explain your answer analytically and graphically. 15. f x x 3, 1 x < 1
y 16 1 x 1 1 4 2 12 8 4 x 4 2 4
6. f x x, x <
y
16. f x x 4, 2 x < 2
y
8. f x
9. f x 10. f x 11. f x
2, 2,
0, ,
x , x <
12. f x x 1,
13. f x 1,
14. f x cos x, 0,
1,
1, 0,
P en r o ga p e ge rt y Le o f ar ni ng
6 3 y y 4 3 2 1 1 3 6
0, x < 0 7. f x x , 0 x < 2
17. f x
0, x,
3 x < 0 0 x < 3
18. f x
, x x,
1 x < 0 0 x < 1
2 1
6 3
3 6
In Exercises 1922, the function f x is either even or odd. Write a Fourier series for the function. Let n 1, 2, and 3. Use a graphing utility to verify your answer. 19. f x 3, 3, x < 0 0 x <
x < 0 0 x <
x < 0 0 x <
x <
21. f x cos x,
x <
0,
x <
cos x,
x <
x < 2 2 x < 2
x <
23. Describe how a Fourier series representation of a function is different from a Taylor series representation of a function.
x < 2 2
x < 2
24. Describe the differences between Fourier series for functions with periods of 2 and Fourier series for functions with periods other than 2.
Fourier Series
11
In Exercises 25 32, function f is defined for one period. (a) Identify the period and (b) write a Fourier series for the function. Let n 1, 2, and 3. Use a graphing utility to verify your answer. x 25. f x 1, 4 x < 4 4
y 8 6 4 2 2 4 6 8 x 2 4 6 8 10 12
In Exercises 33 36, the graph of a function f is shown. Match each Fourier series to the graph that it represents without graphing. Explain your reasoning. 33. gx 1 34. gx 35. gx 36. gx (a)
6 3 y
x 26. f x , 5 x < 5 2
y 10 5 5 5 10
27. f x
y 6 3 3 3 6
P en r o ga p e ge rt y Le o f ar ni ng
3 6
3 6
(c)
(d)
10
8 6 4 2
6 3
2, 0,
3 x < 0 0 x < 3
28. f x
0, x 2,
2 x < 0 0 x < 2
2 4 6 8
10
3 6
4 2
True or False? In Exercises 37 40, decide whether the statement is true or false. If it is false, explain why or give an example that shows it is false. 37. The Fourier series for an odd function will consist only of sine terms and possibly a constant term. 38. The graph of an even function is always symmetric to the y-axis. 39. If g represents a Fourier series for a periodic function f, then g also represents the Fourier series for f x 2. 40. If g is a Fourier series for a function f where a0 1 2 , then it is possible that f x
2 4
0,
1 2,
x < 0 . 0 x <
41. Electrical Circuits A half-wave rectifier is an electrical device that converts AC voltage to DC voltage. A model for the output voltage V at time t is Vt sin t, 12 0, 0 t < . t < 2
(a) Use a graphing utility to graph at least 3 periods of Vt. (b) Write a Fourier series for Vt. (c) Graph Vt and the Fourier series in the same window.
12
Fourier Series
42. Electrical Circuits A full-wave rectifier is an electrical device that converts AC voltage into a pulsating DC voltage using both half cycles of the AC voltage. A model for the output voltage V at time t is Vt sin t, 9 9 sin t, 0 t < . t < 2
45. Gibbs Phenomenon Gibbs phenomenon centers on the behavior, primarily the overshoots, of a Fourier series approximation of a function near points of discontinuity. Consider the function f x 1, 1, x < 0 0 x <
(a) Use a graphing utility to graph at least 3 periods of Vt. (b) Write a Fourier series for Vt. (c) Graph Vt and the Fourier series in the same window. 43. Sound The loudness A, in decibels, of a pulsating alarm at time t can be modeled by the function At
(a) Use a graphing utility to graph at least 3 periods of At. (b) Write a Fourier series for At. (c) Graph At and the Fourier series in the same window.
44. Sound The loudness A, in decibels, of an alarm at time t can be modeled by the function
At 75 t, 0,
(a) Use a graphing utility to graph at least 3 periods of At. (b) Write a Fourier series for At. (c) Graph At and the Fourier series in the same window.
75t,
P en r o ga p e ge rt y Le o f ar ni ng
overshoot
3 4
100, 0,
0 t < . t < 2
3 4
0 t <
t < . 2 t < 2
(a) Use a graphing utility to graph f and the first three terms of g in the same window.
(c) What happens to the height and width of the overshoots as the number of terms of g increase?