In my third year at university we covered this in an Applied Mathematics course - Calculus of Variations. At the time our lector explained that in the entire field of mathematics we've learned over the last 20,000 years or so how to solve about 10,000 different mathematical problems. And of those 10,000 problems, Calculus of Variations comprised about 10. This was one of those 10. I don't know how accurate his numbers are but the point was that this is an extremely narrow field!