got a closed form for the quadratic problem!