Can anyone help me with fourier series of a signal?

Illustration
Timothy - 2021-02-02T10:15:27+00:00
Question: Can anyone help me with fourier series of a signal?

My doubt is can I break the signal in a triangle and a straight line, then calculating fourier series for each. Will this break may affect my answer (magnitude * frequency)

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

If you’re doing a numeric fft, do the Fourier Transform of the entire signal.
 
To do it symbolically, separate it into two segments for each part of the triangle, and add:
syms w t f1(t) f2(t)
f1(t) = 40*t;
f2(t) = 40-40*t;
F(w) = int(f1(t)*exp(1i*w*t), t, 0, 0.5) + int(f2(t)*exp(1i*w*t), t, 0.5, 1);
F(w) = simplify(F(w), 'steps',20)

F(w) =

-(40*(exp((w*1i)/2) - 1)^2)/w^2
It is zero elsewhere, so you can ignore that section.

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!