HF(aq) + KOH(aq) → H2O(l) + KF(aq)
In this reaction, HF donates a proton (H+) to OH- to form water (H2O). The fluoride ion (F-) from HF and the potassium ion (K+) from KOH are spectator ions, meaning they do not participate in the reaction and remain unchanged.
In other reactions, HF may not behave as a spectator ion. For example, in reactions with strong bases such as sodium hydroxide (NaOH), HF can undergo a further reaction to form the hexafluorosilicate ion (SiF6^2-). This is because the fluoride ion is a weak base and can react with the hydroxide ion to form the more stable hexafluorosilicate ion.
Therefore, the behavior of HF as a spectator ion or a reactant depends on the specific reaction conditions and the strength of the base it is reacting with.