From harmonic addition theorem, Eric Weisstein's World of Math any superposition of harmonic waves
is itself a harmonic wave
where
and
If the waves are coherent so that they all have the same amplitude and phase, then for all i and j, so
and (3) becomes
and (3) becomes