3 Trigonometric Fourier Series

Similar documents
f x a 0 n 1 a 0 a 1 cos x a 2 cos 2x a 3 cos 3x b 1 sin x b 2 sin 2x b 3 sin 3x a n cos nx b n sin nx n 1 f x dx y

G. GRAPHING FUNCTIONS

POLYNOMIAL FUNCTIONS

Chapter 4. Polynomial and Rational Functions. 4.1 Polynomial Functions and Their Graphs

Representation of functions as power series

Unified Lecture # 4 Vectors

About the Gamma Function

Second Order Linear Nonhomogeneous Differential Equations; Method of Undetermined Coefficients. y + p(t) y + q(t) y = g(t), g(t) 0.

An Introduction to Partial Differential Equations

SIGNAL PROCESSING & SIMULATION NEWSLETTER

1 if 1 x 0 1 if 0 x 1

Core Maths C2. Revision Notes

Stanford Math Circle: Sunday, May 9, 2010 Square-Triangular Numbers, Pell s Equation, and Continued Fractions

Correlation and Convolution Class Notes for CMSC 426, Fall 2005 David Jacobs

Trigonometric functions and sound

Integrating algebraic fractions

y cos 3 x dx y cos 2 x cos x dx y 1 sin 2 x cos x dx

Solutions to Homework 10

Section 6-3 Double-Angle and Half-Angle Identities

D.3. Angles and Degree Measure. Review of Trigonometric Functions

Algebra. Exponents. Absolute Value. Simplify each of the following as much as possible. 2x y x + y y. xxx 3. x x x xx x. 1. Evaluate 5 and 123

1 Error in Euler s Method

Lecture L3 - Vectors, Matrices and Coordinate Transformations

Chapter 17. Orthogonal Matrices and Symmetries of Space

Mathematics 31 Pre-calculus and Limits

Core Maths C1. Revision Notes

Review of Fundamental Mathematics

PYTHAGOREAN TRIPLES KEITH CONRAD

Linear Algebra Notes for Marsden and Tromba Vector Calculus

Student Performance Q&A:

Second Order Linear Partial Differential Equations. Part I

Analog and Digital Signals, Time and Frequency Representation of Signals

Georgia Department of Education Kathy Cox, State Superintendent of Schools 7/19/2005 All Rights Reserved 1

7.7 Solving Rational Equations

Solutions of Linear Equations in One Variable

Parabolic Equations. Chapter 5. Contents Well-Posed Initial-Boundary Value Problem Time Irreversibility of the Heat Equation

South Carolina College- and Career-Ready (SCCCR) Pre-Calculus

Inner Product Spaces

THE SINE PRODUCT FORMULA AND THE GAMMA FUNCTION

The Method of Partial Fractions Math 121 Calculus II Spring 2015

Session 7 Fractions and Decimals

1.7 Graphs of Functions

Scientific Programming

ANALYTICAL METHODS FOR ENGINEERS

LIMITS AND CONTINUITY

Review A: Vector Analysis

Lies My Calculator and Computer Told Me

Polynomial and Rational Functions

An Introduction to Partial Differential Equations in the Undergraduate Curriculum

NEW YORK STATE TEACHER CERTIFICATION EXAMINATIONS

Core Maths C3. Revision Notes

The two dimensional heat equation

x 2 + y 2 = 1 y 1 = x 2 + 2x y = x 2 + 2x + 1

The Heat Equation. Lectures INF2320 p. 1/88

Mark Howell Gonzaga High School, Washington, D.C.

Random variables, probability distributions, binomial random variable

Mechanics 1: Conservation of Energy and Momentum

Functions: Piecewise, Even and Odd.

Homework 2 Solutions

Implicit Differentiation

Polynomial and Synthetic Division. Long Division of Polynomials. Example 1. 6x 2 7x 2 x 2) 19x 2 16x 4 6x3 12x 2 7x 2 16x 7x 2 14x. 2x 4.

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

14.1. Basic Concepts of Integration. Introduction. Prerequisites. Learning Outcomes. Learning Style

4.5 Linear Dependence and Linear Independence

MATH2210 Notebook 1 Fall Semester 2016/ MATH2210 Notebook Solving Systems of Linear Equations... 3

Trigonometric Functions and Equations

EDEXCEL NATIONAL CERTIFICATE/DIPLOMA UNIT 5 - ELECTRICAL AND ELECTRONIC PRINCIPLES NQF LEVEL 3 OUTCOME 4 - ALTERNATING CURRENT

Geometry Notes RIGHT TRIANGLE TRIGONOMETRY

Introduction to Complex Fourier Series

2008 AP Calculus AB Multiple Choice Exam

MEMORANDUM. All students taking the CLC Math Placement Exam PLACEMENT INTO CALCULUS AND ANALYTIC GEOMETRY I, MTH 145:

Computer Networks and Internets, 5e Chapter 6 Information Sources and Signals. Introduction

1 TRIGONOMETRY. 1.0 Introduction. 1.1 Sum and product formulae. Objectives

Continued Fractions and the Euclidean Algorithm


Estimated Pre Calculus Pacing Timeline

Unit 6 Trigonometric Identities, Equations, and Applications

Let s first see how precession works in quantitative detail. The system is illustrated below: ...

AP Calculus BC 2008 Scoring Guidelines

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks

2.2 Derivative as a Function

5 Homogeneous systems

UNIT 1: ANALYTICAL METHODS FOR ENGINEERS

LS.6 Solution Matrices

PURSUITS IN MATHEMATICS often produce elementary functions as solutions that need to be

4.5 Chebyshev Polynomials

BANACH AND HILBERT SPACE REVIEW

SOLVING TRIGONOMETRIC EQUATIONS

Nonlinear Systems of Ordinary Differential Equations

CITY UNIVERSITY LONDON. BEng Degree in Computer Systems Engineering Part II BSc Degree in Computer Systems Engineering Part III PART 2 EXAMINATION

Frequency Response of FIR Filters

FFT Algorithms. Chapter 6. Contents 6.1

Systems of Equations Involving Circles and Lines

x x y y Then, my slope is =. Notice, if we use the slope formula, we ll get the same thing: m =

Chapter 4 One Dimensional Kinematics

Chapter 9 Partial Differential Equations

Week 13 Trigonometric Form of Complex Numbers

Transcription:

