Solving Fourier Cosine Series Homework w/ Matlab & Excel

Click For Summary

Discussion Overview

The discussion revolves around solving a homework problem related to Fourier cosine series using Matlab and Excel. Participants are exploring how to compute the coefficients a0, a1, etc., and their relationship to the function f(t) as described in the problem statement.

Discussion Character

  • Homework-related
  • Mathematical reasoning
  • Technical explanation

Main Points Raised

  • One participant expresses uncertainty about using FFT analysis in Matlab and seeks guidance on how the coefficients a0 relate to f(t) and how to implement the solution in Excel.
  • Another participant suggests that FFT analysis is unnecessary and recommends following the problem statement using a spreadsheet for a straightforward solution.
  • A participant advises comparing the given summation format to the expansion of f(t) in a referenced equation to find the coefficients a0, a1, etc.
  • There is a specific proposal regarding the values of a0 and a1, with one participant suggesting a0 is 0.2 and a1 is calculated as (2/π)(-1)^1/1.
  • Further clarification is provided on what to plug into the equation for f(t), indicating that the coefficients a_n multiply the cosine terms in the summation.

Areas of Agreement / Disagreement

Participants express differing views on the necessity of FFT analysis, with some advocating for a simpler approach using a spreadsheet. The exact values and calculations for the coefficients are also discussed, but no consensus is reached on the correct approach or values.

Contextual Notes

Participants reference specific equations and terms without providing full context, which may limit understanding for those unfamiliar with the material. The discussion includes unresolved questions about the implementation in Excel and the calculations of the coefficients.

Carter
Messages
11
Reaction score
0

Homework Statement


upload_2018-4-3_23-11-46.png


Homework Equations


All I know is the a's have something to do with the integrals.
upload_2018-4-3_23-13-22.png

The Attempt at a Solution


I used FFT analysis in Matlab but I do not know what I am looking for. How do the a0s relate to the f(t) in the question and how would I even do run that equation in an excell program. I just need to know where to start.
 

Attachments

  • upload_2018-4-3_23-11-46.png
    upload_2018-4-3_23-11-46.png
    10.8 KB · Views: 1,140
  • upload_2018-4-3_23-13-22.png
    upload_2018-4-3_23-13-22.png
    20.8 KB · Views: 1,087
Physics news on Phys.org
I don't think you need FFT analysis for this. Read the problem statement and do what it says using a spreadsheet. It's a simple plug and chug and plot question.
 
To find the a0, a1, etc. Compare the format of the given summation to the expansion of f(t) in equation (5.2)
 
scottdave said:
To find the a0, a1, etc. Compare the format of the given summation to the expansion of f(t) in equation (5.2)
so would a0 be .2 and a1=(2/pi)(-1)^1/1
 
kuruman said:
I don't think you need FFT analysis for this. Read the problem statement and do what it says using a spreadsheet. It's a simple plug and chug and plot question.
what am I pluging into, how do the a's relate to the f(t).
 
Carter said:
what am I pluging into, how do the a's relate to the f(t).
You are plugging into the equation ##f(t)=0.2+\frac{2}{\pi} \sum_{n=1}^\infty~...~etc## that is given to you. The posts by @scottdave and @Carter explain what the ##a_n## are, they are whatever multiplies each ##\cos(4n \pi t)## term in the summation.
 
Carter said:
so would a0 be .2 and a1=(2/pi)(-1)^1/1
If you multiply that by sine( 0.2(1)pi) then that will be a1
 
Last edited:

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
6K
Replies
17
Views
6K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 26 ·
Replies
26
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K