Convex Analysis For 1d Control Problems Cars