2 week old cries way more now

We switched him to soy formula after the gas drops didn't work, via my pediatricians advice. He never cried the first week or so home, he was always just really happy. Now he screams and acts like he's in pain, the only thing that helps is constantly eating. I know he has major gas and he's always straining to pass it, I just don't know what else to do, my SO and I get no sleep