minimize (p/q)^2 + (q/p)^2