Well, I generally agree with AWK and DevaDevil, but rather than merely memorizing the most common ions it would be more useful to understand the logic behind molecules building.
So, I'll show you a little example of this logic with the molecule you wrote, phosphoric acid (H
3PO
4).
Of course, you need to know a little bit of chemistry. If you aren't at this level, write this stuff down and check it again when you will be able to completely understand it.
As you certainly know, Phosphorus lies in the 5th group, so he has 5 electrons in his outer shell.
In order to get to the oxyacid written above, you need to react the corresponding anhydride with water.
The anhydride is a binary compound of the given element and oxygen. In this kind of compounds, oxygen's valency is always 2. Phosphorus, instead, has several plausible valencies. As the name suggests, P valency for this compound is the maximum available, 5.
The minimum formula for the phosphoric anhydride, so, is P
2O
5 (it has to be precised that the real formula is P
4O
10, but these details aren't fundamental for the correct comprehension of the method).
We can, then write the reaction with water:
P
2O
5 + 3 H
2O
2 H
3PO
4This specific acid has even another little subtlety, because the formula of the acid obtained varies with the number of the water molecules added:
1 molecule: metaphosphoric acid (HPO
3);
2 molecules: pyrophosphoric acid (H
4P
2O
7);
3 molecules: orthophosphoric acid (H
3PO
4);
Anyway, when you have sufficiently metabolized this rules you must learn the most common anions occuring in chemistry courses, as other people rightly state.