Variational Methods Applied to Problems of Diffusion and Reaction