Quantum Two-Body Interactions in Harmonic Traps and a Study of Dynamic Optical Lattices