From Clausius' inequality,
$\oint\frac{dQ}{T}\leq 0$
From this, we can show that $\frac{dQ}{T}\leq dS$
For an isolated system having adiabatic walls, $dQ=0$
So, $dS\geq 0\tag{1}$
So, a isolated system when move towards equilibrium state, its entropy increases (spontaneous process maximizes the entropy).
In Callen's Themodynamics and an Introduction to Thermostatics, the maximum entropy principle is given as
The equilibrium value of any unconstrained internal parameter is such as to maximize the entropy for the given value of the total internal energy.
Mathematically, for an isolated system
if $S(U,x)$, where $x$ is an extensive independent coordinate
$\frac{\partial S}{\partial x}\Bigg\rvert_U=0$ and $\frac{\partial^2 S}{\partial x^2}\Bigg\rvert_U<0$
I have the following doubt-
We know that the Clausius' inequality and Entropy maximization principle both are the statements of Second Law of Thermodynamics. I am not able to prove Entropy maximization principle from the Clausius' inequality.
Like (1) is the consequence of Clausius' inequality, but it suggests that entropy in spontaneous process of isolated system increases (maximizes). But this shows that
$\frac{\partial S}{\partial x}\Bigg\rvert_U=0$ and $\frac{\partial^2 S}{\partial x^2}\Bigg\rvert_U<0$ or $\frac{\partial S}{\partial U}\Bigg\rvert_x=0$ and $\frac{\partial^2 S}{\partial U^2}\Bigg\rvert_x<0$ or both.
But entropy maximization principle tells that $\frac{\partial S}{\partial x}\Bigg\rvert_U=0$ and $\frac{\partial^2 S}{\partial x^2}\Bigg\rvert_U<0$ (there is a coordinate x for which system attains maximum entropy at a particular internal energy) holds for sure. Like why instead of maximum entropy at a praticular internal energy, it is not the case that system attains maximum entropy at a particular coordinate for sure?