Question about a one month old?

My son is a month and a week old. He has trouble pooping now but not at the beginning. I feed him breast milk but I'm also supplementing with formula. Sometimes when he tries to poop it'll keep him up for a while and he grunts and cries. I'm just not sure what to do. Its been going on for a while now. He does eventually end up pooping but its only once a day. In the beginning it was everyday. What should I do?