Title: The principles and applications of variational methods