Dynamics of Nonlinear Wave Equations