Example 4.5b: Assigning Oxidation Numbers

Assign oxidation states to the elements in each of the following compounds or ions:
(a) Nitrogen in \(\ce{KNO3}\)
(b) Aluminum in \(\ce{AlH3}\)
(c) Nitrogen in \(\ce{NH4+}\)
(d) Phosphorous in \(\ce{H2PO4-}\)