Among different Lagrangians, null Lagrangians are known for having identically zero the Euler-Lagrange equation and, therefore, they have no effects on the resulting equations of motion. However, there is a special family of null Lagrangians that can be used to convert linear and undriven equations of motion into nonlinear and driven ones. To identify this special family, general null Lagrangians and their gauge functions are constructed for second-order ordinary differential equations of motion describing one-dimensional dynamical systems. The gauge functions corresponding to forces and nonlinearities in a variety of known dynamical systems are presented and novel roles of these functions in dynamics are discussed.