Solve for a n=b(-h^2+a)