Please follow
https://www.irs.gov/uac/tax-effects-of-divorce-or-separation
.