Please follow https://www.irs.gov/uac/newsroom/divorce-or-separation-may-affect-taxes.