- #1
\Theta
- 18
- 0
Homework Statement
Find the Fourier Coefficients for the triangular wave equation shown in this picture:
Homework Equations
##f(t)= a_0 + \sum_{n=1}^\infty a_{n}cos(n{\omega}t) + \sum_{n=1}^\infty b_{n}sin(n{\omega}t)##
##a_0 = \frac{1}{\tau}\int_{-\tau/2}^{\tau/2} f(t) \, dt##
## \omega = \frac{2\pi}{\tau}##
##a_n = \frac{2}{\tau}\int_{-\tau/2}^{\tau/2}f(t)cos(n\omega t) \, dt##
##b_n = \frac{2}{\tau}\int_{-\tau/2}^{\tau/2}f(t)sin(n\omega t) \, dt = 0, \forall n##, because it's an even function
The Attempt at a Solution
## \tau = 2##
##a_0 = \frac{1}{2}\int_{-1}^{1} 1-|t| \, dt= \frac{1}{2}[\int_{-1}^{0} 1+t \, dt+\int_{0}^{1} 1-t \, dt]=\frac{1}{2} [\frac{1}{2}+\frac{1}{2}]=\frac{1}{2} .##
##a_n = \frac{2}{2}\int_{-1}^{1}f(t)cos(n\omega t) \, dt= \int_{-1}^{0}(1+t)cos(n\omega t) \, dt + \int_{0}^{1}(1-t)cos(n\omega t) \, dt ,##
Which, when computed through many tiresome intermediate steps, gives:
##a_n= \frac{2}{n^2\pi^2} ##, which differs from the answer in the textbook, ##a_n= \frac{4}{n^2\pi^2}, n=1,3,5,7,...; a_n=0, n=2,4,6,8,10,...##
So my question is, have I set up the problem correctly and made a computational mistake somewhere along the way in my integrals? Or am I missing something in the setup of the problem and missing the point entirely? It's a *** problem in our textbook(aka the most difficult level) and it's also a "computer problem", so I'm sure my prof won't expect me to do a problem this laborious on a test, but I'd still like to know where I went sour.
Last edited: