Constipated

My 3 month old daughter has been ebf, but needed some formula over the weekend. Now she hasn't pooped for two days and is trying so hard. Any tips?