3 Trigonometric Fourier Series Ordinary language is totally unsuited for epressing what physics really asserts, since the words of everyday life are not sufficiently abstract. Only mathematics and mathematical logic can say as little as the physicist means to say. Bertrand Russell (87-97) 3. Introduction to Fourier Series We will now turn to the study of trigonometric series. You have seen that functions have series representations as epansions in powers of, or a, in the form of Maclaurin and Taylor series. Recall that the Taylor series epansion is given by f () = c n ( a) n, n= where the epansion coefficients are determined as c n = f (n) (a). n! From the study of the heat equation and wave equation, we have found that there are infinite series epansions over other functions, such as sine functions. We now turn to such epansions and in the net chapter we will find out that epansions over special sets of functions are not uncommon in physics. But, first we turn to Fourier trigonometric series. We will begin with the study of the Fourier trigonometric series epansion f () = a + a n cos nπ + b n sin nπ. We will find epressions useful for determining the Fourier coefficients {a n, b n } given a function f () defined on [, ]. We will also see if the resulting infinite series reproduces f (). However, we first begin with some basic ideas involving simple sums of sinusoidal functions. There is a natural appearance of such sums over sinusoidal functions in music. A pure note can be represented as y(t) = A sin(π f t),

7 partial differential equations y(t) 3 y(t) (a) y(t) = sin(4π f t) 3 (b) y(t) = sin(π f t) Figure 3.: Plots of y(t) = A sin(π f t) on [, 5] for f = Hz and f = 5 Hz. t t where A is the amplitude, f is the frequency in hertz (Hz), and t is time in seconds. The amplitude is related to the volume of the sound. The larger the amplitude, the louder the sound. In Figure 3. we show plots of two such tones with f = Hz in the top plot and f = 5 Hz in the bottom one. In these plots you should notice the difference due to the amplitudes and the frequencies. You can easily reproduce these plots and others in your favorite plotting utility. As an aside, you should be cautious when plotting functions, or sampling data. The plots you get might not be what you epect, even for a simple sine function. In Figure 3. we show four plots of the function y(t) = sin(4πt). In the top left you see a proper rendering of this function. However, if you use a different number of points to plot this function, the results may be surprising. In this eample we show what happens if you use N =,, points instead of the points used in the first plot. Such disparities are not only possible when plotting functions, but are also present when collecting data. Typically, when you sample a set of data, you only gather a finite amount of information at a fied rate. This could happen when getting data on ocean wave heights, digitizing music and other audio to put on your computer, or any other process when you attempt to analyze a continuous signal. Figure 3.: Problems can occur while plotting. Here we plot the function y(t) = sin 4πt using N =,,, points. y(t)= sin(4 π t) for N= points 4 y(t)= sin(4 π t) for N= points 4 y(t) y(t) 4 3 4 5 Time y(t)= sin(4 π t) for N= points 4 4 3 4 5 Time y(t)= sin(4 π t) for N= points 4 y(t) y(t) 4 3 4 5 Time 4 3 4 5 Time Net, we consider what happens when we add several pure tones. After all, most of the sounds that we hear are in fact a combination of pure tones with different amplitudes and frequencies. In Figure 3.3 we see what happens when we add several sinusoids. Note that as one adds more and more tones with different characteristics, the resulting signal gets more complicated. However, we still have a function of time. In this chapter we will ask,

trigonometric fourier series 73 y(t) Given a function f (t), can we find a set of sinusoidal functions whose sum converges to f (t)? ooking at the superpositions in Figure 3.3, we see that the sums yield functions that appear to be periodic. This is not to be unepected. We recall that a periodic function is one in which the function values repeat over the domain of the function. The length of the smallest part of the domain which repeats is called the period. We can define this more precisely: A function is said to be periodic with period T if f (t + T) = f (t) for all t and the smallest such positive number T is called the period. For eample, we consider the functions used in Figure 3.3. We began with y(t) = sin(4πt). Recall from your first studies of trigonometric functions that one can determine the period by dividing the coefficient of t into π to get the period. In this case we have T = π 4π =. ooking at the top plot in Figure 3. we can verify this result. (You can count the full number of cycles in the graph and divide this into the total time to get a more accurate value of the period.) In general, if y(t) = A sin(π f t), the period is found as T = π π f = f. Of course, this result makes sense, as the unit of frequency, the hertz, is also defined as s, or cycles per second. Returning to Figure 3.3, the functions y(t) = sin(4πt), y(t) = sin(πt), and y(t) =.5 sin(6πt) have periods of.5s,.s, and.5s, respectively. Each superposition in Figure 3.3 retains a period that is the least common multiple of the periods of the signals added. For both plots, this is.s = (.5)s = 5(.)s = 8(.5)s. Our goal will be to start with a function and then determine the amplitudes of the simple sinusoids needed to sum to that function. We will see that this might involve an infinite number of such terms. Thus, we will be studying an infinite series of sinusoidal functions. Secondly, we will find that using just sine functions will not be enough either. This is because we can add sinusoidal functions that do not necessarily peak at the same time. We will consider two signals that originate at different times. This is similar to when your music teacher would make sections of the class sing a song like Row, Row, Row your Boat starting at slightly different times. We can easily add shifted sine functions. In Figure 3.4 we show the functions y(t) = sin(4πt) and y(t) = sin(4πt + 7π/8) and their sum. Note that this shifted sine function can be written as y(t) = sin(4π(t + 7/3)). Thus, this corresponds to a time shift of 7/3. So, we should account for shifted sine functions in the general sum. Of course, we would then need to determine the unknown time shift as well as the amplitudes of the sinusoidal functions that make up the signal, f (t). 3 (a) Sum of signals with frequencies y(t) t f = Hz and f = 5 Hz. 3 (b) Sum of signals with frequencies t f = Hz, f = 5 Hz, and f = 8 Hz. Figure 3.3: Superposition of several sinusoids. y(t) 3 y(t) (a) Plot of each function. 3 (b) Plot of the sum of the functions. Figure 3.4: Plot of the functions y(t) = sin(4πt) and y(t) = sin(4πt + 7π/8) and their sum. t t

