How can I help my 5 week old’s constipation?

We have been adjusting to more formula over the last week or so, and I have observed she is gone from pooping several times a day to once a day, and she did not defecate at all yesterday.

I can tell she is gassy and uncomfortable. Simply not a happy baby.

Tips or suggestions?

I have done cycling legs, massaged her tummy, and gave her a warm bath… But nothing has worked thus far.