Assignment 16

#$&*

course Mth 174

7/28 8

Calculus IIAsst # 16

 

*********************************************

Question: 

  ****   Query   problem 10.5.13 (4th edition 10.5.12 formerly 9.5.12)  period 1 fn defined by f(x) = x if 0 < x < 1  ****   what is the fourth degree Fourier polynomial?

 

YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

Your solution:

We are using interval (0 , 1) instead of (-pi, pi), so we shift (-pi, pi) to (-1/2, 1/2) then to (0,1).

To do this we replace x with 2 pi x then substitute x-1/2 for x which gives us 2 pi k ( x - 1/2) 

 

a(0) = 1/1 int(x dx) from 0 to 1 = 1/2

a(1) = 2/1 int(x * sin(2 pi k x)) from 0 to 1 = -1 / (2 pi)

a(2) = -1 / (4 pi)

a(3) = -1 / (6 pi)

a(4) = -1 / (8 pi)

Fourier Series:

1/2 - 1 /(pi)sin(2 pi x) - 1/(2 pi)sin(4 pi x) - 1/(3 pi) sin(6 pi x) - 1/(4pi)sin(8 pi x)

 

 

confidence rating #$&*:

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 2

.............................................

Given Solution:

 

We first shift the interval (- pi , pi) to the interval (0, 1).

 

To shift the interval (-pi, pi) to (-1/2, 1/2) you would replace x by 2 pi x. To then shift the interval to (0, 1) you would in addition substitute x-1/2 for x.  The function sin(k x) would become sin(2 pi k ( x - 1/2) ) = sin(2 pi kx - k pi).  For even k this would be just sin(2 pi k x); for odd k this would be -sin(2 pi k x).  (recall that replacing x with x - b shifts the graph b units in the x direction)

 

The integral of the function itself over the interval is 1, so you would have a0 = 1/2.

 

The integral of x * sin(2 pi k x) from 0 to 1 is easily found by integration by parts to be 1 / (2 pi k)  (details of the integration:  let u = x, dv = sin(2 pi k x) dx; v = -1 / (2 pi k) cos(2 pi k x), so the integral of v du is a multiple of sin(2 pi k x) and hence yields 0 at both limits; the u v term is -x cos(2 pi k x) / (2 pi k), which yields 0 at the left limit and -1 / (2 pi k) at the right limit).

@&

Integration by parts makes use of the fact that

integra(u dv) = u v - integral(v du).

For the integration shown in the given solution u = x and v = -1/(2 pi k) cos(2 pi k x), so u v = -x / (2 pi k) cos(2 pi k x).

The x interval is (0, 1). When x = 0, the u v product is zero, and when x = 1 the uv product is -1 / (2 pi k).

*@

 

It follows that the first five terms of the series would be 1/2, -1/(2 pi), -1/(4 pi), -1 / (6 pi) and -1 / (8 pi).

 

This yields the Fourier polynomial

 

1/2 - (1/pi)sin(2pix) - 1/(2pi)sin(4pix) - 1/(3pi)sin(6pix) - 1/(4pi)sin(8pix).

 

The graph below depicts this function on the approximate interval (-1, 2) in red, as well as the function y = x (in blue).  On the interval (0, 1) the two functions agree very well.  You can see that the Fourier series repeats with period 1.

 

 

 

                                                 

.

  ****   What substitution did you use to compensate for the fact that the period of the function is not 2 `pi?

......!!!!!!!!...................................

                                                  17:19:41

student solution:  f has period b = 1, so I let x = bt/2'pi = t/2'pi

 

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Self-critique (if necessary):

I’m confused about what you meant by this:

u v term is -x cos(2 pi k x) / (2 pi k), which yields 0 at the left limit and -1 / (2 pi k) at the right limit).

 

 

------------------------------------------------

Self-critique Rating:

@&

I've inserted an explanatory note in your solution.

*@

 OK

*********************************************

Question: 

 

  ****   Query   problem 10.5.25 (4th edition 10.5.24 was 9.5.24)  integral of cos^2(mx) from -`pi to `pi is `pi  ****   which formula from the table did you use to establish your result and what substitution did you use?

......!!!!!!!!...................................

                                                  21:32:53

YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

Your solution:

