Substitute into q equation, Now q is a function of one variable, y. q = . "Complete the square" : q = = = + . It shows that q is maximal at = 4, or y = +/-2. According to the condition, only positive "y" are considered, so the solution is y=2. Then x = 4. The minimum of q is 80.