Food for thought: in both equations the numerator (L or m) is the inertial component of the system - the larger it is the more the system will continue to move in the same direction. The denominator (g or k) is the restoration component of the system - the larger it is, the faster the system will switch directions and return to the neutral position and then zoom in the other direction.
This helped me learn / derive / remember these equations.