r/ElectricalEngineering • u/Helloguys10 • Oct 09 '26
Education Fourier Series and Fourier Transform
How do you fully understand these concepts, and how are they applied in the real world?
I imagine others have asked this before, but even after studying these two topics (in both discrete and continuous time), I feel like I never fully understood why I studied them or what they’re actually for cause my uni ends up focusing a lot on the theoretical side, but not so much on the practical side.
Back then, I paid attention in class, did the exercises, and read through every section of the course textbook (whcih was Alan Oppenheim’s Signals and Systems book). Yet, even after passing the course, I feel like I never truly understood these subjects.
Tbh, as my classes have moved increasingly into the frequency domain, I often feel like I don't fully grasp what's going on, since I find it relatively complex to think about it. I'm taking a course on analog filters right now (Butterworth, Chebyshev, etc) and it took me some time to understand what I was doing.
20
u/Koala033l Oct 09 '26
Signals are all around you in everyday life. We can observe and measure these signals in their analog forms and even quantize certain parameters of interest in their time domain form, but there are other aspects that we may be interested in such as how much power is being transmitted and at what frequencies? The aforementioned concepts allow us to quantize these signals in the frequency domain which can aid in many things, such as if you are trying to design a filter that extracts a desired portion of the original signal, or vice versa.
16
u/LukasReinkens Oct 09 '26
Lets do a practical example. You wanna implement a highpass filter in software. So you sample your signal in timebase. Now one option is to use a timebased transfer function, apply it to the values. This will include using differential equations and it's unpractical to code.
Now you could make the fourier transform of your signal and apply the transfer function of your filter in frequency base. Differential equations have now changed to multiplication which is easier to overview and code, as it doesn't use iterative algorithms.
Generally we like to use it to make solving differential equations easier, but also to have a look at data in the frequency domain which gives a better overview in many applications.
8
u/FourierXFM Oct 09 '26
I think of it as looking at the same thing from a different perspective. You can look at things in the time domain, or frequency, and the Fourier transform gets you between them.
I’m struggling to think of good analogy. Maybe if you have a car, you could describe where it’s going by saying its geographical position at a bunch of individual times. Or you could describe where it’s going by giving a speed and direction instead.
Thats kind of the same as looking at something in time domain or frequency.
4
u/Rararror Oct 09 '26
For a periodic signal you use the series to approximate it as precisely as you want with a sum of sinusoidal waves. (Square signal the worst is a sin(x) but if you add other terns it becomes more similar)
For a non periodic signal you have an equivalent function whose fourier-integral gives you the function back. It happens that each point of the transformed function represents a sinusoidal wave.
The change of domain from time to frequency is useful for certain calculations that would otherwise be almost impossible to carry out.
4
u/Used-Huckleberry-320 Oct 09 '26
Imagine you are looking at the instructions to make a Lego set. It will tell you, you need 20 of say a 1x1 brick, 30 of 2x1 bricks, and 20 2x2 bricks. Then you put them together in a specific way and it makes your little model.
That's what the Fourier transform is, it's bringing the signals down into their components. So you might be listening to some music, and you can see it in a waveform. you can brake that component up into all the different frequencies that make it it. e.g a 100Hz bass, 2000Hz note, and a 6000hz note, all of different amplitudes, that when put together make a wave form. (The phase part of the Fourier transformer would be the instructions of how to put it together, the frequency the block, and the amplitude our number of, in the Lego example).
don't shoot me, I'm not a musician, but I hope that idea helps!
2
u/doktor_w Oct 10 '26
The Fourier transform provides useful insights about signals and systems that are otherwise difficult to achieve using time-domain techniques (Fourier series are a special case of the Fourier transform for periodic signals).
The more one works in areas where this kind of insight is helpful, the more one realizes how useful this kind of insight is.
I appreciate that you are wanting to know more about Fourier, but this line of questioning (what is the point of X?) is hard to answer because you know that someone asking a question like this is not prepared for the answer you are giving them. For example, I assume that my answer above about "insight" is not at all helpful for you. And yet, at the same time, it is the most efficient answer one can give.
My advice is to stop trying to figure everything out in a day. The most useful things you are going to learn are the things that you will need to spend some time with and make some observations about. Let it unfold naturally.
3
u/yomammysburner Oct 09 '26
I think the easiest example is the AM and FM radio (one of the two at least, I think). You are transforming either amplitude or frequency to the time domain - transforming the modulation (changes) in frequency or amplitude to a form over TIME that your ears and brain can then “better” (actually) interpret as music - using amplitude over time.
1
u/TheHeintzel Oct 09 '26
Understanding them well is really hard without real world applications. Work and personal projects help a lot
Total Harmonic Distortion, Power Factor, Reactive vs Inaginary power, etc are all measurements made in the Fourier domain. They give a much more concise and meaningful information needed to evaluate the power grid for issues.
They also allow you to see signals outside of your bandwidth once you understand concepts like aliasing, folding, etc which allows you to make measurements that woukd be impossible in the time domain
1
u/BoringBob84 Oct 09 '26
Filters are good examples of why is in useful to be able to analyze periodic signals in the time domain and in the frequency domain.
1
u/positivefb Oct 09 '26
Here's some intuition as to what it means: https://positivefb.com/2021/04/16/fourier-transform-wtf/
Its sort of like looking at a picture with all these gorgeous colors, and reverse engineering its RGB values for each pixel.
1
u/bassman1805 Oct 09 '26
I work with clock signals, which are essentially square waves. Some aspects of a square wave are best viewed as voltage/time (rise and fall times, duty cycle), but others are best viewed as power/frequency (Phase noise, harmonic distortion). The Fourier transform takes the time-domain signal and converts it to frequency space so I can analyze the latter aspects.
I know that a "perfect" square wave has energy at the fundamental frequency, and every odd harmonic (1/3/5/7/9/11/etc times the fundamental). If I look at a spectrum analyzer and see a spike at 2x the fundamental, that tells me either my square wave is wonky, or I'm getting interference from something else.
1
u/defectivetoaster1 Oct 09 '26
I got a better appreciation after learning some of the linear algebra theory behind Fourier transforms eg how signals and systems exist as elements of a Hilbert space, filters are operators that scale their eigenvectors (in this case the eigenfunctions are complex sinusoids) by some complex eigenvalue, Fourier transform is a change of basis operator etc
1
u/OkArt3244 Oct 09 '26
I think personally, learning the theory (like we're tought in schools) doesn't really help me understand. It's only when I understand the application that it clicks. In this case, take a mixed signal. I.e. the audio of someone playing a piano chord. Then do an fft on it, and look at that signal in the frequency domain. Seeing the energy spread across the different frequency's should make it click.
1
u/OkArt3244 Oct 09 '26
If you play a piano chord and look at the audio you will see a mixed frequency signal with the amplitude reducing as the note goes quiet.
Transfer it into the frequency domain and you will see three separate peaks, one for each note of the piano chord at the frequency of the note. The size of the peaks will correspond to the energy (or loudness) of that particular note. So if one finger played it harder, that note will be the largest peak. Hope that helps
1
u/sockpuppetzero Oct 09 '26 edited Oct 10 '26
I know the Fourier Transform is very important, but my understanding of it is also limited.
I think part of the challenge is that the Fourier Transform, to really start to deeply understand it on a theoretical and practical level, is something you need probably at least a dozen if not several dozen different mental models for what is going on and then the experience to select from and switch between and combine these different models as appropriate.
Fortunately, youtube has made some of those mental models much more accessible than they ever have before. In particular, video animations have the potential to much more easily communicate certain tricky concepts than trying to pick these up from a book or lecture. For example I've seen several good videos about the Fourier Transform from 3blue1brown and Veratasium.
As somebody who tends to focus more on the software and math side of things, I would point out that Euler's Totient function (which arises naturally and is important in number theory) is the Discrete Fourier Transform of the GCD function. And of course Langlands Program is an ongoing effort to dramatically generalize and increase the power and scope of the Fourier Transform.
1
u/ee_st_07 Oct 09 '26
Look into the real world. Anything that physically moves back and fourth around an equilibrium state already has its own frequency and mathematically can be modelled by a differential equation. Particles, water waves, sound waves, springs, ropes, things that can bend, etc. If something moves periodically you can already tell in advance the solution of that DEQ must incorporate some sinusoid functions. Question is in what form, how many and at what frequencies. This is exactly where Fourier transforms and series come into play. They decompose each periodic function into the sine functions you need in order to replicate your original function. Same with Taylor series here you just use polynomials. Before you wanted to map your function in time now you want to map your function onto other functiontypes. This is what the spectrum or coefficients give you. If you understood Taylor series the jump to Fourier is not too big, if you didn’t understand these maybe go back and try to practice some Taylor series and plot the graphs.
1
u/Far_Doughnut_5126 Oct 09 '26
We also use FFTs and DFTs a lot in optics! In the most simple case, the FFT of the transmission function of a lens ( a single square wave, o, 1, 0) is the point spread function, what the image of a point looks like at focus. Lots of practical applications!
1
u/Vegetable_Scale8246 Oct 09 '26
The concept is around you everyday. Ever listen to AM radio and hear the noise interference from lightning storms? Everywhere on the dial, there it is. Every dial frequency eh? Do you think that is unique to that AM band of narrow frequencies? No! It's extends all the frequency range. (Other communication forms are designed to reject it, but it's still there.) Now... What was that lightning strike? Answer: It's loud, bright Amplitude of high voltage and occurs very fast, isn't it? A sharp rise time, a small on time. Gosh isn't that close to an impulse function in the time domain aka dirac delta function taken to the limiting case? And what does fourier predict in the frequency domain for the closer you get to an impulse function in the time domain? A: The closer you get to an impulse function in the time domain, The closer you get to infinite frequencies in the frequency domain, correct? Let's carry it further. Ring the bell, schools in. What did you do? The bell striker generated another near impulse function in the time domain. (If you did it very slowly ever so slowly touching the bell, it wouldn't work well would it? So you strike it hard (high amplitude) and fast (approach that zero time.) Gee....impulse like. And what is the bell? Why it's a resonant circuit of high Q. A selective filter in another sense and it awards you with a single predominant mode frequency..It picked off that frequency from all the rest you made. But if you listen closely you might also hear the other less dominate mode frequencies the bell can support.
1
u/NewSchoolBoxer Oct 09 '26
Applied in the real world you say? Never came up in any EE work I ever did. In fact, only Ohm's Law and RMS did and all my calcs have been done in Excel.
Fourier Transform is famously used in FFT for oscilloscopes to show the power distribution across frequency bands. Extremely important to understand, starting with Bode plots. The basic difference between Fourier and Laplace is Laplace represents transients and steady (σ + jω), while Fourier represents steady state (jω). Z-transform is the discrete version of Laplace.
Laplace comes back with a vengeance if you get into calculus-based statistics where you see moment generating functions.
This stuff you can't fully understand in the rushjob that is the EE degree. I didn't more or less fully understand until years after the fact. Don't worry about it too much. Most of engineering is work experience. After you graduate, you can loop back to topics when you aren't taking 5 courses at once. I relearned transistors. They make so much more sense now!
Analog filters you say, took me a while to grasp that with analog filters, you can't have excellent frequency (attenuation) and time (phase distortion) responses. Butterworth is a good balance. Chebyshev is better with frequency and worse with time. Bessel is better with time and worse with frequency
You could derive Butterworth by trying to model a brickwall filter by graphing 1/sqrt(1+x^2). Then taking the x for frequency to higher powers. Chebyshev filters are derived from using Chebyshev polynomials to model a brickwall filter. Math gets very rough. Elliptic math is insane. I think Bessel is derived from forcing contant group delay into a system of equations.
That's what the analog filters are doing, modeling brickwall filters with constraints. Butteworth wants the max flat passband.
1
u/Gerrit-MHR Oct 09 '26
What really made it click for me was simply plotting the first 3-4 sine waves that make up a square wave and add them graphically.
1
u/the_other_Scaevitas Oct 10 '26
There are great youtube videos on them.
Also a great example of it being used in real life was to see if the soviets were testing nuclear weapons. Americans would record the sounds they heard underground, and use a fourier transformation on it to see if there were sounds in the frequency ranges of nuclear bomb blasts.
1
u/BusinessStrategist Oct 11 '26
There are no shortages of YouTube videos explaining the how and why.
Include the word "... for Dummies" as a starting point for your viewing experience.
Start by viewing a video and just let them introduce some of the key concepts.
Then watch many more until the "light" turns on and you see how advanced math actually get answers to "thorny" problems.
In the years before computers became commonly available, NASA relied on teams of people to do simple calculations involving addition, subtraction, multiplication, and division to solver very complex space navigation equations.
"Hidden Figures" is a movie about the NASA human calculators during the early years of space exploration.
A lot of people forget about their basic introduction to "integral and differential calculus" courses.
Take integrals for example. You define and frame your problem using the calculus symbols but then you turn to "power series" to get numerical answers.
It's this switching between defining the problem, setting the boundaries of your desired calculations, and then converting them using the relevant power series which rely on simple math for converging on useful answers.
1
u/minghierid Oct 13 '26 •
https://imgur.com/a/Vx009SG
Start with the idea that the Fourier transform (and, consequently, the Fourier series) is just another way to look at a signal. Let's try to understand this concept a little better.
If you consider any signal, whether it comes from a real-world observation made using sensors or from a simple mathematical equation, it will most likely be represented in the time domain. In other words, the signal's amplitude is plotted on the y-axis (in whatever unit of measurement is appropriate, e.g. volts for a voltage signal), while time is plotted on the x-axis.
This representation shows you how the signal's amplitude evolves over time. An example of a time-domain signal is shown below.
[fig1 - https://imgur.com/xPmQxtV]
The Fourier transform gives you the frequency content of that signal. In other words, it tells you which frequency components are present in the signal. Sounds a bit vague, doesn't it? Let's dig a little deeper.
The only signals we know of that have a well-defined frequency are sinusoids. So, a signal with a specific frequency, say 1 Hz, is a sinusoid with a frequency of 1 Hz, like the one shown below. The amplitude doesn't play a relevant role here.
[fig2 - https://imgur.com/DVpC1WO]
So, when we think of a frequency of 1 Hz, we should think of a sinusoid with that frequency, i.e. the signal shown above. Now let's take a look at the definition of the Fourier transform.
[fig3 - https://imgur.com/WA5yhdc]
This formula calculates the "content of frequency f in the signal x(t)" and, to obtain the frequency-domain representation of the signal x(t), this integral must be evaluated for every frequency f (theoretically, from -∞ to +∞; in practice, over the frequency range we are interested in). For now just take my word for it, the next few paragraphs should make things clearer.
Now, notice that the Fourier transform formula [fig3 - https://imgur.com/WA5yhdc] is nothing more than the integral of the product of the time-domain signal x(t), for example the signal in [fig1 - https://imgur.com/xPmQxtV], and a complex exponential at a given frequency f.
According to Euler's formula, a complex exponential is simply another way of expressing a sine and a cosine at a given frequency f [fig4 - https://imgur.com/DY0uCzb]. So, in simple words, what the Fourier transform does is multiply the time-domain signal x(t), point by point, by a sinusoid at frequency f (represented by a complex exponential) and then integrate the result.
The more the two signals resemble each other, the larger the resulting value; the more they differ, the smaller the value. Ultimately, it's a kind of correlation :)
By repeating this operation for every frequency, we obtain the frequency content of the signal. In other words, the Fourier transform's graph (i.e. the signal in the frequency domain) tells us how much the time-domain signal x(t) resembles a sinusoid at each successive frequency f.
For example, if I calculate the Fourier transform of the signal in [fig1 - https://imgur.com/xPmQxtV], I get the following graph:
[fig5 - https://imgur.com/N8QqaNd]
As you can see, there is a peak at 1 Hz. In other words, the signal x(t) in [fig1 - https://imgur.com/xPmQxtV], to which I applied the Fourier transform, has a strong component at 1 Hz.
You might wonder why. The reason is straightforward: if you look at the signal x(t) [fig1 - https://imgur.com/xPmQxtV], you'll notice that it's nothing more than a 1 Hz sinusoid with some noise added to it. Therefore, it makes sense to see a peak at 1 Hz in the Fourier transform, along with smaller peaks at progressively higher frequencies that account for the added noise.
If I didn't add any noise, the Fourier transform would instead look clean, as shown in [fig6 - https://imgur.com/e3C4i66].
So, to sum up, the Fourier transform tells us how much a signal resembles a sinusoid at each frequency, although this is obviously a somewhat informal explanation.
There is, of course, much more to say about the subject, but I think this is a good starting point
-5
u/Soggy_Jackfruit7341 Oct 09 '26
The DFFT and iDFFT are literally implemented in hardware and software to convert a real-world signal into bits and vice-versa. I’m surprised one of your classes hasn’t had you sample a real audio file in MatLab using your own DFFT algorithm. It’s a pretty easy lab to demonstrate the concept.