Analysis and Control of Mixing with an Application to