A spectrum is a graph of the intensity (magnitude) of every…