74 partial differential equations We should note that the form in the lower plot of Figure 3.4 looks like a simple sinusoidal function for a reason. et Then, y (t) = sin(4πt), y (t) = sin(4πt + 7π/8). y + y = sin(4πt + 7π/8) + sin(4πt) = [sin(4πt + 7π/8) + sin(4πt)] = 4 cos 7π ( 6 sin 4πt + 7π ). 6 Recall the identities (A.7)-(A.8) sin( + y) = sin cos y + sin y cos, cos( + y) = cos cos y sin sin y. While this is one approach that some researchers use to analyze signals, there is a more common approach. This results from another reworking of the shifted function. Consider the general shifted function y(t) = A sin(π f t + φ). (3.) Note that π f t + φ is called the phase of the sine function and φ is called the phase shift. We can use the trigonometric identity (A.7) for the sine of the sum of two angles to obtain y(t) = A sin(π f t + φ) = A sin(φ) cos(π f t) + A cos(φ) sin(π f t). (3.) Defining a = A sin(φ) and b = A cos(φ), we can rewrite this as y(t) = a cos(π f t) + b sin(π f t). Thus, we see that the signal in Equation (3.) is a sum of sine and cosine functions with the same frequency and different amplitudes. If we can find a and b, then we can easily determine A and φ: A = a + b, tan φ = b a. We are now in a position to state our goal. Goal - Fourier Analysis Given a signal f (t), we would like to determine its frequency content by finding out what combinations of sines and cosines of varying frequencies and amplitudes will sum to the given function. This is called Fourier Analysis. 3. Fourier Trigonometric Series As we have seen in the last section, we are interested in finding representations of functions in terms of sines and cosines. Given a function f () we seek a representation in the form f () a + [a n cos n + b n sin n]. (3.3) Notice that we have opted to drop the references to the time-frequency form of the phase. This will lead to a simpler discussion for now and one can always make the transformation n = π f n t when applying these ideas to applications. The series representation in Equation (3.3) is called a Fourier trigonometric series. We will simply refer to this as a Fourier series for now. The set

trigonometric fourier series 75 of constants a, a n, b n, n =,,... are called the Fourier coefficients. The constant term is chosen in this form to make later computations simpler, though some other authors choose to write the constant term as a. Our goal is to find the Fourier series representation given f (). Having found the Fourier series representation, we will be interested in determining when the Fourier series converges and to what function it converges. From our discussion in the last section, we see that The Fourier series is periodic. The periods of cos n and sin n are π n. Thus, the largest period, T = π, comes from the n = terms and the Fourier series has period π. This means that the series should be able to represent functions that are periodic of period π. While this appears restrictive, we could also consider functions that are defined over one period. In Figure 3.5 we show a function defined on [, π]. In the same figure, we show its periodic etension. These are just copies of the original function shifted by the period and glued together. The etension can now be represented by a Fourier series and restricting the Fourier series to [, π] will give a representation of the original function. Therefore, we will first consider Fourier series representations of functions defined on this interval. Note that we could just as easily considered functions defined on [ π, π] or any interval of length π. We will consider more general intervals later in the chapter. Fourier Coefficients Theorem 3.. The Fourier series representation of f () defined on [, π], when it eists, is given by (3.3) with Fourier coefficients.5.5 y(t) (a) Plot of function f (t)..5.5 y(t) t (b) Periodic etension of f (t). t Figure 3.5: Plot of the function f (t) defined on [, π] and its periodic etension. a n = π b n = π π π f () cos n d, n =,,,..., f () sin n d, n =,,.... (3.4) These epressions for the Fourier coefficients are obtained by considering special integrations of the Fourier series. We will now derive the a n integrals in (3.4). We begin with the computation of a. Integrating the Fourier series term by term in Equation (3.3), we have π f () d = π a π d + [a n cos n + b n sin n] d. (3.5) We will assume that we can integrate the infinite sum term by term. Then Evaluating the integral of an infinite series by integrating term by term depends we will need to compute on the convergence properties of the series. π π π a d = a cos n d = sin n d = (π) = πa, [ ] sin n π =, n [ ] cos n π =. (3.6) n

76 partial differential equations Note that a is the average of f () over the interval [, π]. Recall from the first semester of calculus, that the average of a function defined on [a, b] is given by fave = b f () d. a For f () defined on [, π], we have fave = π f () d = a π. From these results we see that only one term in the integrated sum does not vanish leaving π f () d = πa. This confirms the value for a. Net, we will find the epression for a n. We multiply the Fourier series (3.3) by cos m for some positive integer m. This is like multiplying by cos, cos 5, etc. We are multiplying by all possible cos m functions for different integers m all at the same time. We will see that this will allow us to solve for the a n s. We find the integrated sum of the series times cos m is given by π f () cos m d = + π a π cos m d [a n cos n + b n sin n] cos m d. (3.7) Integrating term by term, the right side becomes + [ π a n π π f () cos m d = a cos m d π ] cos n cos m d + b n sin n cos m d. (3.8) We have already established that π cos m d =, which implies that the first term vanishes. Net we need to compute integrals of products of sines and cosines. This requires that we make use of some of the trigonometric identities listed in Chapter. For quick reference, we list these here. Useful Trigonometric Identities sin( ± y) = sin cos y ± sin y cos (3.9) cos( ± y) = cos cos y sin sin y (3.) sin = ( cos ) (3.) cos = ( + cos ) (3.) sin sin y = (cos( y) cos( + y)) (3.3) cos cos y = (cos( + y) + cos( y)) (3.4) sin cos y = (sin( + y) + sin( y)) (3.5) We first want to evaluate π cos n cos m d. We do this by using the

