A one-dimensional variational problem with gradient constraint.