Can you broadly explain variational calculus and name some good textbooks?