Resonance means one real electron distribution, drawn as several "contributing" Lewis structures that differ only in where the electrons sit — the atoms never move. For each of these three species you first count all the valence electrons available, then place them so every atom gets an octet (or, for the odd-electron case, as close as you can). Whenever more than one placement is equally valid, all of them are resonance structures, and the true molecule is their average (hybrid).
The bookkeeping tool used throughout is the
formal charge, worked out from
\[\text{FC} = (\text{valence electrons of the free atom}) - (\text{lone-pair electrons}) - \tfrac{1}{2}(\text{bonding electrons}).
\]
The formal charges on all atoms of a structure must add up to the actual charge on the species — that check is what tells you a structure is drawn correctly, not guesswork.
\(\displaystyle \text{SO}_3 \) (sulfur trioxide)Valence electrons: S contributes $\displaystyle 6$, each O contributes $\displaystyle 6$, so \(\displaystyle 6 + 3(6) = 24 \) electrons \(\displaystyle = 12 \) pairs. With S at the centre bonded to three O atoms, the only way to use exactly these $\displaystyle 24$ electrons and still give every atom an octet is:
one S–O bond as a double bond, and the other two as single bonds, with a negative charge sitting on the two singly-bonded oxygens and a compensating positive charge on S.
Checking formal charges:
O in the S=O bond ($\displaystyle 2$ lone pairs, $\displaystyle 4$ bonding electrons): \(\displaystyle 6-4-\tfrac12(4)=0 \)
O in an S–O single bond ($\displaystyle 3$ lone pairs, $\displaystyle 2$ bonding electrons): \(\displaystyle 6-6-\tfrac12(2)=-1 \) (there are two of these)
S (no lone pairs, $\displaystyle 8$ bonding electrons around it): \(\displaystyle 6-0-\tfrac12(8)=+2 \)
Sum: \(\displaystyle 0+(-1)+(-1)+2 = 0 \), matching the neutral molecule.
Since all three oxygens are identical, the double bond is equally entitled to sit on any one of them. That gives three resonance structures:
Structure I — double bond to O($\displaystyle 1$), single (−$\displaystyle 1$) bonds to O($\displaystyle 2$) and O($\displaystyle 3$)
Structure II — double bond to O($\displaystyle 2$), single (−$\displaystyle 1$) bonds to O($\displaystyle 1$) and O($\displaystyle 3$)
Structure III — double bond to O($\displaystyle 3$), single (−$\displaystyle 1$) bonds to O($\displaystyle 1$) and O($\displaystyle 2$)
with resonance arrows (\(\displaystyle \leftrightarrow\)) connecting I, II and III.
A common mistake here is picturing \(\displaystyle \mathrm{SO_{3}}\) as flipping between three different molecules in time — it is not; it is one molecule whose real bonding is the average of the three drawings, so all three S–O bonds come out experimentally identical, each with bond order \(\displaystyle \dfrac{2+1+1}{3} = \dfrac{4}{3} \) (double in one out of three structures, single in the other two).
\(\displaystyle \text{NO}_2 \) (nitrogen dioxide)Valence electrons: \(\displaystyle 5 + 2(6) = 17 \). This is an
odd number, so the electrons cannot all be paired up — \(\displaystyle \mathrm{NO_{2}}\) is necessarily a free radical, with one unpaired electron left over. (This is exactly why \(\displaystyle \mathrm{NO_{2}}\) dimerises to N2O4.)
Put N in the centre, joined to one O by a double bond and to the other O by a single bond, with the extra unpaired electron residing on N:
N: nonbonding electrons owned = $\displaystyle 1$ (the unpaired electron), bonding electrons = $\displaystyle 4$ (double bond) + $\displaystyle 2$ (single bond) = $\displaystyle 6$, so \(\displaystyle \text{FC} = 5-1-\tfrac12(6) = +1 \)
O (double-bonded, $\displaystyle 2$ lone pairs): \(\displaystyle 6-4-\tfrac12(4)=0 \)
O (single-bonded, $\displaystyle 3$ lone pairs): \(\displaystyle 6-6-\tfrac12(2)=-1 \)
Sum: \(\displaystyle 1+0-1=0 \), correct for the neutral molecule.
Because the two oxygens are equivalent, there are two resonance structures, mirror images of each other:
Structure I: unpaired electron on N, N=O to one oxygen, N–O⁻ to the other
Structure II: unpaired electron on N, N=O to the
other oxygen, N–O⁻ to the first
connected by \(\displaystyle \leftrightarrow\).
The aside worth remembering: whenever the total valence-electron count for a species comes out odd, stop trying to force every atom into a full octet with all electrons paired — the molecule genuinely has an unpaired electron, and that is the correct structure, not a failure to balance it.
\(\displaystyle \text{NO}_3^- \) (nitrate ion)Valence electrons: \(\displaystyle 5 + 3(6) + 1(\text{for the negative charge}) = 24 \) electrons \(\displaystyle = 12 \) pairs — the extra "+$\displaystyle 1$" is because a negative ion carries one more electron than the sum of the neutral atoms. The structure works out exactly like \(\displaystyle \mathrm{SO_{3}}\):
one N=O double bond and two N–O single bonds, since that is again the only arrangement of $\displaystyle 24$ electrons that gives every atom an octet.
Formal charges:
N (no lone pairs, $\displaystyle 8$ bonding electrons): \(\displaystyle 5-0-\tfrac12(4+2+2) = 5-4 = +1 \)
O (double-bonded): \(\displaystyle 6-4-\tfrac12(4)=0 \)
O (single-bonded, ×$\displaystyle 2$): \(\displaystyle 6-6-\tfrac12(2)=-1 \) each
Sum: \(\displaystyle 1+0-1-1 = -1 \), matching the charge on the nitrate ion.
With three equivalent oxygens, three resonance structures result, related by moving the double bond:
Structure I — N=O to O($\displaystyle 1$), N–O⁻ to O($\displaystyle 2$) and O($\displaystyle 3$)
Structure II — N=O to O($\displaystyle 2$), N–O⁻ to O($\displaystyle 1$) and O($\displaystyle 3$)
Structure III — N=O to O($\displaystyle 3$), N–O⁻ to O($\displaystyle 1$) and O($\displaystyle 2$)
again joined by \(\displaystyle \leftrightarrow\). The nitrate hybrid has three N–O bonds of identical length, each with bond order \(\displaystyle \dfrac{4}{3} \) — this is exactly why the N–O bond length measured experimentally in \(\displaystyle \text{NO}_3^- \) is one single value, intermediate between a genuine single and double bond, the same way it is for every S–O bond in \(\displaystyle \mathrm{SO_{3}}\).
Answer: \(\displaystyle \mathrm{SO_{3}}\) has three resonance structures (double bond rotating among the three equivalent oxygens, each singly-bonded O carrying \(\displaystyle -1\) and S carrying \(\displaystyle +2\)); the hybrid gives every S–O bond order \(\displaystyle 4/3 \). \(\displaystyle \mathrm{NO_{2}}\), being an odd-electron ($\displaystyle 17$-valence-electron) free radical, has two resonance structures — mirror images with the unpaired electron and \(\displaystyle +1\) formal charge on N, one O neutral (double-bonded) and the other \(\displaystyle -1\) (single-bonded). \(\displaystyle \mathrm{NO_{3}}\)⁻ has three resonance structures exactly like \(\displaystyle \mathrm{SO_{3}}\) (N carries \(\displaystyle +1\), two O's carry \(\displaystyle -1\) each, one O is neutral, double bond rotating among the three O's), giving every N–O bond order \(\displaystyle 4/3 \) and identical experimental bond lengths.