The Landau theory of phase transitions: A mechanical analog