so I'm going to go ahead and take a guess that your friend was referring to a Fourier series.
as arildno has pointed out, this is a sum of an infinite number of periodic functions, not just two. (ie, it would be an infinite sum of sines, each with a different period and amplitude)
you can...