Simple variational problems, first and second variation formulas. Euler-Lagrange equation, direct methods, optimal control.