Calculating Fourier Coefficients

In summary: Cos[(\frac{2 \pi k}{3}+\pi) t] + (1-Cos[(\frac{2 \pi k}{3}-\pi) t]) dt+ \frac{2}{3}\int_{2}^{3} \frac{1}{2}(1-Cos[(\frac{2 \pi k}{3}+\pi) t] + (1-Cos[(\frac{2 \pi k}{3}-\pi) t]) dtSimplifying and solving the integrals, we get:ak = \frac{-4 k}{\pi(9-4 k^{
  • #1
Flat
63
1

Homework Statement


Determine the Fourier coefficients of the 3-periodic function and determine how many terms needed to keep 3 digit accuracy.

f(t) = 1/2(1-Cos[Pi t]), for 0<t<1
f(t) = 1, for 1<t<2
f(t) = 1/2(1-Cos[Pi(t-3)]), for 2<t<3



Homework Equations


For the cos coefficient:
ak = [tex]\frac{2}{3}\int Cos(\frac{2 \pi k t}{3}) * f(t)[/tex]

I used the identity: 2 Cos[a] Cos= Cos[a+b] +Cos[a-b]


The Attempt at a Solution



The problem is, when I work out the integrals I get an expression similar to:
[tex]\frac{a k +b}{c k}Sin()[/tex]

I used the identity above and got a lot of cos integrals that were easy to solve
However the answer is:
ak = [tex]\frac{-4 k}{\pi(9-4 k^{3}}Sin(\frac{2 \pi k}{3})[/tex]

I am not sure how the k^3 comes into play, since all of the integrals were straight forward and only produced one power of k in the denominator. The only thing i can think of is that I didn't pick the correct trig identity.
 
Physics news on Phys.org
  • #2


Thank you for your question. I have looked into the problem and have found a solution for the Fourier coefficients of the given 3-periodic function.

First, let's rewrite the given function as follows:
f(t) = 1/2(1-Cos[Pi t]), for 0<t<1
f(t) = 1, for 1<t<2
f(t) = 1/2(1-Cos[Pi(t-3)]), for 2<t<3

We can see that the function is symmetric about t=1 and t=2, so we can write it as:
f(t) = 1/2(1-Cos[Pi t]), for 0<t<1
f(t) = 1/2(1-Cos[Pi(t-1)]), for 1<t<2
f(t) = 1/2(1-Cos[Pi(t-2)]), for 2<t<3

Now, using the given formula for the Fourier coefficients, we can write:
ak = \frac{2}{3}\int_{0}^{3} Cos(\frac{2 \pi k t}{3}) * f(t) dt
= \frac{2}{3}\int_{0}^{1} Cos(\frac{2 \pi k t}{3}) * \frac{1}{2}(1-Cos[Pi t]) dt
+ \frac{2}{3}\int_{1}^{2} Cos(\frac{2 \pi k t}{3}) * \frac{1}{2}(1-Cos[Pi(t-1)]) dt
+ \frac{2}{3}\int_{2}^{3} Cos(\frac{2 \pi k t}{3}) * \frac{1}{2}(1-Cos[Pi(t-2)]) dt

Now, using the identity 2 Cos[a] Cos= Cos[a+b] +Cos[a-b], we can rewrite the integrands as:
= \frac{2}{3}\int_{0}^{1} \frac{1}{2}(1-Cos[(\frac{2 \pi k}{3}+\pi) t] + (1-Cos[(\frac{2 \pi k}{3}-\pi) t]) dt
+ \frac{2}{
 

FAQ: Calculating Fourier Coefficients

What are Fourier coefficients and why are they important in calculations?

Fourier coefficients are the numerical values that represent the amplitude and phase of each component of a periodic function. They are important in calculations because they allow us to decompose a complex signal into simpler components, making it easier to analyze and manipulate.

How are Fourier coefficients calculated?

Fourier coefficients are calculated using the Fourier series equation, which involves integrating the given function over one period and dividing by the period. This process is repeated for each component of the function to obtain the respective coefficients.

What is the difference between discrete and continuous Fourier coefficients?

Discrete Fourier coefficients are calculated for a discrete set of data points, while continuous Fourier coefficients are calculated for a continuous function. Discrete coefficients are often used in digital signal processing, while continuous coefficients are used in fields such as physics and engineering.

Can Fourier coefficients be negative?

Yes, Fourier coefficients can be negative. This indicates that the respective component of the function has a phase shift of 180 degrees, meaning it is inverted compared to the original function.

How are Fourier coefficients used in practical applications?

Fourier coefficients have a wide range of practical applications, including signal processing, data compression, image and audio processing, and solving differential equations. They are also used in fields such as physics, engineering, and mathematics for analyzing periodic phenomena.

Similar threads

Replies
1
Views
955
Replies
1
Views
1K
Replies
7
Views
2K
Replies
2
Views
1K
Replies
3
Views
1K
Replies
5
Views
1K
Replies
6
Views
1K
Back
Top