Global dynamics of Schrodinger and Dirac equations