Elemental hydrogen reacts with different elements to produce hydrides. Now, hydrides are just binary compounds containing hydrogen and a metal or nonmetal. There are three types of hydrides that exist, and they are ionic, covalent, and metallic hydrides. Here in this first one, we're going to take a look at ionic hydrides.
Now they represent white crystalline solids formed when diatomic hydrogen reacts with group 1A or 2A metals. The exception here is beryllium. Beryllium is in Group 2A but when it combines with diatomic hydrogen it doesn't classify as an ionic hydride. Now here with these ionic hydrides, the hydrogen within our solid possesses an oxidation number of -1 and this is key to understanding how the reactants combine to give me my solid product.
If we take a look here for group 1A metals, group 1A metals have a charge of plus one hydrogen which has an oxidation of -1. Its ion would also be -1. Remember, when the numbers are the same within the charges, they just cancel out. So we'll be left with MH solid. We still need to balance this. I'd have to put a 2 here to have two hydrogens on both sides, and then I put a 2 here to have two metals on both sides.
For group 2A metals, their charge is +2 and then we're going to say here hydrogen is still -1. The numbers in the charges are different. When they're different, they don't cancel out, they crisscross, so it get at the end is MH2. This equation is already balanced because we have one metal on both sides and two hydrogens on both sides. These represent the ionic hydride that exist when diatomic hydrogen combines with a group 1A or 2A metal.