Insert the missing parts to minimize the equation:

from scipy.optimize import minimize
def eqn(x):
return x**2 + x + 2
mymin = @(8)(eqn, 0, method='BFGS')

from scipy.optimize import minimize
def eqn(x):
return x**2 + x + 2
mymin = minimize(eqn, 0, method='BFGS')