I want to solve an equation using scipy.minimize. It\'s pretty straightforward if it is a simple equation as follows. But the equation I am trying to solve is much more comp