Nonlinear dispersive equations : local and global analysis