I'm writing a game theory book, and I've wrote something like this:
As it can be seen, that mathematical expression has been splited into two lines. It surely can be fixed, by making some spaces' width more, and if needed, leaving a little space for the expression to appear in the next line, as latex sometimes does. How can I force it automatically do it when needed?

F(x,i)=\{(y,\mod(i,n)+1): y\in f(x)\}on a diplayed line by itself? – Mico Sep 24 '23 at 18:36