Solve for g 3=Ng^2-Q