The discrete cosine transform involves various cosine functions .
DCTs are important to numerous applications in science and engineering , from lossy compression of audio ( e.g . MP3 ) and images ( e.g . JPEG ) ( where small high-frequency components can be discarded ) , to spectral methods for the numerical solution of partial differential equations .
Discrete cosine transform