Formula and constipation

Becky
I know formula can cause constipation. My lo has been constipated the more she weens off the breast and last time she was backed up for 4 days and finally pushed out(with a lot of pain) a large turd. What do you mamas put in the bottle to help with this? We do pear juice but would like to add a suppliment to her formula.