trigonometric fourier series 77 product identity (3.4). We have π π cos n cos m d = [cos(m + n) + cos(m n)] d = [ ] sin(m + n) sin(m n) π + m + n m n =. (3.6) There is one caveat when doing such integrals. What if one of the denominators m ± n vanishes? For this problem m + n =, since both m and n are positive integers. However, it is possible for m = n. This means that the vanishing of the integral can only happen when m = n. So, what can we do about the m = n case? One way is to start from scratch with our integration. (Another way is to compute the limit as n approaches m in our result and use Hopital s Rule. Try it!) For n = m we have to compute π cos m d. This can also be handled using a trigonometric identity. Using the half angle formula, (3.), with θ = m, we find π π ( + cos m) d cos m d = = [ + sin m m ] π = (π) = π. (3.7) To summarize, we have shown that π cos n cos m d = {, m = n π, m = n. (3.8) This holds true for m, n =,,.... [Why did we include m, n =?] When we have such a set of functions, they are said to be an orthogonal set over the integration interval. A set of (real) functions {φ n ()} is said to be orthogonal on [a, b] if b a φ n()φ m () d = when n = m. Furthermore, if we also have that b a φ n() d =, these functions are called orthonormal. The set of functions {cos n} n= are orthogonal on [, π]. Actually, they are orthogonal on any interval of length π. We can make them orthonormal by dividing each function by π as indicated by Equation (3.7). This is sometimes referred to normalization of the set of functions. The notion of orthogonality is actually a generalization of the orthogonality of vectors in finite dimensional vector spaces. The integral b a f () f () d is the generalization of the dot product, and is called the scalar product of f () and g(), which are thought of as vectors in an infinite dimensional vector space spanned by a set of orthogonal functions. We will return to these ideas in the net chapter. Returning to the integrals in equation (3.8), we still have to evaluate π sin n cos m d. We can use the trigonometric identity involving products of sines and cosines, (3.5). Setting A = n and B = m, we find Definition of an orthogonal set of functions and orthonormal functions.

78 partial differential equations that π π sin n cos m d = [sin(n + m) + sin(n m)] d = [ ] cos(n + m) cos(n m) π + n + m n m = ( + ) + ( + ) =. (3.9) So, π sin n cos m d =. (3.) For these integrals we also should be careful about setting n = m. In this special case, we have the integrals π sin m cos m d = π sin m d = [ cos m m ] π =. Finally, we can finish evaluating the epression in Equation (3.8). We have determined that all but one integral vanishes. In that case, n = m. This leaves us with π f () cos m d = a m π. Solving for a m gives a m = π π f () cos m d. Since this is true for all m =,,..., we have proven this part of the theorem. The only part left is finding the b n s This will be left as an eercise for the reader. We now consider eamples of finding Fourier coefficients for given functions. In all of these cases we define f () on [, π]. Eample 3.. f () = 3 cos, [, π]. We first compute the integrals for the Fourier coefficients. a = π a n = π a = π b n = π π π π π 3 cos d =. 3 cos cos n d =, n =. 3 cos d = 3, 3 cos sin n d =, n. (3.) The integrals for a, a n, n =, and b n are the result of orthogonality. For a, the integral can be computed as follows: a = π π 3 cos d

trigonometric fourier series 79 = 3 π [ + cos 4] d π = 3 π + sin 4 4 }{{} This term vanishes! π = 3. (3.) Therefore, we have that the only nonvanishing coefficient is a = 3. So there is one term and f () = 3 cos. Well, we should have known the answer to the last eample before doing all of those integrals. If we have a function epressed simply in terms of sums of simple sines and cosines, then it should be easy to write down the Fourier coefficients without much work. This is seen by writing out the Fourier series, f () a + [a n cos n + b n sin n]. = a + a cos + b sin + +a cos + b sin +.... (3.3) For the last problem, f () = 3 cos. Comparing this to the epanded Fourier series, one can immediately read off the Fourier coefficients without doing any integration. In the net eample we emphasize this point. Eample 3.. f () = sin, [, π]. We could determine the Fourier coefficients by integrating as in the last eample. However, it is easier to use trigonometric identities. We know that sin = ( cos ) = cos. There are no sine terms, so b n =, n =,,.... There is a constant term, implying a / = /. So, a =. There is a cos term, corresponding to n =, so a =. That leaves a n = for n =,. So, a =, a =, and all other Fourier coefficients vanish. {, < < π, Eample 3.3. f () =., π < < π, This eample will take a little more work. We cannot bypass evaluating any integrals this time. As seen in Figure 3.6, this function is discontinuous. So, we will break up any integration into two integrals, one over [, π] and the other over [π, π]. a = π = π π π f () d d + π π π ( ) d = π (π) + ( π + π) =. (3.4) π π π Figure 3.6: Plot of discontinuous function in Eample 3.3. a n = π π f () cos n d

8 partial differential equations = π = π [ π π cos n d π ) π [ ( sin n n ] cos n d ] ( sin n n ) π =. (3.5) π π b n = f () sin n d π = [ π π ] sin n d sin n d π π [ ( = ) π ( ) ] π cos n + cos n π n n π = [ n π cos nπ + n + n n ] cos nπ Often we see epressions involving cos nπ = ( ) n and ± cos nπ = ± ( ) n. This is an eample showing how to re-inde series containing cos nπ. = ( cos nπ). (3.6) nπ We have found the Fourier coefficients for this function. Before inserting them into the Fourier series (3.3), we note that cos nπ = ( ) n. Therefore, {, n even cos nπ = (3.7), n odd. So, half of the b n s are zero. While we could write the Fourier series representation as f () 4 π sin n, n n odd we could let n = k in order to capture the odd numbers only. The answer can be written as f () = 4 sin(k ), π k k= Having determined the Fourier representation of a given function, we would like to know if the infinite series can be summed; i.e., does the series converge? Does it converge to f ()? We will discuss this question later in the chapter after we generalize the Fourier series to intervals other than for [, π]. 3.3 Fourier Series Over Other Intervals In many applications we are interested in determining Fourier series representations of functions defined on intervals other than [, π]. In this section we will determine the form of the series epansion and the Fourier coefficients in these cases. The most general type of interval is given as [a, b]. However, this often is too general. More common intervals are of the form [ π, π], [, ], or

trigonometric fourier series 8 [ /, /]. The simplest generalization is to the interval [, ]. Such intervals arise often in applications. For eample, for the problem of a one dimensional string of length we set up the aes with the left end at = and the right end at =. Similarly for the temperature distribution along a one dimensional rod of length we set the interval to [, π]. Such problems naturally lead to the study of Fourier series on intervals of length. We will see later that symmetric intervals, [ a, a], are also useful. Given an interval [, ], we could apply a transformation to an interval of length π by simply rescaling the interval. Then we could apply this transformation to the Fourier series representation to obtain an equivalent one useful for functions defined on [, ]. We define [, π] and t [, ]. A linear transformation relating these intervals is simply = πt as shown in Figure 3.7. So, t = maps to = and t = maps to = π. Furthermore, this transformation maps f () to a new function g(t) = f ((t)), which is defined on [, ]. We will determine the Fourier series representation of this function using the representation for f () from the last section. Recall the form of the Fourier representation for f () in Equation (3.3): t π Figure 3.7: A sketch of the transformation between intervals [, π] and t [, ]. f () a + [a n cos n + b n sin n]. (3.8) Inserting the transformation relating and t, we have g(t) a [ + a n cos nπt + b n sin nπt ]. (3.9) This gives the form of the series epansion for g(t) with t [, ]. But, we still need to determine the Fourier coefficients. Recall, that a n = π π f () cos n d. We need to make a substitution in the integral of = πt. We also will need to transform the differential, d = π dt. Thus, the resulting form for the Fourier coefficients is Similarly, we find that a n = b n = g(t) cos nπt g(t) sin nπt dt. (3.3) dt. (3.3) We note first that when = π we get back the series representation that we first studied. Also, the period of cos nπt is /n, which means that the representation for g(t) has a period of corresponding to n =. At the end of this section we present the derivation of the Fourier series representation for a general interval for the interested reader. In Table 3. we summarize some commonly used Fourier series representations. Integration of even and odd functions over symmetric intervals, [ a, a].

8 partial differential equations Even Functions. a y() Figure 3.8: Area under an even function on a symmetric interval, [ a, a]. Odd Functions. a At this point we need to remind the reader about the integration of even and odd functions on symmetric intervals. We first recall that f () is an even function if f ( ) = f () for all. One can recognize even functions as they are symmetric with respect to the y-ais as shown in Figure 3.8. If one integrates an even function over a symmetric interval, then one has that a a a f () d = f () d. (3.3) One can prove this by splitting off the integration over negative values of, using the substitution = y, and employing the evenness of f (). Thus, a a f () d = = = = a f () d + a a a a a f ( y) dy + f (y) dy + a f () d f () d f () d f () d. (3.33) This can be visually verified by looking at Figure 3.8. A similar computation could be done for odd functions. f () is an odd function if f ( ) = f () for all. The graphs of such functions are symmetric with respect to the origin as shown in Figure 3.9. If one integrates an odd function over a symmetric interval, then one has that a y() a a a f () d =. (3.34) Eample 3.4. et f () = on [ π, π] We compute the coefficients, beginning as usual with a. We have, using the fact that is an even function, Figure 3.9: Area under an odd function on a symmetric interval, [ a, a]. a = π = π π π π d d = π (3.35) We continue with the computation of the general Fourier coefficients for f () = on [ π, π]. We have a n = π π π cos n d = π π cos n d. (3.36) Here we have made use of the fact that cos n is an even function. In order to compute the resulting integral, we need to use integration by parts, b a u dv = uv b b v du, a by letting u = and dv = cos n d. Thus, du = d and v = dv = n sin n. a

trigonometric fourier series 83 Fourier Series on [, ] f () a [ + a n cos nπ + b n sin nπ ]. (3.37) Table 3.: Special Fourier Series Representations on Different Intervals a n = b n = Fourier Series on [, ] f () cos nπ f () sin nπ f () a [ + a n cos nπ d. n =,,,..., d. n =,,.... (3.38) + b n sin nπ ]. (3.39) a n = b n = f () cos nπ f () sin nπ d. n =,,,..., d. n =,,.... (3.4) Fourier Series on [ π, π] f () a + [a n cos n + b n sin n]. (3.4) a n = π b n = π π π π π f () cos n d. n =,,,..., f () sin n d. n =,,.... (3.4)

84 partial differential equations Continuing with the computation, we have π a n = cos n d. π = [ π n sin n π n = [ ] π nπ n cos n π ] sin n d = πn ( ( )n ). (3.43) Here we have used the fact that cos nπ = ( ) n for any integer n. This leads to a factor ( ( ) n ). This factor can be simplified as { ( ) n, n odd =, n even. (3.44) So, a n = for n even and a n = 4 πn for n odd. Computing the b n s is simpler. We note that we have to integrate sin n from = π to π. The integrand is an odd function and this is a symmetric interval. So, the result is that b n = for all n. Putting this all together, the Fourier series representation of f () = on [ π, π] is given as f () π 4 π cos n n. (3.45) n odd While this is correct, we can rewrite the sum over only odd n by reindeing. We let n = k for k =,, 3,.... Then we only get the odd integers. The series can then be written as f () π 4 π cos(k ) (k ) k=. (3.46) Throughout our discussion we have referred to such results as Fourier representations. We have not looked at the convergence of these series. Here is an eample of an infinite series of functions. What does this series sum to? We show in Figure 3. the first few partial sums. They appear to be converging to f () = fairly quickly. Even though f () was defined on [ π, π] we can still evaluate the Fourier series at values of outside this interval. In Figure 3., we see that the representation agrees with f () on the interval [ π, π]. Outside this interval we have a periodic etension of f () with period π. Another eample is the Fourier series representation of f () = on [ π, π] as left for Problem 7. This is determined to be f () ( ) n+ sin n. (3.47) n As seen in Figure 3. we again obtain the periodic etension of the function. In this case we needed many more terms. Also, the vertical parts of the

trigonometric fourier series 85 N = N = Figure 3.: Plot of the first partial sums of the Fourier series representation for f () =. 3...5..5..5.... 3. 3...5..5..5.... 3. 3.. N = 3 3..5..5..5.... 3. 3.. N = 4 3..5..5..5.... 3. Figure 3.: Plot of the first terms of the Fourier series representation for f () = on the interval [ π, 4π]. 3.5.5.5 6 4 4 6 8 6. 4.. 3....... 3.. N = 4. 6. 8... Figure 3.: Plot of the first terms and terms of the Fourier series representation for f () = on the interval [ π, 4π]. N = 6. 4.. 3....... 3.. 4. 6. 8...

86 partial differential equations first plot are noneistent. In the second plot we only plot the points and not the typical connected points that most software packages plot as the default style. Eample 3.5. It is interesting to note that one can use Fourier series to obtain sums of some infinite series. For eample, in the last eample we found that ( ) n+ sin n. n Now, what if we chose = π? Then, we have π = ( ) n+ sin nπ [ n = 3 + 5 ] 7 +.... This gives a well known epression for π: π = 4 [ 3 + 5 7 ] +.... 3.3. Fourier Series on [a, b] This section can be skipped on first reading. It is here for completeness and the end result, Theorem 3. provides the result of the section. A Fourier series representation is also possible for a general interval, t [a, b]. As before, we just need to transform this interval to [, π]. et = π t a. Inserting this into the Fourier series (3.3) representation for f () we obtain g(t) a [ ] + nπ(t a) nπ(t a) a n cos + b n sin. (3.48) Well, this epansion is ugly. It is not like the last eample, where the transformation was straightforward. If one were to apply the theory to applications, it might seem to make sense to just shift the data so that a = and be done with any complicated epressions. However, some students enjoy the challenge of developing such generalized epressions. So, let s see what is involved. First, we apply the addition identities for trigonometric functions and rearrange the terms. g(t) a + = a + ( + b n sin nπt = a + + sin nπt [ nπ(t a) a n cos + b n sin ] nπ(t a) ( [a n cos nπt nπa nπt nπa cos + sin sin )] [ cos nπt nπa cos nπt nπa cos sin ( a n cos nπa b n sin nπa ( a n sin nπa + b n cos nπa ) ) )]. (3.49)

trigonometric fourier series 87 Defining A = a and A n a n cos nπa b n sin nπa B n a n sin nπa + b n cos nπa, (3.5) we arrive at the more desirable form for the Fourier series representation of a function defined on the interval [a, b]. g(t) A [ + A n cos nπt + B n sin nπt ]. (3.5) We net need to find epressions for the Fourier coefficients. We insert the known epressions for a n and b n and rearrange. First, we note that under the transformation = π t a we have and π a n = π = π b n = π = b a b a b f () cos n d a g(t) cos f () cos n d g(t) sin nπ(t a) nπ(t a) dt, (3.5) dt. (3.53) Then, inserting these integrals in A n, combining integrals and making use of the addition formula for the cosine of the sum of two angles, we obtain A n a n cos nπa b n sin nπa b [ nπ(t a) = g(t) cos = a b A similar computation gives a cos nπa nπ(t a) sin sin nπa ] dt g(t) cos nπt dt. (3.54) B n = b Summarizing, we have shown that: a g(t) sin nπt dt. (3.55) Theorem 3.. The Fourier series representation of f () defined on [a, b] when it eists, is given by with Fourier coefficients f () a [ + a n cos nπ + b n sin nπ ]. (3.56) a n = b n = b a b a f () cos nπ d. n =,,,..., f () sin nπ d. n =,,.... (3.57)

88 partial differential equations 3.4 Sine and Cosine Series In the last two eamples ( f () = and f () = on [ π, π]) we have seen Fourier series representations that contain only sine or cosine terms. As we know, the sine functions are odd functions and thus sum to odd functions. Similarly, cosine functions sum to even functions. Such occurrences happen often in practice. Fourier representations involving just sines are called sine series and those involving just cosines (and the constant term) are called cosine series. Another interesting result, based upon these eamples, is that the original functions, and agree on the interval [, π]. Note from Figures 3.-3. that their Fourier series representations do as well. Thus, more than one series can be used to represent functions defined on finite intervals. All they need to do is to agree with the function over that particular interval. Sometimes one of these series is more useful because it has additional properties needed in the given application. We have made the following observations from the previous eamples:. There are several trigonometric series representations for a function defined on a finite interval.. Odd functions on a symmetric interval are represented by sine series and even functions on a symmetric interval are represented by cosine series. These two observations are related and are the subject of this section. We begin by defining a function f () on interval [, ]. We have seen that the Fourier series representation of this function appears to converge to a periodic etension of the function. In Figure 3.3 we show a function defined on [, ]. To the right is its periodic etension to the whole real ais. This representation has a period of =. The bottom left plot is obtained by first reflecting f about the y- ais to make it an even function and then graphing the periodic etension of this new function. Its period will be =. Finally, in the last plot we flip the function about each ais and graph the periodic etension of the new odd function. It will also have a period of =. In general, we obtain three different periodic representations. In order to distinguish these we will refer to them simply as the periodic, even and odd etensions. Now, starting with f () defined on [, ], we would like to determine the Fourier series representations leading to these etensions. [For easy reference, the results are summarized in Table 3.] We have already seen from Table 3. that the periodic etension of f (), defined on [, ], is obtained through the Fourier series representation f () a [ + a n cos nπ + b n sin nπ ], (3.58)

trigonometric fourier series 89 f().5.5.5 f() on [,].5 3 Even Periodic Etension of f().5.5 f().5.5.5 Periodic Etension of f().5 3.5.5 Odd Periodic Etension of f() Figure 3.3: This is a sketch of a function and its various etensions. The original function f () is defined on [, ] and graphed in the upper left corner. To its right is the periodic etension, obtained by adding replicas. The two lower plots are obtained by first making the original function even or odd and then creating the periodic etensions of the new function. f() f().5.5.5 3.5 3 where a n = b n = f () cos nπ f () sin nπ d. n =,,,..., d. n =,,.... (3.59) Given f () defined on [, ], the even periodic etension is obtained by simply computing the Fourier series representation for the even function { f (), < <, f e () (3.6) f ( ) < <. Since f e () is an even function on a symmetric interval [, ], we epect that the resulting Fourier series will not contain sine terms. Therefore, the series epansion will be given by [Use the general case in (3.56) with a = and b =.]: f e () a + a n cos nπ. (3.67) with Fourier coefficients a n = f e () cos nπ d. n =,,,.... (3.68) However, we can simplify this by noting that the integrand is even and the interval of integration can be replaced by [, ]. On this interval f e () = f (). So, we have the Cosine Series Representation of f () for [, ] is given as f () a + a n cos nπ. (3.69) where a n = f () cos nπ d. n =,,,.... (3.7) Even periodic etension. Fourier Cosine Series.

9 partial differential equations Table 3.: Fourier Cosine and Sine Series Representations on [, ] Fourier Series on [, ] f () a + [ a n cos nπ + b n sin nπ ]. (3.6) a n = b n = Fourier Cosine Series on [, ] where a n = f () cos nπ f () sin nπ f () a / + Fourier Sine Series on [, ] f () cos nπ f () d. n =,,,..., d. n =,,.... (3.6) a n cos nπ. (3.63) d. n =,,,.... (3.64) b n sin nπ. (3.65) where b n = f () sin nπ d. n =,,.... (3.66)

trigonometric fourier series 9 Similarly, given f () defined on [, ], the odd periodic etension is Odd periodic etension. obtained by simply computing the Fourier series representation for the odd function f o () { f (), < <, f ( ) < <. (3.7) The resulting series epansion leads to defining the Sine Series Representation of f () for [, ] as where b n = f () b n sin nπ. (3.7) f () sin nπ d. n =,,.... (3.73) Eample 3.6. In Figure 3.3 we actually provided plots of the various etensions of the function f () = for [, ]. et s determine the representations of the periodic, even and odd etensions of this function. For a change, we will use a CAS (Computer Algebra System) package to do the integrals. In this case we can use Maple. A general code for doing this for the periodic etension is shown in Table 3.3. Eample 3.7. Periodic Etension - Trigonometric Fourier Series Using the code in Table 3.3, we have that a = 3, a n =, and b n π n = nπ. Thus, the resulting series is given as f () [ ] 3 + n cos nπ sin nπ. π nπ In Figure 3.4 we see the sum of the first 5 terms of this series. Generally, we see that the series seems to be converging to the periodic etension of f. There appear to be some problems with the convergence around integer values of. We will later see that this is because of the discontinuities in the periodic etension and the resulting overshoot is referred to as the Gibbs phenomenon which is discussed in the last section of this chapter. Fourier Sine Series Representation. Figure 3.4: The periodic etension of f () = on [, ]..8.6.4. 3

9 partial differential equations Table 3.3: Maple code for computing Fourier coefficients and plotting partial sums of the Fourier series. > restart: > :=: > f:=^: > assume(n,integer): > a:=/*int(f,=..); a := /3 > an:=/*int(f*cos(*n*pi*/),=..); an := ------- n~ Pi > bn:=/*int(f*sin(*n*pi*/),=..); bn := - ----- n~ Pi > F:=a/+sum((/(k*Pi)^)*cos(*k*Pi*/) -/(k*pi)*sin(*k*pi*/),k=..5): > plot(f,=-..3,title= Periodic Etension, titlefont=[times,roman,4],font=[times,roman,4]); Eample 3.8. Even Periodic Etension - Cosine Series In this case we compute a = 3 and a n = 4( )n. Therefore, we have n π f () 3 + 4 ( ) π n n cos nπ. In Figure 3.5 we see the sum of the first 5 terms of this series. In this case the convergence seems to be much better than in the periodic etension case. We also see that it is converging to the even etension. Figure 3.5: The even periodic etension of f () = on [, ]..8.6.4. 3

trigonometric fourier series 93 Eample 3.9. Odd Periodic Etension - Sine Series Finally, we look at the sine series for this function. We find that Therefore, b n = n 3 π 3 (n π ( ) n ( ) n + ). f () π 3 n 3 (n π ( ) n ( ) n + ) sin nπ. Once again we see discontinuities in the etension as seen in Figure 3.6. However, we have verified that our sine series appears to be converging to the odd etension as we first sketched in Figure 3.3. Figure 3.6: The odd periodic etension of f () = on [, ]..5 3.5 3.5 Solution of the Heat Equation We started this chapter seeking solutions of initial-boundary value problems involving the heat equation and the wave equation. In particular, we found the general solution for the problem of heat flow in a one dimensional rod of length with fied zero temperature ends. The problem was given by PDE u t = ku, < t,, IC u(, ) = f (), < <, (3.74) BC u(, t) =, t >, u(, t) =, t >. We found the solution using separation of variables. This resulted in a sum over various product solutions: u(, t) = b n e kλnt sin nπ, where ( nπ λ n = ).

94 partial differential equations This equation satisfies the boundary conditions. However, we had only gotten to state initial condition using this solution. Namely, f () = u(, ) = b n sin nπ. We were left with having to determine the constants b n. Once we know them, we have the solution. Now we can get the Fourier coefficients when we are given the initial condition, f (). They are given by b n = f () sin nπ d, n =,,.... We consider a couple of eamples with different initial conditions. Eample 3.. Consider the solution of the heat equation with f () = sin and = π. In this case the solution takes the form u(, t) = b n e kλnt sin n. However, the initial condition takes the form of the first term in the epansion; i.e., the n = term. So, we need not carry out the integral because we can immediately write b = and b n =, n =, 3,.... Therefore, the solution consists of just one term, u(, t) = e kt sin. In Figure 3.7 we see that how this solution behaves for k = and t [, ]. Figure 3.7: The evolution of the initial condition f () = sin for = π and k =. Eample 3.. Consider solutions of the heat equation with f () = ( ) and =.

trigonometric fourier series 95 where This eample requires a bit more work. The solution takes the form u(, t) = b n e n π kt sin nπ, b n = f () sin nπ d. This integral is easily computed using integration by parts b n = = ( ) sin nπ d [ ( ) = { n π = = = ( )] cos nπ + ( ) cos nπ d nπ nπ } [( ) sin nπ] + sin nπ d 4 n 3 π 3 [cos nπ] 4 (cos nπ ) π3 { n 3, n even 8, n 3 π 3 n odd. (3.75) So, we have that the solution can be written as u(, t) = 8 π 3 l= (l ) 3 e (l ) π kt sin(l )π. In Figure 3.8 we see that how this solution behaves for k = and t [, ]. Twenty terms were used. We see that this solution diffuses much faster than in the last eample. Most of the terms damp out quickly as the solution asymptotically approaches the first term. Figure 3.8: The evolution of the initial condition f () = ( ) for = and k =.

96 partial differential equations 3.6 Finite ength Strings We now return to the physical eample of wave propagation in a string. We found that the general solution can be represented as a sum over product solutions. We will restrict our discussion to the special case that the initial velocity is zero and the original profile is given by u(, ) = f (). The solution is then satisfying u(, t) = A n sin nπ cos nπct f () = (3.76) A n sin nπ. (3.77) We have seen that the Fourier sine series coefficients are given by A n = f () sin nπ d. (3.78) We can rewrite this solution in a more compact form. First, we define the wave numbers, k n = nπ, n =,,..., and the angular frequencies, ω n = ck n = nπc. Then, the product solutions take the form sin k n cos ω n t. Using trigonometric identities, these products can be written as sin k n cos ω n t = [sin(k n + ω n t) + sin(k n ω n t)]. Inserting this epression in the solution, we have u(, t) = A n [sin(k n + ω n t) + sin(k n ω n t)]. (3.79) Since ω n = ck n, we can put this into a more suggestive form: ] u(, t) = [ A n sin k n ( + ct) + A n sin k n ( ct). (3.8) The solution of the wave equation can be written as the sum of right and left traveling waves. We see that each sum is simply the sine series for f () but evaluated at either + ct or ct. Thus, the solution takes the form u(, t) = [ f ( + ct) + f ( ct)]. (3.8) If t =, then we have u(, ) = [ f () + f ()] = f (). So, the solution satisfies the initial condition. At t =, the sum has a term f ( c).

trigonometric fourier series 97 Recall from your mathematics classes that this is simply a shifted version of f (). Namely, it is shifted to the right. For general times, the function is shifted by ct to the right. For larger values of t, this shift is further to the right. The function (wave) shifts to the right with velocity c. Similarly, f ( + ct) is a wave traveling to the left with velocity c. Thus, the waves on the string consist of waves traveling to the right and to the left. However, the story does not stop here. We have a problem when needing to shift f () across the boundaries. The original problem only defines f () on [, ]. If we are not careful, we would think that the function leaves the interval leaving nothing left inside. However, we have to recall that our sine series representation for f () has a period of. So, before we apply this shifting, we need to account for its periodicity. In fact, being a sine series, we really have the odd periodic etension of f () being shifted. The details of such analysis would take us too far from our current goal. However, we can illustrate this with a few figures. We begin by plucking a string of length. This can be represented by the function { a a f () = a a (3.8) where the string is pulled up one unit at = a. This is shown in Figure 3.9. Net, we create an odd function by etending the function to a period of. This is shown in Figure 3.. Finally, we construct the periodic etension of this to the entire line. In Figure 3. we show in the lower part of the figure copies of the periodic etension, one moving to the right and the other moving to the left. (Actually, the copies are f ( ± ct).) The top plot is the sum of these solutions. The physical string lies in the interval [,]. Of course, this is better seen when the solution is animated. The time evolution for this plucked string is shown for several times in Figure 3.. This results in a wave that appears to reflect from the ends as time increases. The relation between the angular frequency and the wave number, ω = ck, is called a dispersion relation. In this case ω depends on k linearly. If one knows the dispersion relation, then one can find the wave speed as c = ω k. In this case, all of the harmonics travel at the same speed. In cases where they do not, we have nonlinear dispersion, which we will discuss later. f () a Figure 3.9: The initial profile for a string of length one plucked at = a. f () - a a Figure 3.: Odd etension about the right end of a plucked string. Figure 3.: Summing the odd periodic etensions. The lower plot shows copies of the periodic etension, one moving to the right and the other moving to the left. The upper plot is the sum. 3.7 The Gibbs Phenomenon We have seen the Gibbs phenomenon when there is a jump discontinuity in the periodic etension of a function, whether the function originally had a discontinuity or developed one due to a mismatch in the values of the endpoints. This can be seen in Figures 3., 3.4 and 3.6. The Fourier series has a difficult time converging at the point of discontinuity and these graphs of the Fourier series show a distinct overshoot which does not go

98 partial differential equations Figure 3.: This Figure shows the plucked string at si successive times. t = t =. 3 The Gibbs phenomenon was named after Josiah Willard Gibbs (839-93) even though it was discovered earlier by the Englishman Henry Wilbraham (85-883). Wilbraham published a soon forgotten paper about the effect in 848. In 889 Albert Abraham Michelson (85-93), an American physicist,observed an overshoot in his mechanical graphing machine. Shortly afterwards J. Willard Gibbs published papers describing this phenomenon, which was later to be called the Gibbs phenomena. Gibbs was a mathematical physicist and chemist and is considered the father of physical chemistry. t =. t =.4 away. This is called the Gibbs phenomenon 3 and the amount of overshoot can be computed. In one of our first eamples, Eample 3.3, we found the Fourier series representation of the piecewise defined function f () = { t =.3 t =.5, < < π,, π < < π, to be f () 4 π k= sin(k ). k Figure 3.3: The Fourier series representation of a step function on [ π, π] for N =..5 3 3.5 In Figure 3.3 we display the sum of the first ten terms. Note the wiggles, overshoots and under shoots. These are seen more when we plot the representation for [ 3π, 3π], as shown in Figure 3.4. We note that the overshoots and undershoots occur at discontinuities in the periodic etension of f (). These occur whenever f () has a disconti-

trigonometric fourier series 99 Figure 3.4: The Fourier series representation of a step function on [ π, π] for N = plotted on [ 3π, 3π] displaying the periodicity..5 8 6 4 4 6 8.5 nuity or if the values of f () at the endpoints of the domain do not agree. Figure 3.5: The Fourier series representation of a step function on [ π, π] for N =..5 3 3.5...8.6.4 One might epect that we only need to add more terms. In Figure 3.5 we show the sum for twenty terms. Note the sum appears to converge better for points far from the discontinuities. But, the overshoots and undershoots are still present. In Figures 3.6 and 3.7 show magnified plots of the overshoot at = for N = and N = 5, respectively. We see that the overshoot persists. The peak is at about the same height, but its location seems to be getting closer to the origin. We will show how one can estimate the size of the overshoot. We can study the Gibbs phenomenon by looking at the partial sums of general Fourier trigonometric series for functions f () defined on the interval [, ]. Writing out the partial sums, inserting the Fourier coefficients and rearranging, we have S N () = a + N [ a n cos nπ + b n sin nπ ]...4.6.8. Figure 3.6: The Fourier series representation of a step function on [ π, π] for N =....8.6.4...4.6.8. Figure 3.7: The Fourier series representation of a step function on [ π, π] for N = 5.

partial differential equations = f (y) dy + ( + = { + = N We have defined N f (y) sin nπy ( cos nπy { N + cos nπ cos D N (y ) f (y) dy [( ) dy. nπ(y ) f (y) cos nπy sin nπ ] + sin nπy } ) dy cos nπ nπ ) } sin f (y) dy f (y) dy D N () = N + cos nπ, which is called the N-th Dirichlet kernel. We now prove emma 3.. The N-th Dirichlet kernel is given by sin((n+ ) π ) D N () = sin π, sin π =, N +, π sin =. Proof. et θ = π and multiply D N() by sin θ to obtain: sin θ D N() = sin θ [ ] + cos θ + + cos Nθ = sin θ + cos θ sin θ + cos θ sin θ + + cos Nθ sin θ = sin θ ( + sin 3θ sin θ ) ( + sin 5θ ) 3θ sin + [ ( + sin N + ) ( θ sin N ) ] θ ( = sin N + ) θ. (3.83) Thus, If sin θ =, then sin θ ( D N() = sin N + ) θ. ( ) D N () = sin N + sin θ θ, θ = π.

trigonometric fourier series If sin θ =, then one needs to apply Hospital s Rule as θ mπ: ( ) ) N + θ θ sin lim θ mπ sin θ (N + (N = ) cos + lim θ mπ cos θ = (N + ) cos (mπn + mπ) cos mπ = (N + )(cos mπn cos mπ sin mπn sin mπ) cos mπ = N +. (3.84) We further note that D N () is periodic with period and is an even function. So far, we have found that the Nth partial sum is given by S N () = Making the substitution ξ = y, we have S N () = = D N (y ) f (y) dy. (3.85) D N (ξ) f (ξ + ) dξ D N (ξ) f (ξ + ) dξ. (3.86) In the second integral we have made use of the fact that f () and D N () are periodic with period and shifted the interval back to [, ]. We now write the integral as the sum of two integrals over positive and negative values of ξ and use the fact that D N () is an even function. Then, S N () = = D N (ξ) f (ξ + ) dξ + D N (ξ) f (ξ + ) dξ [ f ( ξ) + f (ξ + )] D N (ξ) dξ. (3.87) We can use this result to study the Gibbs phenomenon whenever it occurs. In particular, we will only concentrate on the earlier eample. For this case, we have for S N () = π π [ f ( ξ) + f (ξ + )] D N (ξ) dξ (3.88) D N () = + N cos n. Also, one can show that, ξ <, f ( ξ) + f (ξ + ) =, ξ < π,, π ξ < π.

partial differential equations Thus, we have S N () = π = π D N (ξ) dξ π D N (z) dz + π π π D N (ξ) dξ D N (π z) dz. (3.89) Here we made the substitution z = π ξ in the second integral. The Dirichlet kernel for = π is given by D N () = sin(n + ) sin. For N large, we have N + N, and for small, we have sin. So, under these assumptions, Therefore, D N () sin N. S N () π sin Nξ ξ dξ for large N, and small. If we want to determine the locations of the minima and maima, where the undershoot and overshoot occur, then we apply the first derivative test for etrema to S N (). Thus, d d S N() = sin N =. π The etrema occur for N = mπ, m = ±, ±,.... One can show that there is a maimum at = π/n and a minimum for = π/n. The value for the overshoot can be computed as S N (π/n) = π = π π/n π = π Si(π) sin t t sin Nξ dξ ξ dt =.78979744.... (3.9) Note that this value is independent of N and is given in terms of the sine integral, sin t Si() dt. t Problems. Write y(t) = 3 cos t 4 sin t in the form y(t) = A cos(π f t + φ).