if A1 is dependent on B1 so that if A1 increases than optimum value B1 goes less than zero and if A1 decreases than optimum value B1 goes greater than zero. How to find that optimum value of A1 at which B1 becomes zero?