Its chemical formula is written as CO 2. You may be required to use a key to draw your own diagram of a molecule, eg: Using this key, the molecules SH 2 and NH 3 would be represented like this.