# Goertzel algorithm

I am having a hard time understanding why my textbook takes the squared magnitude of the calculated DFT coefficients.

I know in DFT, you would normally take the magnitude to get the spectrum, how come it is the squared magnitude which gives me the spectrum when iam using goertzel?