The wavelength in a longitudinal wave refers to the distance between two consecutive compressions or between two consecutive rarefactions. Amplitude. The amplitude is the maximum displacement from equilibrium.
Atoms bond to form molecules: Two or more atoms may bond with each other to form a molecule. When two hydrogens and an oxygen share electrons via covalent bonds, a water molecule is formed.
Oxygen gains two electrons when it bonds to form a complete outer shell and magnesium loses two electrons when bonding to gain its full outer shell.
As electrons are negative, the oxygen (which gains electrons) will become negative and the magnesium (which loses electrons) will become positive.
The negative and positive ions will then attract to one another due to the magnetic pull of the positive and negative.