Isolating variables in quadratic equations