How fast can you comfortably travel between two points A and B? This question is formulated as a minimization problem of a functional where the discomfort is quantified in terms of the integral of the square of the acceleration between A and B. The problem is solved in terms of the corresponding Euler-Lagrange equation and approximately using a direct variational approach based on trial functions and Ritz optimization. The main purpose of the analysis is to introduce undergraduate students to variational calculus in an interesting and pedagogical way.