Solve for x tan(x)^2=sec(x)-1