I need help modeling this function in order to do Fourier series
My first approach was to define x(t) in unit step functions . My second approach was to take the derivative of x(t) so that it becomes a combination of unit impulses .
and then by doing this I can apply the time shifting property of : e^-j w t
Since the signal appears to be even That would mean That I would only have to solve for the coefficients a_0 and a_n , while b_n = 0 .
You're just trying to find the fourier series?
yes
I think I am over thinking it ,haha . I think there is an easier approach .
So, yes. You can take \(b_n = 0\). Also, what is the period of this function?
calculating....
period is 2 pi
Then here's the best approach: \[ a_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x) cos(nx) \ dx \] You're familiar with that formula?
yes
just not sure how to model f(x)
Well think more along the lines of changing integration bounds... f is either 1 or 0 right? What does that mean
We can split up the integral into separate ones like this: \[ a_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x)\cos{nx} \ dx = \frac{2}{\pi} \int_{0}^{\pi} f(x)\cos{nx} \ dx \\ = \frac{2}{\pi} \int_{0}^{\frac{\pi}{2}} f(x)\cos{nx} \ dx + \frac{2}{\pi} \int_{\frac{\pi}{2}}^{\pi} f(x)\cos{nx} \ dx \]
you cant model its as sin(t)U(t)
if that was what you were refering to @inkyvoyd
buuuuuut I might be wrong and , if so , then this problem is a piece of cake
Does what I did above make sense?
yes it does make sense
Okay, so now all we have to do is evaluate those two integrals at the bottom
I understand the mechanics of the fourier series .
So plug in the values for \(f(x)\) along those intervals and evaluate the integral
Yes , okay . So what is f(x) ??
From the graph, \(f(x)\) = 1 over the first interval and -1 over the second.
ohh , okay , Ok thanks . That is all I wanted to know . Much appreciated .
Okay, no problem
Join our real-time social learning platform and learn together with your friends!