Discrete Cosine Transform is the way to take finite list of real numbers and rewrite it as a sum of cosine waves at different frequencies

DCT is commonly used transformation for compression algorithms (eg. JPEG image compression)

Intuition

If you have a 1D signal

DCT finds weights so that the original signal can be approximated by adding cosine patterns