int(cos^2(mx), x , -pi, pi) =  1 / (2 m) cos(mx) sin(mx) + x / 2 

Evaluated from -pi to pi:

pi / 2 - (-pi / 2) = pi

@&

The first part of this question does not concern the coefficients A(1) and A(5). It is just concerned with establishing that the integral of cos^2(mx) from -pi to pi is pi.

*@

A(1) = 1

A(5) = .3

 

Fourier Series:

f(x) = 1 cos(1x) + .3 cos(5x)

 

confidence rating #$&*:

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 2

.............................................

Given Solution:

 

The antiderivative of cos^2(mx) is 1 / (2 m) cos(mx) sin(mx) + x / 2.
Evaluated at x = pi this gives us
1 / (2 m) cos(m pi) sin(m pi) + pi/2.
Since sin(m pi) = 0, the result is just pi/2.
Evaluated at x = -pi we get - pi/2.
So the integral from - pi to pi is just
int(cos^2(mx), x from -pi to pi) = pi / 2 - (-pi / 2) = pi.

.........................................

                                                  21:32:53 ......!!!!!!!!

 

STUDENT QUESTION on Problem #18: """"Justify the formula b(sub k) = (1/pi)integral  f(x)sin(kx) dx (-pi to pi)...""""

 

I was able to complete this problem using the methodology on p.511-512.  But I don't totally understand their justification for reducing the right side to one term (section above first boxed formula on p. 512.

 

sin(kx) cos(mx) is the product of an even and an odd function, so is itself an odd function.  Its integral over any region symmetric with respect to the origin must be 0.

 

Note that cos(kx) goes through k complete cycles between x = -pi and x = pi, while cos(mx) goes through m complete cycles.

 

Assuming k > m (which can be assumed without loss of generality since the values of k and m can be interchanged without changing the integrand), cos(kx) and

cos(mx) will go 'in and out of phase' k - m times between x = -pi and x = pi, each time on an interval of length 2 pi / (k - m).  This is easy to see by graphing

two cosine functions for different integer values of k and m. 

 

Partition the interval [-2 pi, 2 pi] into subintervals each having length 2 pi / (k - m).  On each such subinterval the product cos(kx) * cos(m x) is antisymmetric with respect to the midpoint of the interval and hence contributes 0 to the integral.  Since the interval [-pi, pi] is partitioned into such subintervals, the integral from -pi to pi is 0.

 

This can be easily but somewhat messily 'nailed down' with algebraic-trigonometric manipulations, which however don't add much to this geometric explanation.

 

The function depicted below is a superposition of sine and cosine functions.

 

The function is defined on the interval -pi < x < pi, which corresponds to the interval between the vertical lines near the left and right sides of the picture.

 

By the methods of this section we can find the Fourier series for this function, which has coefficients a_1 = 1 and a_5 = .3.  All other coefficients are 1.

 

Thus the Fourier series for this function is

 

f(x) = 1 cos(1x) + .3 cos(5x), or just

f(x) = cos(x) + .3 cos(5x).

 

Here's a graph of y = cos(x):

 

Here's a graph of y = .3 cos(5x)

Here's a graph of both functions together.  If the y coordinates of each point of this graph are added they will give us the y coordinates of the original graph, so we say that the sum of these two graphs is the original graph.

The amplitude of the cos(x) term is greater than that of the cos(5x) term, so we say that the cos(x) term has more energy.

 

The energy is in fact determined by amplitude. 

 

The first term has amplitude 1, so its energy relative energy is 1.

The first term has amplitude .3, so its relative energy is .3.

 

If we had a general Fourier series with a_k and b_k terms, then they would be the coefficients of a cosine and a sine function. 

• Think of the cosine and the sine contributions as being represented by the legs of a right triangle.  The hypotenuse represents what we get when we combine them.  The hypotenuse would be sqrt(a_k^2 + b_k^2).

• The actual argument is a little more specific than this, but this at least makes it plausible that the energy term is sqrt(a_k^2 + b_k^2).

The energy for the k = 0 term is simply sqrt(A_0^2).

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Self-critique (if necessary):

 Why is there no a_0 and why did you only use a_1 and a_5?

 

 

------------------------------------------------

Self-critique Rating:

@&

All the other coefficients are zero.

*@

&#Good work. See my notes and let me know if you have questions. &#