Discrete Cosine Transform
Main Source:
DFT takes signal and waves of sine and cosine on their complex-valued representation, transforming them into another complex-valued representation. On the other hand, discrete cosine transform (DCT) takes real-valued input data, transforming them into sequence of real-valued output.
In the complex exponential term of Fourier transform, the sine wave component has imaginary term, which makes the whole representation of wave complex-valued. However, DCT rely only on cosine wave, making it accept and output real-valued data instead.
In the digital world, images and audio can be represented as signals. Digital signals are typically real-valued data because they originate from real-world phenomena. This make DCT suitable for digital signal processing, and is used for image compression, audio processing, etc.
The Idea
DCT tries to represent digital signal as a sum of cosine wave with different frequencies. By representing them with cosine wave of varying frequency, we effectively separate the signal like FT. The separation of frequency makes it useful for tasks that analyze frequency content of the signal.