From a purely thermodynamical point of view, why does that entropy have to be a maximum at equilibrium? Say there is equilibrium, i.e. no net heat flow, why can the entropy not be sitting at a non-maximal value?
From the second law of thermodynamics, it follows that $S$ never gets smaller and of course I know that for an isolated system there are many statements involving $\text{d}S=\frac{\delta Q}{T}$, which say what might happen for processes. But if I have equilibrium, then no relevant processes are going on. Some proofs in thermodynamics involve arguments how if we don't have maximal entropy, then we can do something which raises entropy. But why is that relevant or related equilibrium, i.e. to the positions for the termodynamic parameters, which don't change with time? One could argue that probably the energy $U$ doesn't sit at the minimal value, but in thermodynamics, without microscopic forces, the statement that the energy changes towards equilibrium and seeks its minimal value seems to be derived from maximal entropy.
And how can I conclude the converse? Why does equilibrium follow from $\text{d}S=0$?
(edit: I see the question was just bumped on the front page, and as it's a year old now, I guess my interest in the topic has changed in so far as I'm not particularly happy with the formulation of the initial question anymore. That is, I guess without proper stating the definitions, it might be difficult to give a good answer - the thing I still don't "like", and that might be kind of a language problem, is that "to maximize" implies that there is a family of values it could take - but it takes the maximum - while at the same time, you often consider a deviation away from a thermodynamical state to be a transition into a configuration where thermodynamics doesn't apply anymore. Hence, if you go away from the "maximal value", you might lose the concept of there being a temperature at all, but since this is what makes the parameter space with respect you use the word "maximal" entropy, you get into language problems. But at least I do see it's use in explainaing how the entropy/energy evolves once you take the extensive parameters into your control and change the system quasistatically. In any case, I am and was only only interested in a non-statistical mechanics answer here. Clearly, I can make sense of the physics using the microscopic picture anyway, but was purely interested in the formulation of the thermodynamical theory here.)