Scientists show the composition of compounds by a kind of shorthand known as a chemical formula.