Solve for i