Consider the two waves $$y_1=Acos(\omega_1 t+k_1 x), \tag{1}$$ $$y_2=Acos(\omega_2 t+k_2 x), \tag{2}$$
where $\omega_i=k_iv(k_i)$ for $i=1,2$ so we have a dispersive medium. Then if we take their superposition to get the wave:
$$y=2Acos(\bar {\omega}t + \bar {k}x)cos\left(\frac{\Delta \omega \ t}{2} + \frac{\Delta k \ x}{2}\right), \tag{3}$$
where
$$\bar {\omega} = \frac {\omega _1 + \omega _2}{2}, \ \ \ \bar {k} = \frac {k_1 + k_2}{2}, \tag{4}$$
$$\Delta \omega = \omega _1 - \omega _2, \ \ \ \Delta k = k_1 - k_2. \tag{5}$$
Then the waves in wave packets are ment to spread out. Why? In this case at any time $t=t_0$ the wavelength of the wavepacket is given by $\lambda=4 \pi /(k_1+k_2)$ which is a constant and therefore the wavepackets should stay the same length, so why do they spread out?