When a solution of potassium iodide (KI) is added to a solution of lead nitrate (Pb(NO3)2) in a test tube, a yellow precipitate of lead(II) iodide (PbI2) is formed. The chemical equation for this reaction is:
Pb(NO3)2 (aq) + 2KI (aq) → PbI2 (s) + 2KNO3 (aq)
This is a double displacement reaction, also known as a double replacement reaction or metathesis reaction, where the cations and anions of two different compounds switch places to form two new compounds. In this case, lead ions from lead nitrate react with iodide ions from potassium iodide to form lead(II) iodide, which is insoluble in water and thus precipitates out of the solution.