Exercise problems about Langrange's equation of motion