Click here for introduction to this series and motivation.
Linear Algebra Basics
- There are two ways to look at matrices.
- One view is about a matrix representing some data (to be covered in later part of this series)
- Another view is: matrix encodes the operation of a linear system on its inputs.
- In this (3) view, a matrix represents a linear map. Matrix-vector multiplication is taking a vector represented in one coordinate system and transforming it to vector in another co-ordinate systems.
- A diagonal matrix represents the operation of a map which only stretches (or shrinks, inverts) axis of original coordinate system. So linear map which results in diagonal matrices is simple.
- If I know what a linear map does to an axis of the input coordinate system, I can find out what it does to any vector in that input coordinate system (applying linear combinations).
Linear Dynamical Systems, Fourier Transform
- Lot of (wo)man-made systems are signal processors. They take a signal, do something to it, and output a result.
- No system (except theoretical or simulated) will be purely linear in nature. However, for within practical working range of inputs, the system can be thought of as doing a linear operation to its inputs.
- A musical amplifier cannot infinitely keep bumping up the volume. It is limited by its power supply and frequency range of input signal. But then within reasonable limits, its action is linear.
- If I model such systems with an additional constraint: parameters of the system don’t change with time, I get the classic linear time-invariant systems.
- A system such as in 4 can be thought of a linear map. It takes signal represented in some coordinate system, applies a linear map operation to it to transform it into another coordinate system.
- If I’m designing/synthesizing or analyzing an LTI system, I would be great for its map to be a diagonal matrix since it makes it simple to analyze.
- Another view: if I could do a transformation of my input space (A) to another coordinate space (B) such that operation of my system is stretching or shrinking of axes of B, it is great. Because then I can predict/quantify the behaviour of my system for any arbitrary input -> I know what happens to axes of space B. So for any arbitrary input signal represented in space B, I know what my system does.
- If only there was such co-ordinate space that exists and I could represent my signals in that space.
- It turns out that for sinusoidal signal inputs, any LTI system will act as a diagonal matrix. (Obscured by technical jargon which says sinusoids are eigenvectors for linear maps of LTI systems).
- But I’m not interested in sinusoidal inputs. I’m interested in arbitrary signal inputs like my voice going into an audio recorder with a background noise of my neighbour’s annoying dog barking.
- Can I represent any arbitrary signal in coordinate space represented by sinusoids of different frequencies as axis? Is that representation accurate?
- The answers for both the above questions is no in general but yes under some practical conditions.
- If I can assume that all signals of interest to me (potential inputs to my system) follow some conditions, I can find a way to represent them in space of sinusoidal axis. The representation will be reasonably accurate (probably as accurate as you can get in the least square sense, read next section).
- That ‘way of representation’ mentioned in 13 means I have to find coefficients for each sinusoidal axis for a given signal. The formula for finding those coefficients is given by Fourier series! Aha! That was long but worth it.
- To repeat the whole point: represent input signals in a coordinate space so that operation of the system on the axes of space is just stretching and shrinking. Once you know what happens to the vectors representing the axes, you know what happens to every signal in that space.
- Once you do this, designing certain type of systems becomes easy. For example: what parameters can I select for this electronic circuit so that these annoying noise signal that I don’t want get de-amplified? You can analyze the circuits behaviour in so-called frequency domain to design filters. You have to tune the parameters such that the axis representing those type of signal (frequencies) get shrunked.
Things Still Hazy
I am not sure about the following, but probably that is how things are.
- Probably: the representation/approximation of signal found by Fourier transform is close to the original signal in least square sense. In other words, if you cared about minimizing the average of squared error between the approximated signal and original signal, coefficients found by Fourier transform gets the job done. Minimizing the squared error makes some empirical sense: since power is proportional to the square of amplitude for many signals of practical interests (voltage), least square implies the power of approximated signal will be close to original signal.
- I can make things more complicated: rather than assuming a vector/axis of sinusoids where each data-point is a real number, I can think of each vector being made up of two-dimensional numbers (confusingly called complex numbers by mathematicians) which obey certain laws. I’m not sure why would anyone want to do this. But probably this allows us to approximate a broader class of signals using Fourier transforms. That is where complex sinusoids and Euler’s formula shows up and mind explodes.
- How do we go from here to fast Fourier transform (which makes the computation in (16) of previous section efficient)?
- How do these things relate to other transforms like Laplace (which often shows up in control systems) and z-transform (which shows up in discrete dynamical systems)?
- If Fourier’s transform takes (complex) sinusoids as basis, what about wavelets? What kind of signals form the basis in wavelet tranforms? Wavelets were going to change the world. What happened to that?
References
To be added. Demystifying Mr Fourier’s business for myself has been my quest for the last 10 years. There are too many references to list down, some I can’t remember. I’ll add a few soon.