Analysis of ferromagnetic and antiferro-magnetic second-order transitions