Ok this is the question I had on a test today:
given this constraint equation z^2-xy+1=0 find the min. distance from the origin using Lagrange method.
so basically you use D^2=x^2+y^2+z^2 as the other equation. however, it basically goes nuts from there. especially if you set it up like...