Solve for q q^2=2q+4