This talk offers a brief introduction to the calculus of variations, focusing on the core ideas behind variational problems and their role in describing systems governed by energy principles. We will explore how such methods arise in the modeling of grain boundaries in polycrystalline materials. The talk also includes a short overview of the concept of Γ-convergence, an important tool for studying the asymptotic behavior of variational problems.