Text this: Lagrangians, Gauge Functions, and Lie Groups for Semigroup of Second-Order Differential Equations