Finding the Fourier series of a function.

In summary, the conversation discusses the function f(x) and its properties of being even, odd, or neither. Using the definitions of even and odd functions, it is determined that f(x) is an even function. However, there is difficulty in finding the Fourier series of f, as integration by parts does not work due to infinitely expanding functions. The solution is to use the product formulas to integrate the four functions involved.
  • #1
bubokribuck
42
0

Homework Statement


f(x)=
-cos(x) when -π<x<0
cos(x) when 0<x<π

Decide if f is an even, odd function or either.
Find the Fourier series of f.

Homework Equations



odd function: f(x)=f(-x)
even function: -f(x)=f(-x) or f(x)=-f(-x)

The Attempt at a Solution



substitute -x into either cos(x) or -cos(x) => -cos(x)=-cos(-x) and cos(x)=cos(-x),
therefore, f is an even function.

However, I'm stuck when it comes to finding the Fourier series.

I know how to solve a0, where I just need to find the integration of -cos(x)dx and cos(x)dx. To find an and bn, I need to find the integration of [-cos(x)cos(nx)dx], [cos(x)cos(nx)dx], [-cos(x)sin(nx)] and [cos(x)sin(nx)dx]. I tried to solve them using integration by parts, but it turned out to be infinitely expanding, so I guess integration by parts won't work. Is there any other way to integrate the above four functions?
 
Physics news on Phys.org
  • #2
bubokribuck said:

Homework Statement


f(x)=
-cos(x) when -π<x<0
cos(x) when 0<x<π

Decide if f is an even, odd function or either.
Find the Fourier series of f.

Homework Equations



odd function: f(x)=f(-x)
even function: -f(x)=f(-x) or f(x)=-f(-x)

The Attempt at a Solution



substitute -x into either cos(x) or -cos(x) => -cos(x)=-cos(-x) and cos(x)=cos(-x),
therefore, f is an even function.

However, I'm stuck when it comes to finding the Fourier series.

I know how to solve a0, where I just need to find the integration of -cos(x)dx and cos(x)dx. To find an and bn, I need to find the integration of [-cos(x)cos(nx)dx], [cos(x)cos(nx)dx], [-cos(x)sin(nx)] and [cos(x)sin(nx)dx]. I tried to solve them using integration by parts, but it turned out to be infinitely expanding, so I guess integration by parts won't work. Is there any other way to integrate the above four functions?

Your definitions of "even" and "odd" are the exact opposite of everybody else's in the world.

RGV
 
  • #3
bubokribuck said:
I need to find the integration of [-cos(x)cos(nx)dx], [cos(x)cos(nx)dx], [-cos(x)sin(nx)] and [cos(x)sin(nx)dx]. I tried to solve them using integration by parts, but it turned out to be infinitely expanding, so I guess integration by parts won't work. Is there any other way to integrate the above four functions?

You need the product formulas:

http://www.sosmath.com/trig/prodform/prodform.html
 
  • #4
Ray Vickson said:
Your definitions of "even" and "odd" are the exact opposite of everybody else's in the world.

RGV

I just typed it wrong but they wouldn't let me edit it. :(
 

FAQ: Finding the Fourier series of a function.

What is a Fourier series?

A Fourier series is a mathematical representation of a periodic function as a sum of sinusoidal functions. It is named after French mathematician Joseph Fourier and is commonly used in various fields such as signal processing, physics, and engineering.

How do you find the Fourier series of a function?

To find the Fourier series of a function, you need to follow a set of steps. First, determine the period of the function. Then, use the Fourier series formula to calculate the coefficients of the sine and cosine terms. Next, plug these coefficients into the Fourier series formula to get the series representation of the function. Finally, you can use the Fourier series to approximate the original function.

Why is the Fourier series important?

The Fourier series is important because it allows us to represent complex functions as a sum of simpler trigonometric functions. This representation is useful in many areas of mathematics and engineering, such as solving differential equations and analyzing periodic signals.

What is the difference between a Fourier series and a Fourier transform?

A Fourier series represents a periodic function as a sum of sinusoidal functions, while a Fourier transform represents a function in the frequency domain. In other words, a Fourier series deals with periodic functions, while a Fourier transform can be applied to non-periodic functions.

Can any function be represented by a Fourier series?

No, not every function can be represented by a Fourier series. The function must have a period and satisfy certain conditions, such as being piecewise continuous, for the Fourier series to exist. However, many functions that are commonly encountered in mathematics and engineering can be represented by a Fourier series.

Back
Top