Learning thermodynamics out of Callen -- which takes a postulate approach. Postulate II is as follows:
There exists a function (called the entropy S) of the extensive parameters of any composite system, defined for all equilibrium states and having the following property: The values assumed by the extensive parameters in the absence of an internal constraint are those that maximize the entropy over the manifold of constrained equilibrium states.
It is stressed that the existence of the entropy is postulated only for equilibrium states (defined to be states that are macroscopically characterized completely by the internal energy $U$, the volume $V$, and the mole numbers of the chemical components $N_1$, $N_2$, ...).
Let's look at a simple system -- a long cylinder with a fixable piston and gas on one side. There is a set number of particles, so the entropy is a function of only $U$ and $V$. As we move the piston, $V$ changes, and $U$ changes consequently. The space of equilibrium values of $U$ and $V$ plugged in to the entropy function $S$ defines a surface over the $U$-$V$ plane. Postulate II defines the equilibrium state to be the state at which $S$ is a maximum (i.e. the highest point on the $S$-surface).
If we define Temperature in the following way:
$\dfrac{1}{T} = \dfrac{\partial S}{\partial U}$
I'm having trouble understanding how temperature is not infinite in the state at which $U$ and $V$ maximize $S$. If $S$ is maximized, doesn't the derivative of $S$ at the point form a plane parallel to the $U$-$V$ plane? And then, keeping V constant, wouldn't the derivative of $S$ with respect to $U$ necessarily have to be 0?